autoproj 2.13.0 → 2.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) 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 +24 -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 +224 -199
  15. data/bin/autoproj_bootstrap.in +7 -8
  16. data/bin/autoproj_install +223 -198
  17. data/bin/autoproj_install.in +6 -7
  18. data/lib/autoproj/aruba_minitest.rb +6 -11
  19. data/lib/autoproj/autobuild.rb +9 -6
  20. data/lib/autoproj/autobuild_extensions/archive_importer.rb +10 -11
  21. data/lib/autoproj/autobuild_extensions/dsl.rb +64 -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/python.rb +18 -0
  25. data/lib/autoproj/autobuild_extensions/svn.rb +1 -2
  26. data/lib/autoproj/base.rb +1 -1
  27. data/lib/autoproj/bash_completion.rb +5 -6
  28. data/lib/autoproj/build_option.rb +22 -24
  29. data/lib/autoproj/cli/base.rb +26 -26
  30. data/lib/autoproj/cli/bootstrap.rb +14 -16
  31. data/lib/autoproj/cli/build.rb +10 -7
  32. data/lib/autoproj/cli/cache.rb +11 -11
  33. data/lib/autoproj/cli/clean.rb +10 -10
  34. data/lib/autoproj/cli/commit.rb +7 -8
  35. data/lib/autoproj/cli/doc.rb +2 -2
  36. data/lib/autoproj/cli/envsh.rb +1 -2
  37. data/lib/autoproj/cli/exec.rb +60 -20
  38. data/lib/autoproj/cli/inspection_tool.rb +13 -7
  39. data/lib/autoproj/cli/locate.rb +30 -41
  40. data/lib/autoproj/cli/log.rb +7 -7
  41. data/lib/autoproj/cli/main.rb +213 -204
  42. data/lib/autoproj/cli/main_doc.rb +22 -21
  43. data/lib/autoproj/cli/main_global.rb +44 -19
  44. data/lib/autoproj/cli/main_plugin.rb +18 -18
  45. data/lib/autoproj/cli/main_test.rb +28 -27
  46. data/lib/autoproj/cli/manifest.rb +7 -7
  47. data/lib/autoproj/cli/osdeps.rb +12 -11
  48. data/lib/autoproj/cli/patcher.rb +2 -3
  49. data/lib/autoproj/cli/query.rb +17 -18
  50. data/lib/autoproj/cli/reconfigure.rb +1 -2
  51. data/lib/autoproj/cli/reset.rb +9 -12
  52. data/lib/autoproj/cli/show.rb +38 -39
  53. data/lib/autoproj/cli/status.rb +45 -39
  54. data/lib/autoproj/cli/switch_config.rb +5 -6
  55. data/lib/autoproj/cli/tag.rb +12 -11
  56. data/lib/autoproj/cli/test.rb +7 -7
  57. data/lib/autoproj/cli/update.rb +35 -37
  58. data/lib/autoproj/cli/utility.rb +11 -10
  59. data/lib/autoproj/cli/version.rb +42 -40
  60. data/lib/autoproj/cli/versions.rb +14 -15
  61. data/lib/autoproj/cli/watch.rb +33 -37
  62. data/lib/autoproj/cli/which.rb +16 -20
  63. data/lib/autoproj/cli.rb +4 -2
  64. data/lib/autoproj/configuration.rb +77 -85
  65. data/lib/autoproj/default.osdeps +18 -3
  66. data/lib/autoproj/environment.rb +42 -23
  67. data/lib/autoproj/exceptions.rb +9 -3
  68. data/lib/autoproj/find_workspace.rb +20 -25
  69. data/lib/autoproj/git_server_configuration.rb +40 -44
  70. data/lib/autoproj/gitorious.rb +1 -1
  71. data/lib/autoproj/installation_manifest.rb +64 -29
  72. data/lib/autoproj/local_package_set.rb +13 -11
  73. data/lib/autoproj/manifest.rb +137 -130
  74. data/lib/autoproj/metapackage.rb +2 -6
  75. data/lib/autoproj/ops/atomic_write.rb +7 -6
  76. data/lib/autoproj/ops/build.rb +4 -6
  77. data/lib/autoproj/ops/cache.rb +41 -43
  78. data/lib/autoproj/ops/cached_env.rb +5 -4
  79. data/lib/autoproj/ops/configuration.rb +525 -507
  80. data/lib/autoproj/ops/import.rb +76 -64
  81. data/lib/autoproj/ops/install.rb +217 -191
  82. data/lib/autoproj/ops/loader.rb +77 -76
  83. data/lib/autoproj/ops/main_config_switcher.rb +36 -45
  84. data/lib/autoproj/ops/phase_reporting.rb +4 -4
  85. data/lib/autoproj/ops/snapshot.rb +250 -247
  86. data/lib/autoproj/ops/tools.rb +76 -78
  87. data/lib/autoproj/ops/watch.rb +6 -6
  88. data/lib/autoproj/ops/which.rb +17 -14
  89. data/lib/autoproj/options.rb +13 -2
  90. data/lib/autoproj/os_package_installer.rb +102 -92
  91. data/lib/autoproj/os_package_query.rb +7 -13
  92. data/lib/autoproj/os_package_resolver.rb +189 -140
  93. data/lib/autoproj/os_repository_installer.rb +4 -4
  94. data/lib/autoproj/os_repository_resolver.rb +8 -6
  95. data/lib/autoproj/package_definition.rb +12 -13
  96. data/lib/autoproj/package_managers/apt_dpkg_manager.rb +19 -11
  97. data/lib/autoproj/package_managers/bundler_manager.rb +186 -129
  98. data/lib/autoproj/package_managers/debian_version.rb +25 -21
  99. data/lib/autoproj/package_managers/emerge_manager.rb +2 -3
  100. data/lib/autoproj/package_managers/gem_manager.rb +68 -77
  101. data/lib/autoproj/package_managers/homebrew_manager.rb +3 -4
  102. data/lib/autoproj/package_managers/manager.rb +8 -3
  103. data/lib/autoproj/package_managers/pacman_manager.rb +2 -3
  104. data/lib/autoproj/package_managers/pip_manager.rb +30 -28
  105. data/lib/autoproj/package_managers/pkg_manager.rb +3 -4
  106. data/lib/autoproj/package_managers/port_manager.rb +2 -3
  107. data/lib/autoproj/package_managers/shell_script_manager.rb +47 -25
  108. data/lib/autoproj/package_managers/unknown_os_manager.rb +5 -8
  109. data/lib/autoproj/package_managers/yum_manager.rb +12 -15
  110. data/lib/autoproj/package_managers/zypper_manager.rb +11 -14
  111. data/lib/autoproj/package_manifest.rb +28 -74
  112. data/lib/autoproj/package_selection.rb +187 -187
  113. data/lib/autoproj/package_set.rb +144 -113
  114. data/lib/autoproj/python.rb +297 -0
  115. data/lib/autoproj/query_base.rb +20 -14
  116. data/lib/autoproj/reporter.rb +19 -19
  117. data/lib/autoproj/repository_managers/apt.rb +102 -68
  118. data/lib/autoproj/repository_managers/unknown_os_manager.rb +3 -3
  119. data/lib/autoproj/ros_condition_parser.rb +84 -0
  120. data/lib/autoproj/ros_package_manifest.rb +125 -0
  121. data/lib/autoproj/shell_completion.rb +16 -13
  122. data/lib/autoproj/source_package_query.rb +29 -36
  123. data/lib/autoproj/system.rb +32 -21
  124. data/lib/autoproj/test.rb +127 -104
  125. data/lib/autoproj/variable_expansion.rb +7 -9
  126. data/lib/autoproj/vcs_definition.rb +35 -32
  127. data/lib/autoproj/version.rb +1 -1
  128. data/lib/autoproj/workspace.rb +142 -108
  129. data/lib/autoproj/zsh_completion.rb +8 -9
  130. data/lib/autoproj.rb +55 -55
  131. data/samples/autoproj/init.rb +1 -2
  132. metadata +80 -46
  133. data/.travis.yml +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0594abdc1c9523788d70185cef7fee0094e70aa0aad5a7c06432e78fd3f2324
4
- data.tar.gz: 7fbde174feb043143cf9d64a23517858982216bd15e33c659954085f5168af64
3
+ metadata.gz: 71eef2ce38657cfce5bca1a2ba483c9c37a81c27ddbe4fa402628badc6de228d
4
+ data.tar.gz: 85ade5a6d5b1369cf35d73c412f4d0ea8f6793e665f04e21a5cbb8c3be2e2b12
5
5
  SHA512:
6
- metadata.gz: 82529e41b820b90048063019025470390718393f7479dfbf9714d4898abdc6d8a327306f1b672191f48e925b1af8c2e05e94583a4f9dde8a418f6aac11a99523
7
- data.tar.gz: 9eeec00ec5b9aaaa565e85a65b2a07a22ba0701044657434d2a99c837174e0d87551a389f73d3ee55eff0f05ee2221b61c7f35e2b057c2fe5bbfbbe568015723
6
+ metadata.gz: 57fc783407a2c34b7544234a18b6da6e1e6510b37516c794185b27d00d58f6cba6697b835325316c93222eaa147a8d0ecc3e2ee57a795132f8eab64a516bc385
7
+ data.tar.gz: 2e13951d9cf894f15587542ce21c657ef7252e091bc793e447ce2aa541c24bfcc5bc3dc358d0b5d71c843369dec3de7ed03fd8e55e47895582d56f8ba97d659f
@@ -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