dependabot-python 0.118.3 → 0.118.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/build +1 -1
- data/helpers/requirements.txt +1 -1
- data/lib/dependabot/python/file_parser.rb +5 -3
- data/lib/dependabot/python/file_updater/pyproject_preparer.rb +4 -0
- data/lib/dependabot/python/python_versions.rb +2 -2
- data/lib/dependabot/python/version.rb +0 -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: 9960f0164740e21e8840ed3bbace2c82b51a74170a3b77fc48c4379d79e288b8
|
4
|
+
data.tar.gz: 7a2287ea82a4f3794965fbb3f08deb4600d6347aefe1ebfeaac5373be6499ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f766297c4ca83adf22e0df25aca4f65e774dea1354aa690b79be17a9f81308610df350e8ed4a9e4c140e61c42f7a7a3efb7bd4e2b25ca5baa3241ad508e932
|
7
|
+
data.tar.gz: c4ab053b8219818d3334f560119ece67e65a263437c50e07dceeb62891f370bd955a9472e0177ad8d94df876e8cb230bd210b6e06b3c6829a50f1275bd14a03c
|
data/helpers/build
CHANGED
data/helpers/requirements.txt
CHANGED
@@ -181,12 +181,14 @@ module Dependabot
|
|
181
181
|
each do |file|
|
182
182
|
path = file.name
|
183
183
|
FileUtils.mkdir_p(Pathname.new(path).dirname)
|
184
|
-
File.write(path, remove_imports(file
|
184
|
+
File.write(path, remove_imports(file))
|
185
185
|
end
|
186
186
|
end
|
187
187
|
|
188
|
-
def remove_imports(
|
189
|
-
content.
|
188
|
+
def remove_imports(file)
|
189
|
+
return file.content if file.path.end_with?(".tar.gz", ".whl", ".zip")
|
190
|
+
|
191
|
+
file.content.lines.
|
190
192
|
reject { |l| l.match?(/^['"]?(?<path>\..*?)(?=\[|#|'|"|$)/) }.
|
191
193
|
reject { |l| l.match?(/^(?:-e)\s+['"]?(?<path>.*?)(?=\[|#|'|"|$)/) }.
|
192
194
|
join
|
@@ -36,6 +36,7 @@ module Dependabot
|
|
36
36
|
end
|
37
37
|
|
38
38
|
# rubocop:disable Metrics/PerceivedComplexity
|
39
|
+
# rubocop:disable Metrics/CyclomaticComplexity
|
39
40
|
def freeze_top_level_dependencies_except(dependencies)
|
40
41
|
return pyproject_content unless lockfile
|
41
42
|
|
@@ -53,6 +54,8 @@ module Dependabot
|
|
53
54
|
|
54
55
|
next unless (locked_version = locked_details&.fetch("version"))
|
55
56
|
|
57
|
+
next if locked_details&.dig("source", "type") == "directory"
|
58
|
+
|
56
59
|
if locked_details&.dig("source", "type") == "git"
|
57
60
|
poetry_object[key][dep_name] = {
|
58
61
|
"git" => locked_details&.dig("source", "url"),
|
@@ -69,6 +72,7 @@ module Dependabot
|
|
69
72
|
TomlRB.dump(pyproject_object)
|
70
73
|
end
|
71
74
|
# rubocop:enable Metrics/PerceivedComplexity
|
75
|
+
# rubocop:enable Metrics/CyclomaticComplexity
|
72
76
|
|
73
77
|
private
|
74
78
|
|
@@ -4,13 +4,13 @@ module Dependabot
|
|
4
4
|
module Python
|
5
5
|
module PythonVersions
|
6
6
|
PRE_INSTALLED_PYTHON_VERSIONS = %w(
|
7
|
-
3.8.
|
7
|
+
3.8.5 2.7.18
|
8
8
|
).freeze
|
9
9
|
|
10
10
|
# Due to an OpenSSL issue we can only install the following versions in
|
11
11
|
# the Dependabot container.
|
12
12
|
SUPPORTED_VERSIONS = %w(
|
13
|
-
3.8.3 3.8.2 3.8.1 3.8.0
|
13
|
+
3.8.5 3.8.4 3.8.3 3.8.2 3.8.1 3.8.0
|
14
14
|
3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0
|
15
15
|
3.6.9 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.6.0
|
16
16
|
3.5.7 3.5.6 3.5.5 3.5.4 3.5.3
|
@@ -114,7 +114,6 @@ module Dependabot
|
|
114
114
|
# TODO: Delete this once we're using a version of Rubygems that includes
|
115
115
|
# https://github.com/rubygems/rubygems/pull/2651
|
116
116
|
#
|
117
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
118
117
|
# rubocop:disable Metrics/PerceivedComplexity
|
119
118
|
# rubocop:disable Style/CaseEquality
|
120
119
|
# rubocop:disable Layout/LineLength
|
@@ -146,7 +145,6 @@ module Dependabot
|
|
146
145
|
|
147
146
|
return 0
|
148
147
|
end
|
149
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
150
148
|
# rubocop:enable Metrics/PerceivedComplexity
|
151
149
|
# rubocop:enable Style/CaseEquality
|
152
150
|
# rubocop:enable Layout/LineLength
|
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.118.
|
4
|
+
version: 0.118.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-24 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.118.
|
19
|
+
version: 0.118.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.118.
|
26
|
+
version: 0.118.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
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: 0.
|
117
|
+
version: 0.88.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: 0.
|
124
|
+
version: 0.88.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: vcr
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|