dependabot-python 0.166.1 → 0.169.1

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: e1fe31e0c62f6553ad83d2e5489199ac6568c04eecf91b57ab96d5a6689d0b3d
4
- data.tar.gz: fb34d57c76465b2c3f1077e9d103932e4092fdd6ef0aee52ac9b942504210287
3
+ metadata.gz: 491d235ce8877b0da3a7de048d9ec6cb38b89f8898c46f5a07760900d6b8bcc8
4
+ data.tar.gz: 0b0434fe1caa2459cdd3ba3cb9aff518c63697b0ffbe1f9128858c6e1839f26d
5
5
  SHA512:
6
- metadata.gz: 9cab3be85a185dea4a2e6a11c03330770ec2474be5bfe78a4d26ae223ac968e40da8dc060747ed26f380a74a4ec76993fdb347f1f87ac7a9ad15028f0fb7c68f
7
- data.tar.gz: ba07d7aee8a862e31d04a6d671916c47ae1103b76e8daecf2150b16f1d32b75d3050fb45b3f7a6cb43140b3b376d074b89db3fccbab983c10f80188a3bc26e54
6
+ metadata.gz: 314e6788ad67e4c9a7021c4ee3ee3292418ec6619cca1be069b7c63712f73ed6fe742a5408859466d040532093fd10edd2c734d860eb02f32e71f9f5d50c6210
7
+ data.tar.gz: 0d011a883b921c37d728b1510904f0a382e5ca043b21539119cfea4dff5e3318687141a9cf4a8c48b39c9041a039123474b3af9199fa9d8ba39005a13a3f4733
@@ -1,10 +1,10 @@
1
- pip==21.2.4
1
+ pip==21.3.1
2
2
  pip-tools==6.4.0
3
3
  flake8==4.0.1
4
4
  hashin==0.15.0
5
- pipenv==2021.5.29
5
+ pipenv==2021.11.23
6
6
  pipfile==0.0.2
7
- poetry==1.1.11
7
+ poetry==1.1.12
8
8
  wheel==0.37.0
9
9
 
10
10
  # Some dependencies will only install if Cython is present
@@ -430,6 +430,9 @@ module Dependabot
430
430
  options << "--no-header" unless requirements_file.content.include?("autogenerated by pip-c")
431
431
 
432
432
  options << "--pre" if requirements_file.content.include?("--pre")
433
+
434
+ options << "--strip-extras" if requirements_file.content.include?("--strip-extras")
435
+
433
436
  options
434
437
  end
435
438
 
@@ -54,7 +54,7 @@ module Dependabot
54
54
 
55
55
  next unless (locked_version = locked_details&.fetch("version"))
56
56
 
57
- next if locked_details&.dig("source", "type") == "directory"
57
+ next if %w(directory file url).include?(locked_details&.dig("source", "type"))
58
58
 
59
59
  if locked_details&.dig("source", "type") == "git"
60
60
  poetry_object[key][dep_name] = {
@@ -25,7 +25,7 @@ module Dependabot
25
25
  # rubocop:disable Metrics/ClassLength
26
26
  class PipCompileVersionResolver
27
27
  GIT_DEPENDENCY_UNREACHABLE_REGEX =
28
- /git clone -q (?<url>[^\s]+).* /.freeze
28
+ /git clone --filter=blob:none -q (?<url>[^\s]+).* /.freeze
29
29
  GIT_REFERENCE_NOT_FOUND_REGEX =
30
30
  /egg=(?<name>\S+).*.*WARNING: Did not find branch or tag \'(?<tag>[^\n"]+)\'/m.freeze
31
31
  NATIVE_COMPILATION_ERROR =
@@ -40,7 +40,9 @@ module Dependabot
40
40
  PIPENV_INSTALLATION_ERROR_REGEX =
41
41
  /#{Regexp.quote(TRACEBACK)}[\s\S]*^\s+import\s(?<name>.+)[\s\S]*^#{Regexp.quote(PIPENV_INSTALLATION_ERROR)}/.
42
42
  freeze
43
- UNSUPPORTED_DEP_REGEX = /(?:pyobjc)[\s\S]*#{Regexp.quote(PIPENV_INSTALLATION_ERROR)}/.freeze
43
+ UNSUPPORTED_DEPS = %w(pyobjc).freeze
44
+ UNSUPPORTED_DEP_REGEX =
45
+ /Could not find a version that satisfies the requirement.*(?:#{UNSUPPORTED_DEPS.join("|")})/.freeze
44
46
  PIPENV_RANGE_WARNING = /Warning:\sPython\s[<>].* was not found/.freeze
45
47
 
46
48
  attr_reader :dependency, :dependency_files, :credentials
@@ -62,11 +64,7 @@ module Dependabot
62
64
  @resolvable ||= {}
63
65
  return @resolvable[version] if @resolvable.key?(version)
64
66
 
65
- @resolvable[version] = if fetch_latest_resolvable_version_string(requirement: "==#{version}")
66
- true
67
- else
68
- false
69
- end
67
+ @resolvable[version] = !!fetch_latest_resolvable_version_string(requirement: "==#{version}")
70
68
  end
71
69
 
72
70
  private
@@ -155,7 +153,9 @@ module Dependabot
155
153
  raise DependencyFileNotResolvable, msg
156
154
  end
157
155
 
158
- check_original_requirements_resolvable if error.message.include?("Could not find a version")
156
+ if error.message.include?("Could not find a version") || error.message.include?("ResolutionFailure")
157
+ check_original_requirements_resolvable
158
+ end
159
159
 
160
160
  if error.message.include?("SyntaxError: invalid syntax")
161
161
  raise DependencyFileNotResolvable,
@@ -220,7 +220,8 @@ module Dependabot
220
220
  end
221
221
 
222
222
  def handle_pipenv_errors_resolving_original_reqs(error)
223
- if error.message.include?("Could not find a version")
223
+ if error.message.include?("Could not find a version") ||
224
+ error.message.include?("package versions have conflicting dependencies")
224
225
  msg = clean_error_message(error.message)
225
226
  msg.gsub!(/\s+\(from .*$/, "")
226
227
  raise if msg.empty?
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.166.1
4
+ version: 0.169.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-14 00:00:00.000000000 Z
11
+ date: 2021-11-29 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.166.1
19
+ version: 0.169.1
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.166.1
26
+ version: 0.169.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement