dependabot-python 0.95.65 → 0.95.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dependabot/python/file_updater/pip_compile_file_updater.rb +10 -1
- data/lib/dependabot/python/file_updater/pipfile_file_updater.rb +14 -1
- data/lib/dependabot/python/file_updater/poetry_file_updater.rb +14 -1
- data/lib/dependabot/python/update_checker/pip_compile_version_resolver.rb +10 -1
- data/lib/dependabot/python/update_checker/pipfile_version_resolver.rb +14 -1
- data/lib/dependabot/python/update_checker/poetry_version_resolver.rb +16 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6119240813bd4323f07465c1066985580014378aabb71e04665db141c5a0810d
|
|
4
|
+
data.tar.gz: 760a499244e80d155f2f3dab0433eb7c44a21ae51e0e68cf46149601d309787f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcc4f408c5f460b2d17cc2510e88e04147cf56aea2b672f6310ff5b379d6edd606301072b559dd71dcdad25f7a992da88c836aa6998fe16863ef73f576aa58f9
|
|
7
|
+
data.tar.gz: 7d4ef5a2c8a3eb8c4e047b26bdb4ba90332397b908e1f5fe0e0f51bb3297239181d10ef603d6f347ba3962167e54e06808722b870c8e8d614463c50d67da3da5
|
|
@@ -503,7 +503,16 @@ module Dependabot
|
|
|
503
503
|
end
|
|
504
504
|
|
|
505
505
|
def user_specified_python_version
|
|
506
|
-
python_version_file&.content&.strip
|
|
506
|
+
file_version = python_version_file&.content&.strip
|
|
507
|
+
|
|
508
|
+
return unless file_version
|
|
509
|
+
return unless pyenv_versions.include?("#{file_version}\n")
|
|
510
|
+
|
|
511
|
+
file_version
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
def pyenv_versions
|
|
515
|
+
@pyenv_versions ||= run_command("pyenv install --list")
|
|
507
516
|
end
|
|
508
517
|
|
|
509
518
|
def pre_installed_python?(version)
|
|
@@ -387,7 +387,20 @@ module Dependabot
|
|
|
387
387
|
return pipfile_python_requirement
|
|
388
388
|
end
|
|
389
389
|
|
|
390
|
-
|
|
390
|
+
python_version_file_version
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
def python_version_file_version
|
|
394
|
+
file_version = python_version_file&.content&.strip
|
|
395
|
+
|
|
396
|
+
return unless file_version
|
|
397
|
+
return unless pyenv_versions.include?("#{file_version}\n")
|
|
398
|
+
|
|
399
|
+
file_version
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
def pyenv_versions
|
|
403
|
+
@pyenv_versions ||= run_command("pyenv install --list")
|
|
391
404
|
end
|
|
392
405
|
|
|
393
406
|
def pipfile_python_requirement
|
|
@@ -210,7 +210,7 @@ module Dependabot
|
|
|
210
210
|
poetry_object&.dig("dependencies", "python") ||
|
|
211
211
|
poetry_object&.dig("dev-dependencies", "python")
|
|
212
212
|
|
|
213
|
-
return
|
|
213
|
+
return python_version_file_version unless requirement
|
|
214
214
|
|
|
215
215
|
requirements = Python::Requirement.requirements_array(requirement)
|
|
216
216
|
|
|
@@ -221,6 +221,19 @@ module Dependabot
|
|
|
221
221
|
end
|
|
222
222
|
end
|
|
223
223
|
|
|
224
|
+
def python_version_file_version
|
|
225
|
+
file_version = python_version_file&.content&.strip
|
|
226
|
+
|
|
227
|
+
return unless file_version
|
|
228
|
+
return unless pyenv_versions.include?("#{file_version}\n")
|
|
229
|
+
|
|
230
|
+
file_version
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
def pyenv_versions
|
|
234
|
+
@pyenv_versions ||= run_poetry_command("pyenv install --list")
|
|
235
|
+
end
|
|
236
|
+
|
|
224
237
|
def pre_installed_python?(version)
|
|
225
238
|
PythonVersions::PRE_INSTALLED_PYTHON_VERSIONS.include?(version)
|
|
226
239
|
end
|
|
@@ -410,7 +410,16 @@ module Dependabot
|
|
|
410
410
|
end
|
|
411
411
|
|
|
412
412
|
def user_specified_python_version
|
|
413
|
-
python_version_file&.content&.strip
|
|
413
|
+
file_version = python_version_file&.content&.strip
|
|
414
|
+
|
|
415
|
+
return unless file_version
|
|
416
|
+
return unless pyenv_versions.include?("#{file_version}\n")
|
|
417
|
+
|
|
418
|
+
file_version
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
def pyenv_versions
|
|
422
|
+
@pyenv_versions ||= run_command("pyenv install --list")
|
|
414
423
|
end
|
|
415
424
|
|
|
416
425
|
def pre_installed_python?(version)
|
|
@@ -383,7 +383,20 @@ module Dependabot
|
|
|
383
383
|
return pipfile_python_requirement
|
|
384
384
|
end
|
|
385
385
|
|
|
386
|
-
|
|
386
|
+
python_version_file_version
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
def python_version_file_version
|
|
390
|
+
file_version = python_version_file&.content&.strip
|
|
391
|
+
|
|
392
|
+
return unless file_version
|
|
393
|
+
return unless pyenv_versions.include?("#{file_version}\n")
|
|
394
|
+
|
|
395
|
+
file_version
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
def pyenv_versions
|
|
399
|
+
@pyenv_versions ||= run_command("pyenv install --list")
|
|
387
400
|
end
|
|
388
401
|
|
|
389
402
|
def pipfile_python_requirement
|
|
@@ -13,6 +13,7 @@ require "dependabot/python/requirement"
|
|
|
13
13
|
require "dependabot/python/native_helpers"
|
|
14
14
|
require "dependabot/python/python_versions"
|
|
15
15
|
|
|
16
|
+
# rubocop:disable Metrics/ClassLength
|
|
16
17
|
module Dependabot
|
|
17
18
|
module Python
|
|
18
19
|
class UpdateChecker
|
|
@@ -147,7 +148,7 @@ module Dependabot
|
|
|
147
148
|
poetry_object&.dig("dependencies", "python") ||
|
|
148
149
|
poetry_object&.dig("dev-dependencies", "python")
|
|
149
150
|
|
|
150
|
-
return
|
|
151
|
+
return python_version_file_version unless requirement
|
|
151
152
|
|
|
152
153
|
requirements =
|
|
153
154
|
Python::Requirement.requirements_array(requirement)
|
|
@@ -164,6 +165,19 @@ module Dependabot
|
|
|
164
165
|
raise DependencyFileNotResolvable, msg
|
|
165
166
|
end
|
|
166
167
|
|
|
168
|
+
def python_version_file_version
|
|
169
|
+
file_version = python_version_file&.content&.strip
|
|
170
|
+
|
|
171
|
+
return unless file_version
|
|
172
|
+
return unless pyenv_versions.include?("#{file_version}\n")
|
|
173
|
+
|
|
174
|
+
file_version
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
def pyenv_versions
|
|
178
|
+
@pyenv_versions ||= run_poetry_command("pyenv install --list")
|
|
179
|
+
end
|
|
180
|
+
|
|
167
181
|
def pre_installed_python?(version)
|
|
168
182
|
PythonVersions::PRE_INSTALLED_PYTHON_VERSIONS.include?(version)
|
|
169
183
|
end
|
|
@@ -345,3 +359,4 @@ module Dependabot
|
|
|
345
359
|
end
|
|
346
360
|
end
|
|
347
361
|
end
|
|
362
|
+
# rubocop:enable Metrics/ClassLength
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-python
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.95.
|
|
4
|
+
version: 0.95.66
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.95.
|
|
19
|
+
version: 0.95.66
|
|
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.95.
|
|
26
|
+
version: 0.95.66
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: byebug
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|