dependabot-python 0.99.3 → 0.99.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72113c33c9b108831aa3020260131bbbf165a010410f74d206db2a2a2a293906
4
- data.tar.gz: ac3122f2a635f6e75250fcceb80677b2fa14caaacd0416b1192f05d14836c4c8
3
+ metadata.gz: e7821b3b3782ab9cecf4b73b3949649e9189dfe0b9b5f3526b5b20d813f09242
4
+ data.tar.gz: 518d24d03640dbb2ae888d41302793d67f707fada09c6fc25f06f1bf6f41ac3d
5
5
  SHA512:
6
- metadata.gz: 7ee7a4ff518de431b116f8b0a223a595bd629697297b18356cf9ab852bec0fe14ba32b26836e528ea033675bba7d97a71200cf1712d44a4b1e9815263fce1bed
7
- data.tar.gz: 4c30860864d321656b02d1a8df190ded4120498e2794b83af244d3be42f924419c02816fff982e0105d5d675d146e36d81da748313bc3c87c6512db253f4dba4
6
+ metadata.gz: 43328d3e42c028c665d7f3779cef5f4ad6b4cb4c0a3ef1dcf34ccf433ffff61f880c90adc53e51aace81310da41ce7c71276c328ec30f5580493e5d8ad74d1db
7
+ data.tar.gz: f059a041da539ee39981ef9983ce5ff9366b9b1aeacb09f02e3bd8849ac32fe31f2fee59cc6e6859c2179d1450ff0ef9b3798968957812f6f80d1c7efcb27b6b
@@ -242,14 +242,14 @@ module Dependabot
242
242
 
243
243
  path_setup_file_paths.each do |path|
244
244
  path_setup_files += fetch_path_setup_file(path)
245
- rescue Dependabot::DependencyFileNotFound => error
246
- unfetchable_files << error.file_path.gsub(%r{^/}, "")
245
+ rescue Dependabot::DependencyFileNotFound => e
246
+ unfetchable_files << e.file_path.gsub(%r{^/}, "")
247
247
  end
248
248
 
249
249
  poetry_path_setup_file_paths.each do |path|
250
250
  path_setup_files += fetch_path_setup_file(path, allow_pyproject: true)
251
- rescue Dependabot::DependencyFileNotFound => error
252
- unfetchable_files << error.file_path.gsub(%r{^/}, "")
251
+ rescue Dependabot::DependencyFileNotFound => e
252
+ unfetchable_files << e.file_path.gsub(%r{^/}, "")
253
253
  end
254
254
 
255
255
  if unfetchable_files.any?
@@ -148,11 +148,11 @@ module Dependabot
148
148
  check_requirements(requirements)
149
149
  requirements
150
150
  end
151
- rescue SharedHelpers::HelperSubprocessFailed => error
151
+ rescue SharedHelpers::HelperSubprocessFailed => e
152
152
  evaluation_errors = REQUIREMENT_FILE_EVALUATION_ERRORS
153
- raise unless error.message.start_with?(*evaluation_errors)
153
+ raise unless e.message.start_with?(*evaluation_errors)
154
154
 
155
- raise Dependabot::DependencyFileNotEvaluatable, error.message
155
+ raise Dependabot::DependencyFileNotEvaluatable, e.message
156
156
  end
157
157
 
158
158
  def check_requirements(requirements)
@@ -93,8 +93,8 @@ module Dependabot
93
93
  def check_requirements(req)
94
94
  requirement = req.is_a?(String) ? req : req["version"]
95
95
  Python::Requirement.requirements_array(requirement)
96
- rescue Gem::Requirement::BadRequirementError => error
97
- raise Dependabot::DependencyFileNotEvaluatable, error.message
96
+ rescue Gem::Requirement::BadRequirementError => e
97
+ raise Dependabot::DependencyFileNotEvaluatable, e.message
98
98
  end
99
99
 
100
100
  # See https://www.python.org/dev/peps/pep-0503/#normalized-names
@@ -66,9 +66,9 @@ module Dependabot
66
66
  check_requirements(requirements)
67
67
  requirements
68
68
  end
69
- rescue SharedHelpers::HelperSubprocessFailed => error
70
- if error.message.start_with?("InstallationError")
71
- raise Dependabot::DependencyFileNotEvaluatable, error.message
69
+ rescue SharedHelpers::HelperSubprocessFailed => e
70
+ if e.message.start_with?("InstallationError")
71
+ raise Dependabot::DependencyFileNotEvaluatable, e.message
72
72
  end
73
73
 
74
74
  parsed_sanitized_setup_file
@@ -162,13 +162,13 @@ module Dependabot
162
162
  def run_pip_compile_command(command, escape_command_str: true)
163
163
  run_command("pyenv local #{python_version}")
164
164
  run_command(command, escape_command_str: escape_command_str)
165
- rescue SharedHelpers::HelperSubprocessFailed => error
166
- original_error ||= error
167
- msg = error.message
165
+ rescue SharedHelpers::HelperSubprocessFailed => e
166
+ original_error ||= e
167
+ msg = e.message
168
168
 
169
169
  relevant_error =
170
170
  if error_suggests_bad_python_version?(msg) then original_error
171
- else error
171
+ else e
172
172
  end
173
173
 
174
174
  raise relevant_error unless error_suggests_bad_python_version?(msg)
@@ -249,13 +249,13 @@ module Dependabot
249
249
  def run_pipenv_command(command, env: pipenv_env_variables)
250
250
  run_command("pyenv local #{python_version}")
251
251
  run_command(command, env: env)
252
- rescue SharedHelpers::HelperSubprocessFailed => error
253
- original_error ||= error
254
- msg = error.message
252
+ rescue SharedHelpers::HelperSubprocessFailed => e
253
+ original_error ||= e
254
+ msg = e.message
255
255
 
256
256
  relevant_error =
257
257
  if error_suggests_bad_python_version?(msg) then original_error
258
- else error
258
+ else e
259
259
  end
260
260
 
261
261
  raise relevant_error unless error_suggests_bad_python_version?(msg)
@@ -77,8 +77,8 @@ module Dependabot
77
77
 
78
78
  parse_updated_files
79
79
  end
80
- rescue SharedHelpers::HelperSubprocessFailed => error
81
- handle_pip_compile_errors(error)
80
+ rescue SharedHelpers::HelperSubprocessFailed => e
81
+ handle_pip_compile_errors(e)
82
82
  end
83
83
  return unless @latest_resolvable_version_string
84
84
 
@@ -84,8 +84,8 @@ module Dependabot
84
84
 
85
85
  fetch_version_from_parsed_lockfile(updated_lockfile)
86
86
  end
87
- rescue SharedHelpers::HelperSubprocessFailed => error
88
- handle_pipenv_errors(error)
87
+ rescue SharedHelpers::HelperSubprocessFailed => e
88
+ handle_pipenv_errors(e)
89
89
  end
90
90
  return unless @latest_resolvable_version_string
91
91
 
@@ -74,8 +74,8 @@ module Dependabot
74
74
  updated_lockfile = TomlRB.parse(updated_lockfile)
75
75
 
76
76
  fetch_version_from_parsed_lockfile(updated_lockfile)
77
- rescue SharedHelpers::HelperSubprocessFailed => error
78
- handle_poetry_errors(error)
77
+ rescue SharedHelpers::HelperSubprocessFailed => e
78
+ handle_poetry_errors(e)
79
79
  end
80
80
  return unless latest_resolvable_version_string
81
81
 
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.99.3
4
+ version: 0.99.4
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-09 00:00:00.000000000 Z
11
+ date: 2019-04-10 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.99.3
19
+ version: 0.99.4
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.99.3
26
+ version: 0.99.4
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.66.0
103
+ version: 0.67.2
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.66.0
110
+ version: 0.67.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: vcr
113
113
  requirement: !ruby/object:Gem::Requirement