dependabot-python 0.167.0 → 0.169.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/requirements.txt +3 -3
- data/lib/dependabot/python/file_updater/pip_compile_file_updater.rb +3 -0
- data/lib/dependabot/python/file_updater/pyproject_preparer.rb +1 -1
- data/lib/dependabot/python/update_checker/pip_compile_version_resolver.rb +1 -1
- data/lib/dependabot/python/update_checker/pipenv_version_resolver.rb +9 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd8737248ad154aeb051b19899b6a05d506025cbeae673116b874e637f85560
|
4
|
+
data.tar.gz: 1683f40edb3de1dcf7cdd854971e1f05020cb73f3799eeecf276dc32d1c9b994
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87abd413085c83d5bff486a5fe31554b60c488057e0215a04858a4e2c4babb9736ff815e14c69e2323b844e21a2042b82488d6972b71fc04634544e139adc730
|
7
|
+
data.tar.gz: 47afc064124c3c05b7b2683687c26444a86724814b0f1e8121afbbdfea89916466fd02bf9a68ea83c1ce6a59077f482bf6f73544411e0fa07a5e7288cfadca7f
|
data/helpers/requirements.txt
CHANGED
@@ -430,6 +430,9 @@ module Dependabot
|
|
430
430
|
options << "--no-header" unless requirements_file.content.include?("autogenerated by pip-c")
|
431
431
|
|
432
432
|
options << "--pre" if requirements_file.content.include?("--pre")
|
433
|
+
|
434
|
+
options << "--strip-extras" if requirements_file.content.include?("--strip-extras")
|
435
|
+
|
433
436
|
options
|
434
437
|
end
|
435
438
|
|
@@ -54,7 +54,7 @@ module Dependabot
|
|
54
54
|
|
55
55
|
next unless (locked_version = locked_details&.fetch("version"))
|
56
56
|
|
57
|
-
next if locked_details&.dig("source", "type")
|
57
|
+
next if %w(directory file url).include?(locked_details&.dig("source", "type"))
|
58
58
|
|
59
59
|
if locked_details&.dig("source", "type") == "git"
|
60
60
|
poetry_object[key][dep_name] = {
|
@@ -25,7 +25,7 @@ module Dependabot
|
|
25
25
|
# rubocop:disable Metrics/ClassLength
|
26
26
|
class PipCompileVersionResolver
|
27
27
|
GIT_DEPENDENCY_UNREACHABLE_REGEX =
|
28
|
-
/git clone -q (?<url>[^\s]+).* /.freeze
|
28
|
+
/git clone --filter=blob:none -q (?<url>[^\s]+).* /.freeze
|
29
29
|
GIT_REFERENCE_NOT_FOUND_REGEX =
|
30
30
|
/egg=(?<name>\S+).*.*WARNING: Did not find branch or tag \'(?<tag>[^\n"]+)\'/m.freeze
|
31
31
|
NATIVE_COMPILATION_ERROR =
|
@@ -40,7 +40,9 @@ module Dependabot
|
|
40
40
|
PIPENV_INSTALLATION_ERROR_REGEX =
|
41
41
|
/#{Regexp.quote(TRACEBACK)}[\s\S]*^\s+import\s(?<name>.+)[\s\S]*^#{Regexp.quote(PIPENV_INSTALLATION_ERROR)}/.
|
42
42
|
freeze
|
43
|
-
|
43
|
+
UNSUPPORTED_DEPS = %w(pyobjc).freeze
|
44
|
+
UNSUPPORTED_DEP_REGEX =
|
45
|
+
/Could not find a version that satisfies the requirement.*(?:#{UNSUPPORTED_DEPS.join("|")})/.freeze
|
44
46
|
PIPENV_RANGE_WARNING = /Warning:\sPython\s[<>].* was not found/.freeze
|
45
47
|
|
46
48
|
attr_reader :dependency, :dependency_files, :credentials
|
@@ -62,11 +64,7 @@ module Dependabot
|
|
62
64
|
@resolvable ||= {}
|
63
65
|
return @resolvable[version] if @resolvable.key?(version)
|
64
66
|
|
65
|
-
@resolvable[version] =
|
66
|
-
true
|
67
|
-
else
|
68
|
-
false
|
69
|
-
end
|
67
|
+
@resolvable[version] = !!fetch_latest_resolvable_version_string(requirement: "==#{version}")
|
70
68
|
end
|
71
69
|
|
72
70
|
private
|
@@ -155,7 +153,9 @@ module Dependabot
|
|
155
153
|
raise DependencyFileNotResolvable, msg
|
156
154
|
end
|
157
155
|
|
158
|
-
|
156
|
+
if error.message.include?("Could not find a version") || error.message.include?("ResolutionFailure")
|
157
|
+
check_original_requirements_resolvable
|
158
|
+
end
|
159
159
|
|
160
160
|
if error.message.include?("SyntaxError: invalid syntax")
|
161
161
|
raise DependencyFileNotResolvable,
|
@@ -220,7 +220,8 @@ module Dependabot
|
|
220
220
|
end
|
221
221
|
|
222
222
|
def handle_pipenv_errors_resolving_original_reqs(error)
|
223
|
-
if error.message.include?("Could not find a version")
|
223
|
+
if error.message.include?("Could not find a version") ||
|
224
|
+
error.message.include?("package versions have conflicting dependencies")
|
224
225
|
msg = clean_error_message(error.message)
|
225
226
|
msg.gsub!(/\s+\(from .*$/, "")
|
226
227
|
raise if msg.empty?
|
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.
|
4
|
+
version: 0.169.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-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.
|
19
|
+
version: 0.169.2
|
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.
|
26
|
+
version: 0.169.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|