autoproj 2.14.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yml +25 -0
- data/.github/workflows/test.yml +30 -0
- data/.rubocop.yml +79 -91
- data/.rubocop_todo.yml +1473 -0
- data/Gemfile +9 -9
- data/Rakefile +24 -24
- data/autoproj.gemspec +22 -22
- data/bin/alocate +4 -4
- data/bin/alog +5 -7
- data/bin/amake +4 -4
- data/bin/aup +4 -4
- data/bin/autoproj +3 -3
- data/bin/autoproj_bootstrap +185 -182
- data/bin/autoproj_bootstrap.in +7 -8
- data/bin/autoproj_install +184 -181
- data/bin/autoproj_install.in +6 -7
- data/lib/autoproj/aruba_minitest.rb +6 -11
- data/lib/autoproj/autobuild.rb +5 -6
- data/lib/autoproj/autobuild_extensions/archive_importer.rb +10 -11
- data/lib/autoproj/autobuild_extensions/dsl.rb +38 -34
- data/lib/autoproj/autobuild_extensions/git.rb +27 -26
- data/lib/autoproj/autobuild_extensions/package.rb +23 -22
- data/lib/autoproj/autobuild_extensions/svn.rb +1 -2
- data/lib/autoproj/base.rb +1 -1
- data/lib/autoproj/bash_completion.rb +5 -6
- data/lib/autoproj/build_option.rb +22 -24
- data/lib/autoproj/cli/base.rb +26 -26
- data/lib/autoproj/cli/bootstrap.rb +14 -16
- data/lib/autoproj/cli/build.rb +10 -7
- data/lib/autoproj/cli/cache.rb +11 -11
- data/lib/autoproj/cli/clean.rb +10 -10
- data/lib/autoproj/cli/commit.rb +7 -8
- data/lib/autoproj/cli/doc.rb +2 -2
- data/lib/autoproj/cli/envsh.rb +1 -2
- data/lib/autoproj/cli/exec.rb +60 -20
- data/lib/autoproj/cli/inspection_tool.rb +13 -7
- data/lib/autoproj/cli/locate.rb +30 -41
- data/lib/autoproj/cli/log.rb +7 -7
- data/lib/autoproj/cli/main.rb +213 -204
- data/lib/autoproj/cli/main_doc.rb +22 -21
- data/lib/autoproj/cli/main_global.rb +44 -19
- data/lib/autoproj/cli/main_plugin.rb +18 -18
- data/lib/autoproj/cli/main_test.rb +28 -27
- data/lib/autoproj/cli/manifest.rb +7 -7
- data/lib/autoproj/cli/osdeps.rb +12 -11
- data/lib/autoproj/cli/patcher.rb +2 -3
- data/lib/autoproj/cli/query.rb +17 -18
- data/lib/autoproj/cli/reconfigure.rb +1 -2
- data/lib/autoproj/cli/reset.rb +9 -12
- data/lib/autoproj/cli/show.rb +38 -39
- data/lib/autoproj/cli/status.rb +45 -39
- data/lib/autoproj/cli/switch_config.rb +5 -6
- data/lib/autoproj/cli/tag.rb +12 -11
- data/lib/autoproj/cli/test.rb +7 -7
- data/lib/autoproj/cli/update.rb +35 -37
- data/lib/autoproj/cli/utility.rb +11 -10
- data/lib/autoproj/cli/version.rb +42 -40
- data/lib/autoproj/cli/versions.rb +14 -15
- data/lib/autoproj/cli/watch.rb +33 -37
- data/lib/autoproj/cli/which.rb +16 -20
- data/lib/autoproj/cli.rb +4 -2
- data/lib/autoproj/configuration.rb +77 -84
- data/lib/autoproj/environment.rb +28 -13
- data/lib/autoproj/exceptions.rb +9 -3
- data/lib/autoproj/find_workspace.rb +20 -25
- data/lib/autoproj/git_server_configuration.rb +40 -44
- data/lib/autoproj/gitorious.rb +1 -1
- data/lib/autoproj/installation_manifest.rb +64 -29
- data/lib/autoproj/local_package_set.rb +13 -11
- data/lib/autoproj/manifest.rb +132 -130
- data/lib/autoproj/metapackage.rb +2 -6
- data/lib/autoproj/ops/atomic_write.rb +7 -6
- data/lib/autoproj/ops/build.rb +4 -6
- data/lib/autoproj/ops/cache.rb +41 -43
- data/lib/autoproj/ops/cached_env.rb +5 -4
- data/lib/autoproj/ops/configuration.rb +511 -506
- data/lib/autoproj/ops/import.rb +73 -63
- data/lib/autoproj/ops/install.rb +178 -174
- data/lib/autoproj/ops/loader.rb +77 -76
- data/lib/autoproj/ops/main_config_switcher.rb +36 -45
- data/lib/autoproj/ops/phase_reporting.rb +4 -4
- data/lib/autoproj/ops/snapshot.rb +250 -247
- data/lib/autoproj/ops/tools.rb +76 -78
- data/lib/autoproj/ops/watch.rb +6 -6
- data/lib/autoproj/ops/which.rb +17 -14
- data/lib/autoproj/options.rb +13 -2
- data/lib/autoproj/os_package_installer.rb +102 -92
- data/lib/autoproj/os_package_query.rb +7 -13
- data/lib/autoproj/os_package_resolver.rb +189 -140
- data/lib/autoproj/os_repository_installer.rb +4 -4
- data/lib/autoproj/os_repository_resolver.rb +8 -6
- data/lib/autoproj/package_definition.rb +12 -13
- data/lib/autoproj/package_managers/apt_dpkg_manager.rb +10 -10
- data/lib/autoproj/package_managers/bundler_manager.rb +147 -111
- data/lib/autoproj/package_managers/debian_version.rb +25 -21
- data/lib/autoproj/package_managers/emerge_manager.rb +2 -3
- data/lib/autoproj/package_managers/gem_manager.rb +68 -77
- data/lib/autoproj/package_managers/homebrew_manager.rb +3 -4
- data/lib/autoproj/package_managers/manager.rb +8 -3
- data/lib/autoproj/package_managers/pacman_manager.rb +2 -3
- data/lib/autoproj/package_managers/pip_manager.rb +20 -22
- data/lib/autoproj/package_managers/pkg_manager.rb +3 -4
- data/lib/autoproj/package_managers/port_manager.rb +2 -3
- data/lib/autoproj/package_managers/shell_script_manager.rb +32 -22
- data/lib/autoproj/package_managers/unknown_os_manager.rb +5 -8
- data/lib/autoproj/package_managers/yum_manager.rb +12 -15
- data/lib/autoproj/package_managers/zypper_manager.rb +11 -14
- data/lib/autoproj/package_manifest.rb +27 -26
- data/lib/autoproj/package_selection.rb +187 -187
- data/lib/autoproj/package_set.rb +127 -113
- data/lib/autoproj/python.rb +55 -55
- data/lib/autoproj/query_base.rb +20 -14
- data/lib/autoproj/reporter.rb +19 -19
- data/lib/autoproj/repository_managers/apt.rb +101 -67
- data/lib/autoproj/repository_managers/unknown_os_manager.rb +3 -3
- data/lib/autoproj/shell_completion.rb +16 -13
- data/lib/autoproj/source_package_query.rb +29 -36
- data/lib/autoproj/system.rb +32 -21
- data/lib/autoproj/test.rb +127 -104
- data/lib/autoproj/variable_expansion.rb +7 -9
- data/lib/autoproj/vcs_definition.rb +35 -32
- data/lib/autoproj/version.rb +1 -1
- data/lib/autoproj/workspace.rb +123 -107
- data/lib/autoproj/zsh_completion.rb +8 -9
- data/lib/autoproj.rb +53 -55
- data/samples/autoproj/init.rb +1 -2
- metadata +53 -51
- data/.travis.yml +0 -24
data/lib/autoproj.rb
CHANGED
@@ -1,64 +1,63 @@
|
|
1
|
-
require
|
2
|
-
require "
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require 'concurrent'
|
1
|
+
require "rexml/streamlistener"
|
2
|
+
require "utilrb/module/attr_predicate"
|
3
|
+
require "pathname"
|
4
|
+
require "concurrent"
|
6
5
|
|
7
|
-
require
|
8
|
-
require
|
9
|
-
require
|
10
|
-
require
|
11
|
-
require
|
12
|
-
require
|
13
|
-
require
|
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
|
16
|
-
require
|
17
|
-
require
|
18
|
-
require
|
19
|
-
require
|
20
|
-
require
|
21
|
-
require
|
22
|
-
require
|
23
|
-
require
|
24
|
-
require
|
25
|
-
require
|
26
|
-
require
|
27
|
-
require
|
28
|
-
require
|
29
|
-
require
|
30
|
-
require
|
31
|
-
require
|
32
|
-
require
|
33
|
-
require
|
34
|
-
require
|
35
|
-
require
|
36
|
-
require
|
37
|
-
require
|
38
|
-
require
|
39
|
-
require
|
40
|
-
require
|
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
|
41
|
+
require "autoproj/ops/import"
|
43
42
|
# Required for auto-saving in import_packages
|
44
|
-
require
|
45
|
-
require
|
46
|
-
require
|
47
|
-
require
|
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
|
50
|
-
require
|
51
|
-
require
|
52
|
-
require
|
53
|
-
require
|
54
|
-
require
|
55
|
-
require
|
56
|
-
require
|
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
|
57
|
+
require "autoproj/workspace"
|
59
58
|
|
60
|
-
require
|
61
|
-
require
|
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
|
-
|
data/samples/autoproj/init.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Define the github handler
|
2
|
-
require
|
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.
|
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-
|
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:
|
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:
|
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:
|
54
|
+
version: '0'
|
75
55
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
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.
|
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.
|
68
|
+
version: '1.1'
|
89
69
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
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.
|
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.
|
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:
|
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:
|
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:
|
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:
|
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
|
-
- ".
|
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.
|
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
|