dependabot-python 0.143.5 → 0.145.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/helpers/lib/parser.py +5 -0
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4e3d3caeb3813f7b0ab0984f3556fb0bfcdabd621febf66b16bd9e914d04af2
4
- data.tar.gz: 22923307f309df8b5aa88b24dcba93685f8f4603aa4762a027b7b7b08ae6a56f
3
+ metadata.gz: 5513ac8aeea76e354dec627bf1e1b332e9193227eee55f449146522d49b285f0
4
+ data.tar.gz: fa63c5c7915b82d5f8a51e678e4cb1782e4515f0d5e0c9e88bcab0e4ce5a9d9f
5
5
  SHA512:
6
- metadata.gz: a16d8aa6d6f66683f43a3be8eb4aad2820ca5f1a223383c813be40cba86d1b62d55edeac78abb7fa7c7cab68663645dd7e40458b295e0db256b89cfaacbb0f34
7
- data.tar.gz: 8f8fe4860c99f4ddd0eefa5e3503052d2ec1fab4f48e86ed6379c22a0d26697c9b5dc802e53792a77bafbd3bcf8c43c38b353329dd5597a1c0aef549576cbb1e
6
+ metadata.gz: 3fd0286d1454df27f576d237acbcceae45f0cec5056fa7cb22b919a8bdadefe2a3c023ec910a105ad7a3d8fee7e72825e0c7c64e046915bea7f16ec63806ce81
7
+ data.tar.gz: 5d9a647a0000d7381c72ac6c1ae9bdaa5f46cbbdc4fa695842964fa34553e11b770c62f7b3b2749aa552f12ca8101209659a96f8f788a6b6cf1cb2474b874ecd
@@ -11,6 +11,9 @@ from pip._internal.req.constructors import (
11
11
  install_req_from_line,
12
12
  install_req_from_parsed_requirement,
13
13
  )
14
+ # Inspired by pips internal check:
15
+ # https://github.com/pypa/pip/blob/0bb3ac87f5bb149bd75cceac000844128b574385/src/pip/_internal/req/req_file.py#L35
16
+ COMMENT_RE = re.compile(r'(^|\s+)#.*$')
14
17
 
15
18
 
16
19
  def parse_requirements(directory):
@@ -80,6 +83,8 @@ def parse_setup(directory):
80
83
 
81
84
  def parse_requirements(requires, req_type, filename):
82
85
  for req in requires:
86
+ req = COMMENT_RE.sub('', req)
87
+ req = req.strip()
83
88
  parse_requirement(req, req_type, filename)
84
89
 
85
90
  # Parse the setup.py and setup.cfg
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.143.5
4
+ version: 0.145.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-29 00:00:00.000000000 Z
11
+ date: 2021-05-07 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.143.5
19
+ version: 0.145.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.143.5
26
+ version: 0.145.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.13.0
103
+ version: 1.14.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.13.0
110
+ version: 1.14.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement