dependabot-python 0.143.6 → 0.145.3

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: 7fdfa6e560b7284dbee6e5b98f0791fe040b1fb1fb4c162be61774ee33f115b4
4
- data.tar.gz: f1cb8e751afeed6ebeaa6328bdbc3f906c11734459568ad40147b83c2a4cc00c
3
+ metadata.gz: 865f434517666fddd6c54fbbac96c440832bdecdc4548b27c3bbc65b68b89c64
4
+ data.tar.gz: 69c8dffb02ddee16c62448fb32b9917920cfffc41f2c8ffb749b934807b55121
5
5
  SHA512:
6
- metadata.gz: bc156ec00f44cd52e5f38d0378a2f1b0b8319acaaa343af57d7e2d6cfc8d68c62c0b6448b01fe32dba45739ab53a4332f4b65c35aa3ef7938554ea562d22e9d3
7
- data.tar.gz: 76cb0a111a7e1d3f6b4613e88d3335d5a335cc92ea37debe25b9484d05b086c333082c14d40115f02e36dbd84816a1e6d9cd3ffcbeb0ec7ecf35cdf2d005428c
6
+ metadata.gz: a1d4a6120f0a03bf8912e8714a74b1b814852596227b1c5ddfb19e1e4a730005453db9ed7bd436f14a11b443d4a6109986004ce9755d70ba82b65604ebdb08d8
7
+ data.tar.gz: 63571548434644528c4291ca06651b021ba830302bb393556db764e92d23a9ceffa738ca67deadc60d120b87056f1ae3db2caadb7a518eb2b36d83cbb8290f7b
@@ -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.6
4
+ version: 0.145.3
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-30 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.6
19
+ version: 0.145.3
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.6
26
+ version: 0.145.3
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