dependabot-python 0.95.80 → 0.95.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 529c50b65896f69cc0796d216923e66541e38707a14b5f244ab07c0e285b3c92
4
- data.tar.gz: 17ac3455d0964e77a589267f3ade1523915015beb637de782aee82cab7d19924
3
+ metadata.gz: 83506e2638dd2782f7827dd0526440ccf471388cce24f3482f944ea64d9542d2
4
+ data.tar.gz: a0f14cd485362c3327b474e39b54fe27b47340c4c757183a12e36fe13a69c3a0
5
5
  SHA512:
6
- metadata.gz: d8eda4e16375148cdb511a56d6a602dede71c80f15c732e0d1281118841a83f97e3b82ce4b11626beb189b7bbd18e1ce2776e93e80587a88e25b5935ed1176db
7
- data.tar.gz: '08ab746aa6449328c7388bae0509fe3277cccb2c21bbb46fa4b3cd33e41d721cc7583cf2491295371b50ea01680dc7a19498e9fadb405d260ae39a443a2385f4'
6
+ metadata.gz: 90032f3e3f0842292b7fb9f93c68a04ddcc6bc2c8bb50756410adc3d451ad7e932c87c5572ec6baca707b7827f436b9b67dd0a1eaff76b5c848f1fcad4d8d1d7
7
+ data.tar.gz: 394ad654c9d1c28840e6df8c35ebc76812edf9a47595fada501d09b449beccfc2291ab0132372254e9ec23c9a5ebeaa961e9e577d441fd0314e5e6240f7050ae
@@ -158,12 +158,12 @@ module Dependabot
158
158
  end
159
159
 
160
160
  if error.message.include?("UnsupportedPythonVersion") &&
161
- error.message.include?(dependency.name) &&
162
161
  user_specified_python_requirement
162
+ check_original_requirements_resolvable
163
+
163
164
  # The latest version of the dependency we're updating to needs a
164
165
  # different Python version. Skip the update.
165
- check_original_requirements_resolvable
166
- return
166
+ return if error.message.include?(dependency.name)
167
167
  end
168
168
 
169
169
  if error.message.match?(GIT_DEPENDENCY_UNREACHABLE_REGEX)
@@ -200,24 +200,39 @@ module Dependabot
200
200
 
201
201
  true
202
202
  rescue SharedHelpers::HelperSubprocessFailed => error
203
- if error.message.include?("Could not find a version")
204
- msg = clean_error_message(error.message)
205
- msg.gsub!(/\s+\(from .*$/, "")
206
- raise if msg.empty?
203
+ handle_pipenv_errors_resolving_original_reqs(error)
204
+ end
205
+ end
206
+ end
207
207
 
208
- raise DependencyFileNotResolvable, msg
209
- end
208
+ def handle_pipenv_errors_resolving_original_reqs(error)
209
+ if error.message.include?("Could not find a version")
210
+ msg = clean_error_message(error.message)
211
+ msg.gsub!(/\s+\(from .*$/, "")
212
+ raise if msg.empty?
210
213
 
211
- if error.message.include?("is not a python version")
212
- msg = "Pipenv does not support specifying Python ranges "\
213
- "(see https://github.com/pypa/pipenv/issues/1050 for more "\
214
- "details)."
215
- raise DependencyFileNotResolvable, msg
216
- end
214
+ raise DependencyFileNotResolvable, msg
215
+ end
217
216
 
218
- raise
219
- end
217
+ if error.message.include?("is not a python version")
218
+ msg = "Pipenv does not support specifying Python ranges "\
219
+ "(see https://github.com/pypa/pipenv/issues/1050 for more "\
220
+ "details)."
221
+ raise DependencyFileNotResolvable, msg
220
222
  end
223
+
224
+ if error.message.include?("UnsupportedPythonVersion") &&
225
+ user_specified_python_requirement
226
+ msg = clean_error_message(error.message).
227
+ lines.take_while { |l| !l.start_with?("File") }.join.strip
228
+ raise if msg.empty?
229
+
230
+ raise DependencyFileNotResolvable, msg
231
+ end
232
+
233
+ # Raise an unhandled error, as this could be a problem with
234
+ # Dependabot's infrastructure, rather than the Pipfile
235
+ raise
221
236
  end
222
237
 
223
238
  def clean_error_message(message)
@@ -230,6 +245,7 @@ module Dependabot
230
245
  next false if l.start_with?("CRITICAL:")
231
246
  next false if l.start_with?("ERROR:")
232
247
  next false if l.start_with?("packaging.specifiers")
248
+ next false if l.start_with?("pipenv.patched.notpip._internal")
233
249
  next false if l.include?("Max retries exceeded")
234
250
 
235
251
  true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.95.80
4
+ version: 0.95.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.95.80
19
+ version: 0.95.81
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.95.80
26
+ version: 0.95.81
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement