dependabot-python 0.106.24 → 0.106.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/python/file_parser.rb +2 -2
- data/lib/dependabot/python/file_parser/setup_file_parser.rb +2 -2
- data/lib/dependabot/python/update_checker/pip_compile_version_resolver.rb +8 -8
- data/lib/dependabot/python/update_checker/pipenv_version_resolver.rb +6 -6
- data/lib/dependabot/python/update_checker/poetry_version_resolver.rb +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 321e8e089b4374446ce4af8268dc95c0e3b7bc7e05e86748e6a57a145f7ca8ba
|
4
|
+
data.tar.gz: 88377d7138b2d0b2f7762227752c12739a6227951768d88432fbe26b4419d708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd2580a7ab84b8d812e730713b4b50353a861b700c0ec5700ab8e33b13d748fb586071147fa1b87daa7e3b237df032e2f6731e3d272096f3ea7e7653ad06b0f
|
7
|
+
data.tar.gz: 68a2946f618fd51dfaab9e15e2ff31d3b3230221bcc7215ceb182e5133b97dfd582a8325eeda28ad392074780436ee8e96b9b29fc101ec864cdb81dae83196aa
|
@@ -160,8 +160,8 @@ module Dependabot
|
|
160
160
|
next unless dep["requirement"]
|
161
161
|
|
162
162
|
Python::Requirement.new(dep["requirement"].split(","))
|
163
|
-
rescue Gem::Requirement::BadRequirementError =>
|
164
|
-
raise Dependabot::DependencyFileNotEvaluatable,
|
163
|
+
rescue Gem::Requirement::BadRequirementError => e
|
164
|
+
raise Dependabot::DependencyFileNotEvaluatable, e.message
|
165
165
|
end
|
166
166
|
end
|
167
167
|
|
@@ -100,8 +100,8 @@ module Dependabot
|
|
100
100
|
next unless dep["requirement"]
|
101
101
|
|
102
102
|
Python::Requirement.new(dep["requirement"].split(","))
|
103
|
-
rescue Gem::Requirement::BadRequirementError =>
|
104
|
-
raise Dependabot::DependencyFileNotEvaluatable,
|
103
|
+
rescue Gem::Requirement::BadRequirementError => e
|
104
|
+
raise Dependabot::DependencyFileNotEvaluatable, e.message
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
@@ -170,13 +170,13 @@ module Dependabot
|
|
170
170
|
end
|
171
171
|
|
172
172
|
true
|
173
|
-
rescue SharedHelpers::HelperSubprocessFailed =>
|
174
|
-
unless
|
175
|
-
|
173
|
+
rescue SharedHelpers::HelperSubprocessFailed => e
|
174
|
+
unless e.message.include?("Could not find a version") ||
|
175
|
+
e.message.include?("UnsupportedConstraint")
|
176
176
|
raise
|
177
177
|
end
|
178
178
|
|
179
|
-
msg = clean_error_message(
|
179
|
+
msg = clean_error_message(e.message)
|
180
180
|
raise if msg.empty?
|
181
181
|
|
182
182
|
raise DependencyFileNotResolvable, msg
|
@@ -205,13 +205,13 @@ module Dependabot
|
|
205
205
|
def run_pip_compile_command(command)
|
206
206
|
run_command("pyenv local #{python_version}")
|
207
207
|
run_command(command)
|
208
|
-
rescue SharedHelpers::HelperSubprocessFailed =>
|
209
|
-
original_error ||=
|
210
|
-
msg =
|
208
|
+
rescue SharedHelpers::HelperSubprocessFailed => e
|
209
|
+
original_error ||= e
|
210
|
+
msg = e.message
|
211
211
|
|
212
212
|
relevant_error =
|
213
213
|
if error_suggests_bad_python_version?(msg) then original_error
|
214
|
-
else
|
214
|
+
else e
|
215
215
|
end
|
216
216
|
|
217
217
|
raise relevant_error unless error_suggests_bad_python_version?(msg)
|
@@ -199,8 +199,8 @@ module Dependabot
|
|
199
199
|
run_pipenv_command("pyenv exec pipenv lock")
|
200
200
|
|
201
201
|
true
|
202
|
-
rescue SharedHelpers::HelperSubprocessFailed =>
|
203
|
-
handle_pipenv_errors_resolving_original_reqs(
|
202
|
+
rescue SharedHelpers::HelperSubprocessFailed => e
|
203
|
+
handle_pipenv_errors_resolving_original_reqs(e)
|
204
204
|
end
|
205
205
|
end
|
206
206
|
end
|
@@ -488,13 +488,13 @@ module Dependabot
|
|
488
488
|
def run_pipenv_command(command, env: pipenv_env_variables)
|
489
489
|
run_command("pyenv local #{python_version}")
|
490
490
|
run_command(command, env: env)
|
491
|
-
rescue SharedHelpers::HelperSubprocessFailed =>
|
492
|
-
original_error ||=
|
493
|
-
msg =
|
491
|
+
rescue SharedHelpers::HelperSubprocessFailed => e
|
492
|
+
original_error ||= e
|
493
|
+
msg = e.message
|
494
494
|
|
495
495
|
relevant_error =
|
496
496
|
if may_be_using_wrong_python_version?(msg) then original_error
|
497
|
-
else
|
497
|
+
else e
|
498
498
|
end
|
499
499
|
|
500
500
|
raise relevant_error unless may_be_using_wrong_python_version?(msg)
|
@@ -125,11 +125,11 @@ module Dependabot
|
|
125
125
|
)
|
126
126
|
|
127
127
|
@original_reqs_resolvable = true
|
128
|
-
rescue SharedHelpers::HelperSubprocessFailed =>
|
129
|
-
raise unless
|
130
|
-
|
128
|
+
rescue SharedHelpers::HelperSubprocessFailed => e
|
129
|
+
raise unless e.message.include?("SolverProblemError") ||
|
130
|
+
e.message.include?("PackageNotFound")
|
131
131
|
|
132
|
-
msg = clean_error_message(
|
132
|
+
msg = clean_error_message(e.message)
|
133
133
|
raise DependencyFileNotResolvable, msg
|
134
134
|
end
|
135
135
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-python
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.106.
|
4
|
+
version: 0.106.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.106.
|
19
|
+
version: 0.106.25
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.106.
|
26
|
+
version: 0.106.25
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.68.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.68.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: vcr
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|