autoproj 2.12.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 +6 -7
- data/bin/amake +4 -4
- data/bin/aup +4 -4
- data/bin/autoproj +2 -2
- data/bin/autoproj_bootstrap +186 -183
- data/bin/autoproj_bootstrap.in +7 -8
- data/bin/autoproj_install +185 -182
- 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 +61 -44
- 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 +27 -27
- data/lib/autoproj/cli/bootstrap.rb +14 -16
- data/lib/autoproj/cli/build.rb +18 -10
- data/lib/autoproj/cli/cache.rb +51 -8
- 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 +18 -13
- data/lib/autoproj/cli/locate.rb +30 -41
- data/lib/autoproj/cli/log.rb +7 -7
- data/lib/autoproj/cli/main.rb +217 -205
- 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 +48 -55
- data/lib/autoproj/cli/status.rb +56 -44
- 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 +104 -51
- data/lib/autoproj/cli/utility.rb +14 -12
- 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 +78 -85
- data/lib/autoproj/default.osdeps +29 -3
- data/lib/autoproj/environment.rb +42 -23
- 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 +145 -135
- 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 +64 -53
- data/lib/autoproj/ops/cached_env.rb +7 -6
- data/lib/autoproj/ops/configuration.rb +511 -506
- data/lib/autoproj/ops/import.rb +90 -61
- data/lib/autoproj/ops/install.rb +179 -175
- 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 +46 -31
- data/lib/autoproj/package_managers/bundler_manager.rb +156 -118
- 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 +37 -27
- 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 +66 -36
- 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 +66 -53
- data/lib/autoproj/package_selection.rb +187 -187
- data/lib/autoproj/package_set.rb +128 -114
- data/lib/autoproj/python.rb +285 -0
- 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 +131 -106
- data/lib/autoproj/variable_expansion.rb +10 -10
- data/lib/autoproj/vcs_definition.rb +53 -37
- data/lib/autoproj/version.rb +1 -1
- data/lib/autoproj/workspace.rb +162 -117
- data/lib/autoproj/zsh_completion.rb +8 -9
- data/lib/autoproj.rb +53 -53
- data/samples/autoproj/init.rb +1 -2
- metadata +62 -72
- data/.travis.yml +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e37a5cc9f8c9ada28c0adbf2fed26100734010c4076251e49efdcacc55692a8f
|
4
|
+
data.tar.gz: e0d14e06bd7531fa0e572f1af4a85d805480a50457cce7e433c3d6f54331c546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b8194f91586c641f6ea957791a8511d94eac07b454a45a77ac67e085bd3a96251ba87193dd0410709863d97db4fde959911c1e3911b86d49e5cfb3808cbcd94
|
7
|
+
data.tar.gz: 2d05c7b38d65095aac4183967c036e86dc596d765e5a236cad7af5b19e8d6d56188d6da42a227b6aa4080ea71356ac70521cbc86ef10a27fe6682c9f0a80b46b
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Rubocop
|
2
|
+
|
3
|
+
on: [pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
ruby-version: ["2.7", "2.6", "2.5"]
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
16
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
17
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
18
|
+
# uses: ruby/setup-ruby@v1
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby-version }}
|
22
|
+
- name: Install dependencies
|
23
|
+
run: bundle install
|
24
|
+
- name: Run rubocop
|
25
|
+
run: bundle exec rubocop
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: Unit Tests
|
2
|
+
|
3
|
+
on: [pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
ruby-version: ["2.7", "2.6", "2.5"]
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
16
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
17
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
18
|
+
# uses: ruby/setup-ruby@v1
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby-version }}
|
22
|
+
- name: Install dependencies
|
23
|
+
run: bundle install
|
24
|
+
- name: Run tests
|
25
|
+
run: bundle exec rake test
|
26
|
+
env:
|
27
|
+
GIT_AUTHOR_NAME: autobuild CI Git Identity
|
28
|
+
GIT_AUTHOR_EMAIL: autobuild@github.actions
|
29
|
+
GIT_COMMITTER_NAME: autobuild CI Git Identity
|
30
|
+
GIT_COMMITTER_EMAIL: autobuild@github.actions
|
data/.rubocop.yml
CHANGED
@@ -1,28 +1,15 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
1
3
|
inherit_gem:
|
2
4
|
rubocop-rock: defaults.yml
|
3
5
|
|
4
6
|
AllCops:
|
5
|
-
TargetRubyVersion: "2.
|
7
|
+
TargetRubyVersion: "2.5"
|
6
8
|
Exclude:
|
7
9
|
- lib/autobuild/packages/genom.rb
|
8
10
|
- vendor/**/*
|
9
11
|
- pkg/**/*
|
10
12
|
|
11
|
-
Style/ClassVars:
|
12
|
-
Enabled: false
|
13
|
-
|
14
|
-
Style/TrivialAccessors:
|
15
|
-
IgnoreClassMethods: true
|
16
|
-
|
17
|
-
Naming/PredicateName:
|
18
|
-
Enabled: false
|
19
|
-
|
20
|
-
Style/FrozenStringLiteralComment:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
Style/AccessModifierDeclarations:
|
24
|
-
EnforcedStyle: inline
|
25
|
-
|
26
13
|
Naming/FileName:
|
27
14
|
Exclude:
|
28
15
|
- lib/autobuild/import/git-lfs.rb
|
@@ -33,78 +20,79 @@ Metrics/ParameterLists:
|
|
33
20
|
Naming/MethodParameterName:
|
34
21
|
AllowedNames: [io, id, to, by, on, in, at, ip, db, ws]
|
35
22
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
Lint/
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
Style/
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
Style/
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
Style/
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
23
|
+
Gemspec/DateAssignment: # new in 1.10
|
24
|
+
Enabled: true
|
25
|
+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
26
|
+
Enabled: true
|
27
|
+
Layout/SpaceBeforeBrackets: # new in 1.7
|
28
|
+
Enabled: true
|
29
|
+
Lint/AmbiguousAssignment: # new in 1.7
|
30
|
+
Enabled: true
|
31
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
32
|
+
Enabled: true
|
33
|
+
Lint/AmbiguousRange: # new in 1.19
|
34
|
+
Enabled: true
|
35
|
+
Lint/DeprecatedConstants: # new in 1.8
|
36
|
+
Enabled: true
|
37
|
+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
38
|
+
Enabled: true
|
39
|
+
Lint/EmptyClass: # new in 1.3
|
40
|
+
Enabled: true
|
41
|
+
Lint/EmptyInPattern: # new in 1.16
|
42
|
+
Enabled: true
|
43
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
44
|
+
Enabled: true
|
45
|
+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
46
|
+
Enabled: true
|
47
|
+
Lint/NumberedParameterAssignment: # new in 1.9
|
48
|
+
Enabled: true
|
49
|
+
Lint/OrAssignmentToConstant: # new in 1.9
|
50
|
+
Enabled: true
|
51
|
+
Lint/RedundantDirGlobSort: # new in 1.8
|
52
|
+
Enabled: true
|
53
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
54
|
+
Enabled: true
|
55
|
+
Lint/SymbolConversion: # new in 1.9
|
56
|
+
Enabled: true
|
57
|
+
Lint/ToEnumArguments: # new in 1.1
|
58
|
+
Enabled: true
|
59
|
+
Lint/TripleQuotes: # new in 1.9
|
60
|
+
Enabled: true
|
61
|
+
Lint/UnexpectedBlockArity: # new in 1.5
|
62
|
+
Enabled: true
|
63
|
+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
64
|
+
Enabled: true
|
65
|
+
Security/IoMethods: # new in 1.22
|
66
|
+
Enabled: true
|
67
|
+
Style/ArgumentsForwarding: # new in 1.1
|
68
|
+
Enabled: true
|
69
|
+
Style/CollectionCompact: # new in 1.2
|
70
|
+
Enabled: true
|
71
|
+
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
72
|
+
Enabled: true
|
73
|
+
Style/EndlessMethod: # new in 1.8
|
74
|
+
Enabled: true
|
75
|
+
Style/HashExcept: # new in 1.7
|
76
|
+
Enabled: true
|
77
|
+
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
78
|
+
Enabled: true
|
79
|
+
Style/InPatternThen: # new in 1.16
|
80
|
+
Enabled: true
|
81
|
+
Style/MultilineInPatternThen: # new in 1.16
|
82
|
+
Enabled: true
|
83
|
+
Style/NegatedIfElseCondition: # new in 1.2
|
84
|
+
Enabled: true
|
85
|
+
Style/NilLambda: # new in 1.3
|
86
|
+
Enabled: true
|
87
|
+
Style/NumberedParameters: # new in 1.22
|
88
|
+
Enabled: true
|
89
|
+
Style/NumberedParametersLimit: # new in 1.22
|
90
|
+
Enabled: true
|
91
|
+
Style/QuotedSymbols: # new in 1.16
|
92
|
+
Enabled: true
|
93
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
94
|
+
Enabled: true
|
95
|
+
Style/StringChars: # new in 1.12
|
96
|
+
Enabled: true
|
97
|
+
Style/SwapValues: # new in 1.1
|
98
|
+
Enabled: true
|