dependabot-python 0.143.2 → 0.144.0

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 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1809c3966abccb41cc8de414d4cd2a3a5c9d9afa78bc6a3160f371413e7c97ef
4
- data.tar.gz: 352ec9d7de7f7905a876557713ffa9171946aba9d27b13cb5774ce76314abdf7
3
+ metadata.gz: c5f20ac170ed5462370daaf016b364890b42392070da697e8f20c7653f975135
4
+ data.tar.gz: d6b20ab30e341d55a68d22f1bfc844a18ff3a5597ed5c4b8810ae76ac9cd522b
5
5
  SHA512:
6
- metadata.gz: '0415896c9abf0f2f4b5311885251d8dc221642ee037de5e2839bfb7938ae776c243d8c6246d7aa63b917ff8c8a8a01e21120186be3353708adf0d50239b21cc8'
7
- data.tar.gz: 1352c64de223f40ede4b9ce2756868e342eb3e636c8fb93a97f89e4c7a70b7fd4e9c5c67a3585db3f93eb60a22269cb73413b62d6d91677778597f340e0e6a67
6
+ metadata.gz: 85e819825f39dabb5fbbd596c872492a650739d1826c3acde8dadb6312e7f68c4e6e41a54568548f465ed4bf41e9796d3873d65452974fd973947bc4d35991e1
7
+ data.tar.gz: 914b0e7384ae39769e7fa9cd1a820ea8981a79f0de9120e8b2dbfeb098790b9a1912c4ca1f7c1393e57a2c70af43885d8c5c19d5b061b7bac5102064a54f42e4
@@ -11,7 +11,9 @@ from pip._internal.req.constructors import (
11
11
  install_req_from_line,
12
12
  install_req_from_parsed_requirement,
13
13
  )
14
-
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+)#.*$')
15
17
 
16
18
  def parse_requirements(directory):
17
19
  # Parse the requirements.txt
@@ -80,6 +82,8 @@ def parse_setup(directory):
80
82
 
81
83
  def parse_requirements(requires, req_type, filename):
82
84
  for req in requires:
85
+ req = COMMENT_RE.sub('', req)
86
+ req = req.strip()
83
87
  parse_requirement(req, req_type, filename)
84
88
 
85
89
  # 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.2
4
+ version: 0.144.0
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-23 00:00:00.000000000 Z
11
+ date: 2021-05-05 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.2
19
+ version: 0.144.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.143.2
26
+ version: 0.144.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement