autoproj 2.12.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) 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 +6 -7
  11. data/bin/amake +4 -4
  12. data/bin/aup +4 -4
  13. data/bin/autoproj +2 -2
  14. data/bin/autoproj_bootstrap +186 -183
  15. data/bin/autoproj_bootstrap.in +7 -8
  16. data/bin/autoproj_install +185 -182
  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 +61 -44
  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 +27 -27
  29. data/lib/autoproj/cli/bootstrap.rb +14 -16
  30. data/lib/autoproj/cli/build.rb +18 -10
  31. data/lib/autoproj/cli/cache.rb +51 -8
  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 +18 -13
  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 +217 -205
  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 +48 -55
  52. data/lib/autoproj/cli/status.rb +56 -44
  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 +104 -51
  57. data/lib/autoproj/cli/utility.rb +14 -12
  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 +78 -85
  64. data/lib/autoproj/default.osdeps +29 -3
  65. data/lib/autoproj/environment.rb +42 -23
  66. data/lib/autoproj/exceptions.rb +9 -3
  67. data/lib/autoproj/find_workspace.rb +20 -25
  68. data/lib/autoproj/git_server_configuration.rb +40 -44
  69. data/lib/autoproj/gitorious.rb +1 -1
  70. data/lib/autoproj/installation_manifest.rb +64 -29
  71. data/lib/autoproj/local_package_set.rb +13 -11
  72. data/lib/autoproj/manifest.rb +145 -135
  73. data/lib/autoproj/metapackage.rb +2 -6
  74. data/lib/autoproj/ops/atomic_write.rb +7 -6
  75. data/lib/autoproj/ops/build.rb +4 -6
  76. data/lib/autoproj/ops/cache.rb +64 -53
  77. data/lib/autoproj/ops/cached_env.rb +7 -6
  78. data/lib/autoproj/ops/configuration.rb +511 -506
  79. data/lib/autoproj/ops/import.rb +90 -61
  80. data/lib/autoproj/ops/install.rb +179 -175
  81. data/lib/autoproj/ops/loader.rb +77 -76
  82. data/lib/autoproj/ops/main_config_switcher.rb +36 -45
  83. data/lib/autoproj/ops/phase_reporting.rb +4 -4
  84. data/lib/autoproj/ops/snapshot.rb +250 -247
  85. data/lib/autoproj/ops/tools.rb +76 -78
  86. data/lib/autoproj/ops/watch.rb +6 -6
  87. data/lib/autoproj/ops/which.rb +17 -14
  88. data/lib/autoproj/options.rb +13 -2
  89. data/lib/autoproj/os_package_installer.rb +102 -92
  90. data/lib/autoproj/os_package_query.rb +7 -13
  91. data/lib/autoproj/os_package_resolver.rb +189 -140
  92. data/lib/autoproj/os_repository_installer.rb +4 -4
  93. data/lib/autoproj/os_repository_resolver.rb +8 -6
  94. data/lib/autoproj/package_definition.rb +12 -13
  95. data/lib/autoproj/package_managers/apt_dpkg_manager.rb +46 -31
  96. data/lib/autoproj/package_managers/bundler_manager.rb +156 -118
  97. data/lib/autoproj/package_managers/debian_version.rb +25 -21
  98. data/lib/autoproj/package_managers/emerge_manager.rb +2 -3
  99. data/lib/autoproj/package_managers/gem_manager.rb +68 -77
  100. data/lib/autoproj/package_managers/homebrew_manager.rb +3 -4
  101. data/lib/autoproj/package_managers/manager.rb +8 -3
  102. data/lib/autoproj/package_managers/pacman_manager.rb +2 -3
  103. data/lib/autoproj/package_managers/pip_manager.rb +37 -27
  104. data/lib/autoproj/package_managers/pkg_manager.rb +3 -4
  105. data/lib/autoproj/package_managers/port_manager.rb +2 -3
  106. data/lib/autoproj/package_managers/shell_script_manager.rb +66 -36
  107. data/lib/autoproj/package_managers/unknown_os_manager.rb +5 -8
  108. data/lib/autoproj/package_managers/yum_manager.rb +12 -15
  109. data/lib/autoproj/package_managers/zypper_manager.rb +11 -14
  110. data/lib/autoproj/package_manifest.rb +66 -53
  111. data/lib/autoproj/package_selection.rb +187 -187
  112. data/lib/autoproj/package_set.rb +128 -114
  113. data/lib/autoproj/python.rb +285 -0
  114. data/lib/autoproj/query_base.rb +20 -14
  115. data/lib/autoproj/reporter.rb +19 -19
  116. data/lib/autoproj/repository_managers/apt.rb +101 -67
  117. data/lib/autoproj/repository_managers/unknown_os_manager.rb +3 -3
  118. data/lib/autoproj/shell_completion.rb +16 -13
  119. data/lib/autoproj/source_package_query.rb +29 -36
  120. data/lib/autoproj/system.rb +32 -21
  121. data/lib/autoproj/test.rb +131 -106
  122. data/lib/autoproj/variable_expansion.rb +10 -10
  123. data/lib/autoproj/vcs_definition.rb +53 -37
  124. data/lib/autoproj/version.rb +1 -1
  125. data/lib/autoproj/workspace.rb +162 -117
  126. data/lib/autoproj/zsh_completion.rb +8 -9
  127. data/lib/autoproj.rb +53 -53
  128. data/samples/autoproj/init.rb +1 -2
  129. metadata +62 -72
  130. data/.travis.yml +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a68519807da7c2961d51b2036e82906d450b7726b97fdf7b61f79ab15918a506
4
- data.tar.gz: f7951a66ca5422a51dc4c8f15d979916ae85ee0ff84fb7bdaeb83d3df72dc0ac
3
+ metadata.gz: e37a5cc9f8c9ada28c0adbf2fed26100734010c4076251e49efdcacc55692a8f
4
+ data.tar.gz: e0d14e06bd7531fa0e572f1af4a85d805480a50457cce7e433c3d6f54331c546
5
5
  SHA512:
6
- metadata.gz: f84abc55dc7ac4c1d09a4478c86dd33b05a71e53d5368eb501bc31b637c48ab24ed13587300a6f2760d3731b95bb9bdbf46138c18ef4f9e8c1bd7a90ab1a15df
7
- data.tar.gz: 02da417bb10600b48425087f732c823930ce5e573724d097927f9c49381b5e15fe3c682cbc52248fafd943e0b2bc4b7b15db9ebe7415b4599ff9dc13f65ecadb
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.3"
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
- Layout/ParameterAlignment:
40
- Enabled: false
41
-
42
- Layout/DotPosition:
43
- Enabled: false
44
-
45
- Layout/FirstArgumentIndentation:
46
- Enabled: false
47
-
48
- Layout/AssignmentIndentation:
49
- Enabled: false
50
-
51
- Layout/IndentationWidth:
52
- Enabled: false
53
-
54
- Layout/MultilineMethodCallBraceLayout:
55
- Enabled: false
56
-
57
- Layout/MultilineMethodCallIndentation:
58
- Enabled: false
59
-
60
- Lint/RescueException:
61
- Enabled: false
62
-
63
- Metrics/AbcSize:
64
- Enabled: false
65
-
66
- Metrics/BlockLength:
67
- Enabled: false
68
-
69
- Metrics/ClassLength:
70
- Enabled: false
71
-
72
- Metrics/CyclomaticComplexity:
73
- Enabled: false
74
-
75
- Metrics/MethodLength:
76
- Enabled: false
77
-
78
- Metrics/PerceivedComplexity:
79
- Enabled: false
80
-
81
- Style/ClassCheck:
82
- Enabled: false
83
-
84
- Style/Documentation:
85
- Enabled: false
86
-
87
- Style/EmptyLiteral:
88
- Enabled: false
89
-
90
- Style/GuardClause:
91
- Enabled: false
92
-
93
- Style/HashSyntax:
94
- Enabled: false
95
-
96
- Style/PerlBackrefs:
97
- Enabled: false
98
-
99
- Style/StringLiterals:
100
- Enabled: false
101
-
102
- Layout/HeredocIndentation:
103
- Enabled: false
104
-
105
- Metrics/LineLength:
106
- Max: 90
107
- Exclude:
108
- - test/**/*
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