dependabot-python 0.169.4 → 0.169.8
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 +1 -1
- data/lib/dependabot/python/authed_url_builder.rb +2 -1
- data/lib/dependabot/python/file_parser.rb +2 -1
- data/lib/dependabot/python/file_updater/pipfile_file_updater.rb +2 -1
- data/lib/dependabot/python/python_versions.rb +1 -1
- data/lib/dependabot/python/requirement.rb +4 -2
- data/lib/dependabot/python/update_checker/latest_version_finder.rb +2 -0
- data/lib/dependabot/python/update_checker/pip_compile_version_resolver.rb +2 -1
- data/lib/dependabot/python/update_checker/pipenv_version_resolver.rb +2 -1
- data/lib/dependabot/python/update_checker/poetry_version_resolver.rb +2 -1
- data/lib/dependabot/python/update_checker/requirements_updater.rb +4 -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: 8c786cadd8d0d028aa09ecdb9a418867e5316daf1f332787237a34210591b9bb
|
4
|
+
data.tar.gz: 726d89700968acca54eb7866a8bd5e51851f269fa2ea5f998111cb3e2553a219
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e9489fe6e1cb0656692e7127f9a13ec83771668225f87dab07afb7e4e03f9e6e531a448ecd561ccf18089ad5952e4b29270e6e647c3b6072502b3de539f7b93
|
7
|
+
data.tar.gz: 9270d42b4b368da12930a9a671845297985214d0db6d243e076848c63c3560e642b73261c8bc7b8bb1b0a611a234bfb9aa218b906ac67204770fd0dc3e6a8de1
|
data/helpers/requirements.txt
CHANGED
@@ -327,7 +327,8 @@ module Dependabot
|
|
327
327
|
elsif user_specified_python_requirement
|
328
328
|
parts = user_specified_python_requirement.split(".")
|
329
329
|
parts.fill("*", (parts.length)..2).join(".")
|
330
|
-
else
|
330
|
+
else
|
331
|
+
PythonVersions::PRE_INSTALLED_PYTHON_VERSIONS.first
|
331
332
|
end
|
332
333
|
|
333
334
|
# Ideally, the requirement is satisfied by a Python version we support
|
@@ -11,7 +11,7 @@ module Dependabot
|
|
11
11
|
# the Dependabot container.
|
12
12
|
SUPPORTED_VERSIONS = %w(
|
13
13
|
3.10.0
|
14
|
-
3.9.7 3.9.6 3.9.5 3.9.4 3.9.2 3.9.1 3.9.0
|
14
|
+
3.9.9 3.9.8 3.9.7 3.9.6 3.9.5 3.9.4 3.9.2 3.9.1 3.9.0
|
15
15
|
3.8.12 3.8.11 3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 3.8.2 3.8.1 3.8.0
|
16
16
|
3.7.12 3.7.11 3.7.10 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0
|
17
17
|
3.6.15 3.6.14 3.6.13 3.6.12 3.6.11 3.6.10 3.6.9 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3
|
@@ -82,7 +82,8 @@ module Dependabot
|
|
82
82
|
if req_string.match?(/~[^>]/) then convert_tilde_req(req_string)
|
83
83
|
elsif req_string.start_with?("^") then convert_caret_req(req_string)
|
84
84
|
elsif req_string.include?(".*") then convert_wildcard(req_string)
|
85
|
-
else
|
85
|
+
else
|
86
|
+
req_string
|
86
87
|
end
|
87
88
|
end
|
88
89
|
|
@@ -108,7 +109,8 @@ module Dependabot
|
|
108
109
|
if i < first_non_zero_index then part
|
109
110
|
elsif i == first_non_zero_index then (part.to_i + 1).to_s
|
110
111
|
elsif i > first_non_zero_index && i == 2 then "0.a"
|
111
|
-
else
|
112
|
+
else
|
113
|
+
0
|
112
114
|
end
|
113
115
|
end.join(".")
|
114
116
|
|
@@ -271,7 +271,8 @@ module Dependabot
|
|
271
271
|
FileUtils.mkdir_p(Pathname.new(path).dirname)
|
272
272
|
updated_content =
|
273
273
|
if update_requirement then update_req_file(file, updated_req)
|
274
|
-
else
|
274
|
+
else
|
275
|
+
file.content
|
275
276
|
end
|
276
277
|
File.write(path, updated_content)
|
277
278
|
end
|
@@ -405,7 +405,8 @@ module Dependabot
|
|
405
405
|
elsif user_specified_python_requirement
|
406
406
|
parts = user_specified_python_requirement.split(".")
|
407
407
|
parts.fill("*", (parts.length)..2).join(".")
|
408
|
-
else
|
408
|
+
else
|
409
|
+
PythonVersions::PRE_INSTALLED_PYTHON_VERSIONS.first
|
409
410
|
end
|
410
411
|
|
411
412
|
# Ideally, the requirement is satisfied by a Python version we support
|
@@ -311,7 +311,8 @@ module Dependabot
|
|
311
311
|
version.segments.count - 2
|
312
312
|
elsif req_string.strip.start_with?("~")
|
313
313
|
req_string.split(".").count == 1 ? 0 : 1
|
314
|
-
else
|
314
|
+
else
|
315
|
+
raise "Don't know how to convert #{req_string} to range"
|
315
316
|
end
|
316
317
|
end
|
317
318
|
|
@@ -335,7 +336,8 @@ module Dependabot
|
|
335
336
|
version_to_be_permitted.segments[index]
|
336
337
|
elsif index == index_to_update
|
337
338
|
version_to_be_permitted.segments[index] + 1
|
338
|
-
else
|
339
|
+
else
|
340
|
+
0
|
339
341
|
end
|
340
342
|
end
|
341
343
|
|
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.169.
|
4
|
+
version: 0.169.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-21 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.169.
|
19
|
+
version: 0.169.8
|
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.169.
|
26
|
+
version: 0.169.8
|
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: 1.
|
103
|
+
version: 1.23.0
|
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: 1.
|
110
|
+
version: 1.23.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|