dependabot-python 0.238.0 → 0.239.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf1b0e7ca12b4aba6ded391d6d075669510d4c0159d0d59fc00f2eb92af5690c
|
4
|
+
data.tar.gz: 61ecd20ccae579ed44f8faa0e0f06f7a0a9b291d3147d7bb2b5a0d8995c41a18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe6af7078145dfdaba758734bd0c5a687827a6f899c0498e1968b00144c4350f9717fa829b30b078656c16d9c534dea952c5e02cc7b3e59192ee4ec080dd8df3
|
7
|
+
data.tar.gz: '0268b8a34839f4609c1537ed34cbc965b7d60118fa4f810412c0339d63d997fa11e88ccf9f20e7d7542cb44669f2dd50f526c648f5dfeda31ae67296aa0dd540'
|
data/helpers/build
CHANGED
@@ -53,6 +53,7 @@ module Dependabot
|
|
53
53
|
# the user-specified range of versions, not the version Dependabot chose to run.
|
54
54
|
python_requirement_parser = FileParser::PythonRequirementParser.new(dependency_files: files)
|
55
55
|
language_version_manager = LanguageVersionManager.new(python_requirement_parser: python_requirement_parser)
|
56
|
+
Dependabot.logger.info("Dependabot is using Python version '#{language_version_manager.python_major_minor}'.")
|
56
57
|
{
|
57
58
|
languages: {
|
58
59
|
python: {
|
@@ -57,7 +57,7 @@ module Dependabot
|
|
57
57
|
requirement_string = requirement_string.gsub(/\.\d+$/, ".*") if requirement_string.start_with?(/\d/)
|
58
58
|
|
59
59
|
# Try to match one of our pre-installed Python versions
|
60
|
-
requirement = Python::Requirement.requirements_array(requirement_string).first
|
60
|
+
requirement = T.must(Python::Requirement.requirements_array(requirement_string).first)
|
61
61
|
version = PRE_INSTALLED_PYTHON_VERSIONS.find { |v| requirement.satisfied_by?(Python::Version.new(v)) }
|
62
62
|
return version if version
|
63
63
|
|
@@ -1,12 +1,17 @@
|
|
1
1
|
# typed: true
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
require "sorbet-runtime"
|
5
|
+
|
6
|
+
require "dependabot/requirement"
|
4
7
|
require "dependabot/utils"
|
5
8
|
require "dependabot/python/version"
|
6
9
|
|
7
10
|
module Dependabot
|
8
11
|
module Python
|
9
|
-
class Requirement <
|
12
|
+
class Requirement < Dependabot::Requirement
|
13
|
+
extend T::Sig
|
14
|
+
|
10
15
|
OR_SEPARATOR = /(?<=[a-zA-Z0-9)*])\s*\|+/
|
11
16
|
|
12
17
|
# Add equality and arbitrary-equality matchers
|
@@ -45,6 +50,7 @@ module Dependabot
|
|
45
50
|
# returned array must be satisfied for a version to be valid.
|
46
51
|
#
|
47
52
|
# NOTE: Or requirements are only valid for Poetry.
|
53
|
+
sig { override.params(requirement_string: T.nilable(String)).returns(T::Array[Requirement]) }
|
48
54
|
def self.requirements_array(requirement_string)
|
49
55
|
return [new(nil)] if requirement_string.nil?
|
50
56
|
|
@@ -52,7 +58,7 @@ module Dependabot
|
|
52
58
|
requirement_string = matches[1]
|
53
59
|
end
|
54
60
|
|
55
|
-
requirement_string.strip.split(OR_SEPARATOR).map do |req_string|
|
61
|
+
T.must(requirement_string).strip.split(OR_SEPARATOR).map do |req_string|
|
56
62
|
new(req_string.strip)
|
57
63
|
end
|
58
64
|
end
|
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.239.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-28 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.239.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.239.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.58.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.58.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,7 +260,7 @@ licenses:
|
|
260
260
|
- Nonstandard
|
261
261
|
metadata:
|
262
262
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
263
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
263
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.239.0
|
264
264
|
post_install_message:
|
265
265
|
rdoc_options: []
|
266
266
|
require_paths:
|