dependabot-python 0.180.5 → 0.182.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: f390d4d853717fb0dc633d4ff9bbfa156ae065e4dc5e349cf8abf24ead8ecc6f
4
- data.tar.gz: 9dfafb2691a10efcd0d03738fca2ad825c8ebe907800445b70cf0a2ff223ccef
3
+ metadata.gz: 1e6e576cb66e22b2e3a271572a2d33493e1e8bc79a3ed33e25e93ae80c2b10f5
4
+ data.tar.gz: cf2ee5d7f5d9a7a3f25ad0a0156f322db1ddc6915020a17eae4b7d3115ead8d0
5
5
  SHA512:
6
- metadata.gz: ab463fa96cc1c616282e085b9ad922e75b938416df1346137a59f342a2606668b2b0b9456c938cc34a0ae40ce7e1d3ab881a769e4734abfe12ad950eed4c7710
7
- data.tar.gz: d7868f8a28be4060ed86351963e4d97e6b5d0044232cd4811a9208e7d41e73941062fbf1deeb205cdf39c5467203e513cef54311712194f192b11257453d4f1f
6
+ metadata.gz: 490c04d39057911c7c00e0592cd090d06598ccd838ba4204e757f3f7350e98a88ff721cecc4466b9cff5bb7231801cd334073916fcb86ab8b8fb6cb4c3947c19
7
+ data.tar.gz: 8ec6c2c0361919bc954aa9b0f4e986b5fb5193560e3d53d213d5d9febd3a275a45bac902efec84503ebc38c642553e8acbed6a7f1030e8241e787a4fcda255c4
@@ -1,8 +1,8 @@
1
- pip==22.0.4
2
- pip-tools==6.5.1
1
+ pip>=21.3.1 # Allow earlier versions to retain python 3.6 support
2
+ pip-tools>=6.4.0 # Allow earlier versions to retain python 3.6 support
3
3
  flake8==4.0.1
4
4
  hashin==0.17.0
5
- pipenv==2022.3.28
5
+ pipenv==2022.4.8
6
6
  pipfile==0.0.2
7
7
  poetry==1.1.13
8
8
  wheel==0.37.1
@@ -72,12 +72,6 @@ module Dependabot
72
72
  def requirement_dependencies
73
73
  dependencies = DependencySet.new
74
74
  parsed_requirement_files.each do |dep|
75
- # This isn't ideal, but currently the FileUpdater won't update
76
- # deps that appear in a requirements.txt and Pipenv / Poetry
77
- # and *aren't* a straight lockfile for Pipenv / Poetry
78
- next if included_in_pipenv_deps?(normalised_name(dep["name"]))
79
- next if included_in_poetry_deps?(normalised_name(dep["name"]))
80
-
81
75
  # If a requirement has a `<`, `<=` or '==' marker then updating it is
82
76
  # probably blocked. Ignore it.
83
77
  next if blocking_marker?(dep)
@@ -6,7 +6,7 @@ require "dependabot/python/version"
6
6
  module Dependabot
7
7
  module Python
8
8
  class Requirement < Gem::Requirement
9
- OR_SEPARATOR = /(?<=[a-zA-Z0-9*])\s*\|+/.freeze
9
+ OR_SEPARATOR = /(?<=[a-zA-Z0-9)*])\s*\|+/.freeze
10
10
 
11
11
  # Add equality and arbitrary-equality matchers
12
12
  OPS = OPS.merge(
@@ -20,11 +20,17 @@ module Dependabot
20
20
 
21
21
  PATTERN_RAW = "\\s*(#{quoted})?\\s*(#{version_pattern})\\s*"
22
22
  PATTERN = /\A#{PATTERN_RAW}\z/.freeze
23
+ PARENS_PATTERN = /\A\(([^)]+)\)\z/.freeze
23
24
 
24
25
  def self.parse(obj)
25
26
  return ["=", Python::Version.new(obj.to_s)] if obj.is_a?(Gem::Version)
26
27
 
27
- unless (matches = PATTERN.match(obj.to_s))
28
+ line = obj.to_s
29
+ if (matches = PARENS_PATTERN.match(line))
30
+ line = matches[1]
31
+ end
32
+
33
+ unless (matches = PATTERN.match(line))
28
34
  msg = "Illformed requirement [#{obj.inspect}]"
29
35
  raise BadRequirementError, msg
30
36
  end
@@ -41,6 +47,10 @@ module Dependabot
41
47
  def self.requirements_array(requirement_string)
42
48
  return [new(nil)] if requirement_string.nil?
43
49
 
50
+ if (matches = PARENS_PATTERN.match(requirement_string))
51
+ requirement_string = matches[1]
52
+ end
53
+
44
54
  requirement_string.strip.split(OR_SEPARATOR).map do |req_string|
45
55
  new(req_string.strip)
46
56
  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.180.5
4
+ version: 0.182.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-07 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.180.5
19
+ version: 0.182.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.180.5
26
+ version: 0.182.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: debase
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.4.1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.4.1
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: debug
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +114,28 @@ dependencies:
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 1.26.0
117
+ version: 1.27.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.27.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: ruby-debug-ide
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.7.3
104
132
  type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
136
  - - "~>"
109
137
  - !ruby/object:Gem::Version
110
- version: 1.26.0
138
+ version: 0.7.3
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: simplecov
113
141
  requirement: !ruby/object:Gem::Requirement