dependabot-python 0.166.0 → 0.169.0
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 +2 -2
- 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: fd3300c3e902c851404f800007215343e308501440fd0fe47cf01d10d8377157
|
4
|
+
data.tar.gz: e5da25f1e44e6be09e3738c235a664641f99c057cedde46a8e3535d5d770b512
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea3ee7b51609f9e4a045e7355fa4269201f3a1f4faa7aa35a420478ab5236c389147b316d3dde5620d685a2f472ccabf0bde24e4ecb93c1d56a6c76ccb09dd9
|
7
|
+
data.tar.gz: be9f3ba2d5c70df776b5e473d2836f52ca2353d4dc3edcad22adfd2d2b50086963049cee3a533b68598bfb22d14c86778fa11307da5404f994a78fa256d51a3c
|
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.0
|
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-23 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.0
|
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.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|