autoproj 2.14.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/lint.yml +25 -0
  3. data/.github/workflows/test.yml +30 -0
  4. data/.rubocop.yml +79 -91
  5. data/.rubocop_todo.yml +1473 -0
  6. data/Gemfile +9 -9
  7. data/Rakefile +24 -24
  8. data/autoproj.gemspec +22 -22
  9. data/bin/alocate +4 -4
  10. data/bin/alog +5 -7
  11. data/bin/amake +4 -4
  12. data/bin/aup +4 -4
  13. data/bin/autoproj +3 -3
  14. data/bin/autoproj_bootstrap +185 -182
  15. data/bin/autoproj_bootstrap.in +7 -8
  16. data/bin/autoproj_install +184 -181
  17. data/bin/autoproj_install.in +6 -7
  18. data/lib/autoproj/aruba_minitest.rb +6 -11
  19. data/lib/autoproj/autobuild.rb +5 -6
  20. data/lib/autoproj/autobuild_extensions/archive_importer.rb +10 -11
  21. data/lib/autoproj/autobuild_extensions/dsl.rb +38 -34
  22. data/lib/autoproj/autobuild_extensions/git.rb +27 -26
  23. data/lib/autoproj/autobuild_extensions/package.rb +23 -22
  24. data/lib/autoproj/autobuild_extensions/svn.rb +1 -2
  25. data/lib/autoproj/base.rb +1 -1
  26. data/lib/autoproj/bash_completion.rb +5 -6
  27. data/lib/autoproj/build_option.rb +22 -24
  28. data/lib/autoproj/cli/base.rb +26 -26
  29. data/lib/autoproj/cli/bootstrap.rb +14 -16
  30. data/lib/autoproj/cli/build.rb +10 -7
  31. data/lib/autoproj/cli/cache.rb +11 -11
  32. data/lib/autoproj/cli/clean.rb +10 -10
  33. data/lib/autoproj/cli/commit.rb +7 -8
  34. data/lib/autoproj/cli/doc.rb +2 -2
  35. data/lib/autoproj/cli/envsh.rb +1 -2
  36. data/lib/autoproj/cli/exec.rb +60 -20
  37. data/lib/autoproj/cli/inspection_tool.rb +13 -7
  38. data/lib/autoproj/cli/locate.rb +30 -41
  39. data/lib/autoproj/cli/log.rb +7 -7
  40. data/lib/autoproj/cli/main.rb +213 -204
  41. data/lib/autoproj/cli/main_doc.rb +22 -21
  42. data/lib/autoproj/cli/main_global.rb +44 -19
  43. data/lib/autoproj/cli/main_plugin.rb +18 -18
  44. data/lib/autoproj/cli/main_test.rb +28 -27
  45. data/lib/autoproj/cli/manifest.rb +7 -7
  46. data/lib/autoproj/cli/osdeps.rb +12 -11
  47. data/lib/autoproj/cli/patcher.rb +2 -3
  48. data/lib/autoproj/cli/query.rb +17 -18
  49. data/lib/autoproj/cli/reconfigure.rb +1 -2
  50. data/lib/autoproj/cli/reset.rb +9 -12
  51. data/lib/autoproj/cli/show.rb +38 -39
  52. data/lib/autoproj/cli/status.rb +45 -39
  53. data/lib/autoproj/cli/switch_config.rb +5 -6
  54. data/lib/autoproj/cli/tag.rb +12 -11
  55. data/lib/autoproj/cli/test.rb +7 -7
  56. data/lib/autoproj/cli/update.rb +35 -37
  57. data/lib/autoproj/cli/utility.rb +11 -10
  58. data/lib/autoproj/cli/version.rb +42 -40
  59. data/lib/autoproj/cli/versions.rb +14 -15
  60. data/lib/autoproj/cli/watch.rb +33 -37
  61. data/lib/autoproj/cli/which.rb +16 -20
  62. data/lib/autoproj/cli.rb +4 -2
  63. data/lib/autoproj/configuration.rb +77 -84
  64. data/lib/autoproj/environment.rb +28 -13
  65. data/lib/autoproj/exceptions.rb +9 -3
  66. data/lib/autoproj/find_workspace.rb +20 -25
  67. data/lib/autoproj/git_server_configuration.rb +40 -44
  68. data/lib/autoproj/gitorious.rb +1 -1
  69. data/lib/autoproj/installation_manifest.rb +64 -29
  70. data/lib/autoproj/local_package_set.rb +13 -11
  71. data/lib/autoproj/manifest.rb +132 -130
  72. data/lib/autoproj/metapackage.rb +2 -6
  73. data/lib/autoproj/ops/atomic_write.rb +7 -6
  74. data/lib/autoproj/ops/build.rb +4 -6
  75. data/lib/autoproj/ops/cache.rb +41 -43
  76. data/lib/autoproj/ops/cached_env.rb +5 -4
  77. data/lib/autoproj/ops/configuration.rb +511 -506
  78. data/lib/autoproj/ops/import.rb +73 -63
  79. data/lib/autoproj/ops/install.rb +178 -174
  80. data/lib/autoproj/ops/loader.rb +77 -76
  81. data/lib/autoproj/ops/main_config_switcher.rb +36 -45
  82. data/lib/autoproj/ops/phase_reporting.rb +4 -4
  83. data/lib/autoproj/ops/snapshot.rb +250 -247
  84. data/lib/autoproj/ops/tools.rb +76 -78
  85. data/lib/autoproj/ops/watch.rb +6 -6
  86. data/lib/autoproj/ops/which.rb +17 -14
  87. data/lib/autoproj/options.rb +13 -2
  88. data/lib/autoproj/os_package_installer.rb +102 -92
  89. data/lib/autoproj/os_package_query.rb +7 -13
  90. data/lib/autoproj/os_package_resolver.rb +189 -140
  91. data/lib/autoproj/os_repository_installer.rb +4 -4
  92. data/lib/autoproj/os_repository_resolver.rb +8 -6
  93. data/lib/autoproj/package_definition.rb +12 -13
  94. data/lib/autoproj/package_managers/apt_dpkg_manager.rb +10 -10
  95. data/lib/autoproj/package_managers/bundler_manager.rb +147 -111
  96. data/lib/autoproj/package_managers/debian_version.rb +25 -21
  97. data/lib/autoproj/package_managers/emerge_manager.rb +2 -3
  98. data/lib/autoproj/package_managers/gem_manager.rb +68 -77
  99. data/lib/autoproj/package_managers/homebrew_manager.rb +3 -4
  100. data/lib/autoproj/package_managers/manager.rb +8 -3
  101. data/lib/autoproj/package_managers/pacman_manager.rb +2 -3
  102. data/lib/autoproj/package_managers/pip_manager.rb +20 -22
  103. data/lib/autoproj/package_managers/pkg_manager.rb +3 -4
  104. data/lib/autoproj/package_managers/port_manager.rb +2 -3
  105. data/lib/autoproj/package_managers/shell_script_manager.rb +32 -22
  106. data/lib/autoproj/package_managers/unknown_os_manager.rb +5 -8
  107. data/lib/autoproj/package_managers/yum_manager.rb +12 -15
  108. data/lib/autoproj/package_managers/zypper_manager.rb +11 -14
  109. data/lib/autoproj/package_manifest.rb +27 -26
  110. data/lib/autoproj/package_selection.rb +187 -187
  111. data/lib/autoproj/package_set.rb +127 -113
  112. data/lib/autoproj/python.rb +55 -55
  113. data/lib/autoproj/query_base.rb +20 -14
  114. data/lib/autoproj/reporter.rb +19 -19
  115. data/lib/autoproj/repository_managers/apt.rb +101 -67
  116. data/lib/autoproj/repository_managers/unknown_os_manager.rb +3 -3
  117. data/lib/autoproj/shell_completion.rb +16 -13
  118. data/lib/autoproj/source_package_query.rb +29 -36
  119. data/lib/autoproj/system.rb +32 -21
  120. data/lib/autoproj/test.rb +127 -104
  121. data/lib/autoproj/variable_expansion.rb +7 -9
  122. data/lib/autoproj/vcs_definition.rb +35 -32
  123. data/lib/autoproj/version.rb +1 -1
  124. data/lib/autoproj/workspace.rb +123 -107
  125. data/lib/autoproj/zsh_completion.rb +8 -9
  126. data/lib/autoproj.rb +53 -55
  127. data/samples/autoproj/init.rb +1 -2
  128. metadata +53 -51
  129. data/.travis.yml +0 -24
data/lib/autoproj.rb CHANGED
@@ -1,64 +1,63 @@
1
- require 'rexml/streamlistener'
2
- require "enumerator"
3
- require 'utilrb/module/attr_predicate'
4
- require 'pathname'
5
- require 'concurrent'
1
+ require "rexml/streamlistener"
2
+ require "utilrb/module/attr_predicate"
3
+ require "pathname"
4
+ require "concurrent"
6
5
 
7
- require 'backports/2.4.0/float/dup'
8
- require 'backports/2.4.0/fixnum/dup'
9
- require 'backports/2.4.0/nil_class/dup'
10
- require 'backports/2.4.0/false_class/dup'
11
- require 'backports/2.4.0/true_class/dup'
12
- require 'backports/2.4.0/hash/transform_values'
13
- require 'backports/2.5.0/hash/transform_keys'
6
+ require "backports/2.4.0/float/dup"
7
+ require "backports/2.4.0/fixnum/dup"
8
+ require "backports/2.4.0/nil_class/dup"
9
+ require "backports/2.4.0/false_class/dup"
10
+ require "backports/2.4.0/true_class/dup"
11
+ require "backports/2.4.0/hash/transform_values"
12
+ require "backports/2.5.0/hash/transform_keys"
14
13
 
15
- require 'autobuild'
16
- require 'autoproj/autobuild'
17
- require 'autoproj/base'
18
- require 'autoproj/exceptions'
19
- require 'autoproj/version'
20
- require 'autoproj/reporter'
21
- require 'autoproj/environment'
22
- require 'autoproj/variable_expansion'
23
- require 'autoproj/find_workspace'
24
- require 'autoproj/vcs_definition'
25
- require 'autoproj/package_set'
26
- require 'autoproj/local_package_set'
27
- require 'autoproj/package_definition'
28
- require 'autoproj/package_selection'
29
- require 'autoproj/metapackage'
30
- require 'autoproj/manifest'
31
- require 'autoproj/package_manifest'
32
- require 'autoproj/installation_manifest'
33
- require 'autoproj/os_package_installer'
34
- require 'autoproj/os_package_resolver'
35
- require 'autoproj/os_repository_resolver'
36
- require 'autoproj/os_repository_installer'
37
- require 'autoproj/system'
38
- require 'autoproj/build_option'
39
- require 'autoproj/configuration'
40
- require 'autoproj/options'
14
+ require "autobuild"
15
+ require "autoproj/autobuild"
16
+ require "autoproj/base"
17
+ require "autoproj/exceptions"
18
+ require "autoproj/version"
19
+ require "autoproj/reporter"
20
+ require "autoproj/environment"
21
+ require "autoproj/variable_expansion"
22
+ require "autoproj/find_workspace"
23
+ require "autoproj/vcs_definition"
24
+ require "autoproj/package_set"
25
+ require "autoproj/local_package_set"
26
+ require "autoproj/package_definition"
27
+ require "autoproj/package_selection"
28
+ require "autoproj/metapackage"
29
+ require "autoproj/manifest"
30
+ require "autoproj/package_manifest"
31
+ require "autoproj/installation_manifest"
32
+ require "autoproj/os_package_installer"
33
+ require "autoproj/os_package_resolver"
34
+ require "autoproj/os_repository_resolver"
35
+ require "autoproj/os_repository_installer"
36
+ require "autoproj/system"
37
+ require "autoproj/build_option"
38
+ require "autoproj/configuration"
39
+ require "autoproj/options"
41
40
  # Required by Workspace
42
- require 'autoproj/ops/import'
41
+ require "autoproj/ops/import"
43
42
  # Required for auto-saving in import_packages
44
- require 'autoproj/ops/snapshot'
45
- require 'autoproj/query_base'
46
- require 'autoproj/source_package_query'
47
- require 'autoproj/os_package_query'
43
+ require "autoproj/ops/snapshot"
44
+ require "autoproj/query_base"
45
+ require "autoproj/source_package_query"
46
+ require "autoproj/os_package_query"
48
47
 
49
- require 'autoproj/ops/phase_reporting'
50
- require 'autoproj/ops/install'
51
- require 'autoproj/ops/tools'
52
- require 'autoproj/ops/loader'
53
- require 'autoproj/ops/configuration'
54
- require 'autoproj/ops/cached_env'
55
- require 'autoproj/ops/which'
56
- require 'autoproj/ops/atomic_write'
48
+ require "autoproj/ops/phase_reporting"
49
+ require "autoproj/ops/install"
50
+ require "autoproj/ops/tools"
51
+ require "autoproj/ops/loader"
52
+ require "autoproj/ops/configuration"
53
+ require "autoproj/ops/cached_env"
54
+ require "autoproj/ops/which"
55
+ require "autoproj/ops/atomic_write"
57
56
 
58
- require 'autoproj/workspace'
57
+ require "autoproj/workspace"
59
58
 
60
- require 'logger'
61
- require 'utilrb/logger'
59
+ require "logger"
60
+ require "utilrb/logger"
62
61
 
63
62
  module Autoproj
64
63
  class << self
@@ -89,4 +88,3 @@ module Autoproj
89
88
  end
90
89
  end
91
90
  end
92
-
@@ -1,5 +1,5 @@
1
1
  # Define the github handler
2
- require 'autoproj/git_server_configuration'
2
+ require "autoproj/git_server_configuration"
3
3
 
4
4
  # Comment this line if you want Autoproj to import the overall shell
5
5
  # environment. The default is to reset all build-related environment variables,
@@ -19,4 +19,3 @@ Autobuild::CMake.show_make_messages = true
19
19
  # handler will remove installed files that are not part of the package anymore.
20
20
  Autoproj.config.separate_prefixes = true
21
21
  Autobuild::CMake.delete_obsolete_files_in_prefix = Autoproj.config.separate_prefixes?
22
-
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.0
4
+ version: 2.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-08 00:00:00.000000000 Z
11
+ date: 2021-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: autobuild
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -53,53 +39,61 @@ dependencies:
53
39
  - !ruby/object:Gem::Version
54
40
  version: '3.0'
55
41
  - !ruby/object:Gem::Dependency
56
- name: utilrb
42
+ name: bundler
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 3.0.0
62
45
  - - ">="
63
46
  - !ruby/object:Gem::Version
64
- version: 3.0.0
47
+ version: '0'
65
48
  type: :runtime
66
49
  prerelease: false
67
50
  version_requirements: !ruby/object:Gem::Requirement
68
51
  requirements:
69
- - - "~>"
70
- - !ruby/object:Gem::Version
71
- version: 3.0.0
72
52
  - - ">="
73
53
  - !ruby/object:Gem::Version
74
- version: 3.0.0
54
+ version: '0'
75
55
  - !ruby/object:Gem::Dependency
76
- name: thor
56
+ name: concurrent-ruby
77
57
  requirement: !ruby/object:Gem::Requirement
78
58
  requirements:
79
59
  - - "~>"
80
60
  - !ruby/object:Gem::Version
81
- version: '1.0'
61
+ version: '1.1'
82
62
  type: :runtime
83
63
  prerelease: false
84
64
  version_requirements: !ruby/object:Gem::Requirement
85
65
  requirements:
86
66
  - - "~>"
87
67
  - !ruby/object:Gem::Version
88
- version: '1.0'
68
+ version: '1.1'
89
69
  - !ruby/object:Gem::Dependency
90
- name: concurrent-ruby
70
+ name: rb-inotify
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: thor
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: '1.1'
89
+ version: '1.0'
96
90
  type: :runtime
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: '1.1'
96
+ version: '1.0'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: tty-color
105
99
  requirement: !ruby/object:Gem::Requirement
@@ -143,19 +137,25 @@ dependencies:
143
137
  - !ruby/object:Gem::Version
144
138
  version: 0.9.0
145
139
  - !ruby/object:Gem::Dependency
146
- name: rb-inotify
140
+ name: utilrb
147
141
  requirement: !ruby/object:Gem::Requirement
148
142
  requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 3.0.0
149
146
  - - ">="
150
147
  - !ruby/object:Gem::Version
151
- version: '0'
148
+ version: 3.0.0
152
149
  type: :runtime
153
150
  prerelease: false
154
151
  version_requirements: !ruby/object:Gem::Requirement
155
152
  requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: 3.0.0
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
- version: '0'
158
+ version: 3.0.0
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: xdg
161
161
  requirement: !ruby/object:Gem::Requirement
@@ -170,6 +170,20 @@ dependencies:
170
170
  - - '='
171
171
  - !ruby/object:Gem::Version
172
172
  version: 2.2.5
173
+ - !ruby/object:Gem::Dependency
174
+ name: aruba
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
173
187
  - !ruby/object:Gem::Dependency
174
188
  name: flexmock
175
189
  requirement: !ruby/object:Gem::Requirement
@@ -225,7 +239,7 @@ dependencies:
225
239
  - !ruby/object:Gem::Version
226
240
  version: '0'
227
241
  - !ruby/object:Gem::Dependency
228
- name: aruba
242
+ name: timecop
229
243
  requirement: !ruby/object:Gem::Requirement
230
244
  requirements:
231
245
  - - ">="
@@ -252,20 +266,6 @@ dependencies:
252
266
  - - ">="
253
267
  - !ruby/object:Gem::Version
254
268
  version: '0'
255
- - !ruby/object:Gem::Dependency
256
- name: timecop
257
- requirement: !ruby/object:Gem::Requirement
258
- requirements:
259
- - - ">="
260
- - !ruby/object:Gem::Version
261
- version: '0'
262
- type: :development
263
- prerelease: false
264
- version_requirements: !ruby/object:Gem::Requirement
265
- requirements:
266
- - - ">="
267
- - !ruby/object:Gem::Version
268
- version: '0'
269
269
  description: autoproj is a manager for sets of software packages. It allows the user
270
270
  to import and build packages from source, still using the underlying distribution's
271
271
  native package manager for software that is available on it.
@@ -280,9 +280,11 @@ extensions: []
280
280
  extra_rdoc_files: []
281
281
  files:
282
282
  - ".gitattributes"
283
+ - ".github/workflows/lint.yml"
284
+ - ".github/workflows/test.yml"
283
285
  - ".gitignore"
284
286
  - ".rubocop.yml"
285
- - ".travis.yml"
287
+ - ".rubocop_todo.yml"
286
288
  - ".vscode/launch.json"
287
289
  - Gemfile
288
290
  - History.txt
@@ -448,7 +450,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
448
450
  requirements:
449
451
  - - ">="
450
452
  - !ruby/object:Gem::Version
451
- version: 2.1.0
453
+ version: 2.5.0
452
454
  required_rubygems_version: !ruby/object:Gem::Requirement
453
455
  requirements:
454
456
  - - ">="
data/.travis.yml DELETED
@@ -1,24 +0,0 @@
1
- sudo: true
2
- language: ruby
3
- rvm:
4
- - "2.3"
5
- - "2.4"
6
- - "2.5"
7
- - "2.6"
8
- - "2.7"
9
- - jruby-9.1.15.0
10
- matrix:
11
- allow_failures:
12
- - rvm: jruby-9.1.15.0
13
-
14
- cache: bundler
15
-
16
- install:
17
- - git config --global user.name "Autoproj on Travis CI"
18
- - git config --global user.email "autoproj@travis"
19
- - gem install bundler
20
- # Some tests expect gems to be present in vendor/bundle
21
- - bundle install --path vendor/bundle
22
- script:
23
- - bundle exec rake
24
- - AUTOPROJ_SKIP_LONG_TESTS=1 bundle exec rake test