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 +4 -4
- data/lib/dependabot/python/file_fetcher.rb +4 -4
- data/lib/dependabot/python/file_parser.rb +3 -3
- data/lib/dependabot/python/file_parser/poetry_files_parser.rb +2 -2
- data/lib/dependabot/python/file_parser/setup_file_parser.rb +3 -3
- data/lib/dependabot/python/file_updater/pip_compile_file_updater.rb +4 -4
- data/lib/dependabot/python/file_updater/pipfile_file_updater.rb +4 -4
- data/lib/dependabot/python/update_checker/pip_compile_version_resolver.rb +2 -2
- data/lib/dependabot/python/update_checker/pipfile_version_resolver.rb +2 -2
- data/lib/dependabot/python/update_checker/poetry_version_resolver.rb +2 -2
- 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: e7821b3b3782ab9cecf4b73b3949649e9189dfe0b9b5f3526b5b20d813f09242
|
4
|
+
data.tar.gz: 518d24d03640dbb2ae888d41302793d67f707fada09c6fc25f06f1bf6f41ac3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =>
|
246
|
-
unfetchable_files <<
|
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 =>
|
252
|
-
unfetchable_files <<
|
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 =>
|
151
|
+
rescue SharedHelpers::HelperSubprocessFailed => e
|
152
152
|
evaluation_errors = REQUIREMENT_FILE_EVALUATION_ERRORS
|
153
|
-
raise unless
|
153
|
+
raise unless e.message.start_with?(*evaluation_errors)
|
154
154
|
|
155
|
-
raise Dependabot::DependencyFileNotEvaluatable,
|
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 =>
|
97
|
-
raise Dependabot::DependencyFileNotEvaluatable,
|
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 =>
|
70
|
-
if
|
71
|
-
raise Dependabot::DependencyFileNotEvaluatable,
|
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 =>
|
166
|
-
original_error ||=
|
167
|
-
msg =
|
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
|
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 =>
|
253
|
-
original_error ||=
|
254
|
-
msg =
|
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
|
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 =>
|
81
|
-
handle_pip_compile_errors(
|
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 =>
|
88
|
-
handle_pipenv_errors(
|
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 =>
|
78
|
-
handle_poetry_errors(
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
110
|
+
version: 0.67.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: vcr
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|