dependabot-python 0.180.3 → 0.181.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: 640e6703b3bb9e7aead40b2c323d23ffaf6c52f3adfa09a551ca1d941f561d36
4
- data.tar.gz: fa0c3160e37d6a53e074eb661b4137810e644a64498fc1f1b96e1728c3960b94
3
+ metadata.gz: f4ccf0e12202b5d1b6cb910cab1fcc72de962250ebde3734f5219700d2f1f32f
4
+ data.tar.gz: 73215b00c8ec406d67219605f713af4f6e47a5e94ecc0ebe9cb7591910362aa9
5
5
  SHA512:
6
- metadata.gz: 10b638a550024566bdd242b5bbbb50c8d4db557c8ad74af19bf27268ec565303749a742365568727d00b77956dee71ec189d637984913044ad63270ec404c044
7
- data.tar.gz: d23ae84a495f107d027ca8a774b6c32d3bbc95d382f84f4fb795c839ac6c7388985e22ced647c81d1df5aa2e0a64ee807a70786be28827f9bac8ab904b15d06f
6
+ metadata.gz: 366d876a00f9a603d7a51fc2cdd227856c8d356181956503cb18fa4c4565ecfee8667158d73fa8aa25548631c8a8a2411aa012e961c53458c3537c6aa5eafa32
7
+ data.tar.gz: 14053afa7217d82e24920f0bfe6bd96531c264dcac7a8d90231b7e895fb18be3d448728d94e0f5efa6396c5cf356808add4b8574ec5e42b26293053062f821fb
@@ -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.3
4
+ version: 0.181.0
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-04 00:00:00.000000000 Z
11
+ date: 2022-04-19 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.3
19
+ version: 0.181.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.180.3
26
+ version: 0.181.0
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