dependabot-python 0.115.1 → 0.115.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/python/file_fetcher.rb +0 -3
- data/lib/dependabot/python/file_updater/pip_compile_file_updater.rb +0 -4
- data/lib/dependabot/python/file_updater/pipfile_file_updater.rb +0 -2
- data/lib/dependabot/python/update_checker/pip_compile_version_resolver.rb +1 -6
- data/lib/dependabot/python/update_checker/poetry_version_resolver.rb +0 -2
- data/lib/dependabot/python/update_checker/requirements_updater.rb +1 -2
- data/lib/dependabot/python/version.rb +2 -2
- 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: a5f497358288b9f1807f37c3c9685c3d8f318dd956e3011c54ca4fc31b07f408
|
4
|
+
data.tar.gz: b84c966ab8a9b3149a16934e0150724eacbec14c748db0725f8acf79e2d87d73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47d0d54a7cfe13973be9b3102b0e913c3338d070750175a9fbde98507aa46770e27422a4c41d25210fde6e7c9853350e42297c6b2e7f2ed56ec09d0b865c0e00
|
7
|
+
data.tar.gz: 8e93d578df2fdba5dae3d3b5a411bdb10e7ae37534a4a2a396cd69bb33701baa9c39490b813eda3e517bfd49743b63fabb68ecafabd8b5b3bd1330bd89dbf9ff
|
@@ -6,8 +6,6 @@ require "dependabot/file_fetchers"
|
|
6
6
|
require "dependabot/file_fetchers/base"
|
7
7
|
require "dependabot/python/requirement_parser"
|
8
8
|
require "dependabot/errors"
|
9
|
-
|
10
|
-
# rubocop:disable Metrics/ClassLength
|
11
9
|
module Dependabot
|
12
10
|
module Python
|
13
11
|
class FileFetcher < Dependabot::FileFetchers::Base
|
@@ -403,6 +401,5 @@ module Dependabot
|
|
403
401
|
end
|
404
402
|
end
|
405
403
|
end
|
406
|
-
# rubocop:enable Metrics/ClassLength
|
407
404
|
|
408
405
|
Dependabot::FileFetchers.register("pip", Dependabot::Python::FileFetcher)
|
@@ -62,8 +62,6 @@ module Dependabot
|
|
62
62
|
]
|
63
63
|
end
|
64
64
|
|
65
|
-
# rubocop:disable Metrics/MethodLength
|
66
|
-
# rubocop:disable Metrics/BlockLength
|
67
65
|
def compile_new_requirement_files
|
68
66
|
SharedHelpers.in_a_temporary_directory do
|
69
67
|
write_updated_dependency_files
|
@@ -106,8 +104,6 @@ module Dependabot
|
|
106
104
|
end.compact
|
107
105
|
end
|
108
106
|
end
|
109
|
-
# rubocop:enable Metrics/MethodLength
|
110
|
-
# rubocop:enable Metrics/BlockLength
|
111
107
|
|
112
108
|
def update_manifest_files
|
113
109
|
dependency_files.map do |file|
|
@@ -13,7 +13,6 @@ require "dependabot/python/name_normaliser"
|
|
13
13
|
module Dependabot
|
14
14
|
module Python
|
15
15
|
class FileUpdater
|
16
|
-
# rubocop:disable Metrics/ClassLength
|
17
16
|
class PipfileFileUpdater
|
18
17
|
require_relative "pipfile_preparer"
|
19
18
|
require_relative "pipfile_manifest_updater"
|
@@ -461,7 +460,6 @@ module Dependabot
|
|
461
460
|
}
|
462
461
|
end
|
463
462
|
end
|
464
|
-
# rubocop:enable Metrics/ClassLength
|
465
463
|
end
|
466
464
|
end
|
467
465
|
end
|
@@ -58,7 +58,6 @@ module Dependabot
|
|
58
58
|
|
59
59
|
private
|
60
60
|
|
61
|
-
# rubocop:disable Metrics/MethodLength
|
62
61
|
def fetch_latest_resolvable_version_string(requirement:)
|
63
62
|
@latest_resolvable_version_string ||= {}
|
64
63
|
if @latest_resolvable_version_string.key?(requirement)
|
@@ -97,12 +96,9 @@ module Dependabot
|
|
97
96
|
handle_pip_compile_errors(e)
|
98
97
|
end
|
99
98
|
end
|
100
|
-
# rubocop:enable Metrics/MethodLength
|
101
99
|
|
102
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
103
100
|
# rubocop:disable Metrics/PerceivedComplexity
|
104
101
|
# rubocop:disable Metrics/AbcSize
|
105
|
-
# rubocop:disable Metrics/MethodLength
|
106
102
|
def handle_pip_compile_errors(error)
|
107
103
|
if error.message.include?("Could not find a version")
|
108
104
|
check_original_requirements_resolvable
|
@@ -146,10 +142,9 @@ module Dependabot
|
|
146
142
|
|
147
143
|
raise
|
148
144
|
end
|
149
|
-
|
145
|
+
|
150
146
|
# rubocop:enable Metrics/PerceivedComplexity
|
151
147
|
# rubocop:enable Metrics/AbcSize
|
152
|
-
# rubocop:enable Metrics/MethodLength
|
153
148
|
|
154
149
|
# Needed because pip-compile's resolver isn't perfect.
|
155
150
|
# Note: We raise errors from this method, rather than returning a
|
@@ -61,7 +61,6 @@ module Dependabot
|
|
61
61
|
|
62
62
|
private
|
63
63
|
|
64
|
-
# rubocop:disable Metrics/MethodLength
|
65
64
|
def fetch_latest_resolvable_version_string(requirement:)
|
66
65
|
@latest_resolvable_version_string ||= {}
|
67
66
|
if @latest_resolvable_version_string.key?(requirement)
|
@@ -96,7 +95,6 @@ module Dependabot
|
|
96
95
|
end
|
97
96
|
end
|
98
97
|
end
|
99
|
-
# rubocop:enable Metrics/MethodLength
|
100
98
|
|
101
99
|
def fetch_version_from_parsed_lockfile(updated_lockfile)
|
102
100
|
version =
|
@@ -73,7 +73,6 @@ module Dependabot
|
|
73
73
|
updated_requirement(req)
|
74
74
|
end
|
75
75
|
|
76
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
77
76
|
# rubocop:disable Metrics/PerceivedComplexity
|
78
77
|
def updated_pyproject_requirement(req)
|
79
78
|
return req unless latest_resolvable_version
|
@@ -99,7 +98,7 @@ module Dependabot
|
|
99
98
|
rescue UnfixableRequirement
|
100
99
|
req.merge(requirement: :unfixable)
|
101
100
|
end
|
102
|
-
|
101
|
+
|
103
102
|
# rubocop:enable Metrics/PerceivedComplexity
|
104
103
|
|
105
104
|
def update_pyproject_version(req)
|
@@ -117,7 +117,7 @@ module Dependabot
|
|
117
117
|
# rubocop:disable Metrics/CyclomaticComplexity
|
118
118
|
# rubocop:disable Metrics/PerceivedComplexity
|
119
119
|
# rubocop:disable Style/CaseEquality
|
120
|
-
# rubocop:disable
|
120
|
+
# rubocop:disable Layout/LineLength
|
121
121
|
# rubocop:disable Style/ParallelAssignment
|
122
122
|
# rubocop:disable Style/RedundantReturn
|
123
123
|
def old_comp(other)
|
@@ -149,7 +149,7 @@ module Dependabot
|
|
149
149
|
# rubocop:enable Metrics/CyclomaticComplexity
|
150
150
|
# rubocop:enable Metrics/PerceivedComplexity
|
151
151
|
# rubocop:enable Style/CaseEquality
|
152
|
-
# rubocop:enable
|
152
|
+
# rubocop:enable Layout/LineLength
|
153
153
|
# rubocop:enable Style/ParallelAssignment
|
154
154
|
# rubocop:enable Style/RedundantReturn
|
155
155
|
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.115.
|
4
|
+
version: 0.115.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-20 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.115.
|
19
|
+
version: 0.115.2
|
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.115.
|
26
|
+
version: 0.115.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|