dependabot-python 0.143.3 → 0.145.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: d038c9a3a1b5456d90e6092e603dc836c8bba9049cc6b301fbae35b02634193f
4
- data.tar.gz: ea4ebe7443086525d8b38f373e8a5f1169c5043929ac33f27a54cbfd28aa4e24
3
+ metadata.gz: c1ddaf11dd75f70f5492a471ac28fef268cbc382ed9cbc701556cbffcf509084
4
+ data.tar.gz: b8e14570178b2d2baeba62564c6c2c4d548611e91364f9ee3f013ac0311ac298
5
5
  SHA512:
6
- metadata.gz: a349f222bf9ceb84b4920920aa85f939b611fb580cb998f8f4ffc3e1cad06df478a03534658f2550587b922335220e70f24f32ebd85583754fc9b23ed10518fd
7
- data.tar.gz: 59e56c3af0afde4453378fb0c2a18270f3d63c527ecc60b41def5a04c1220b4a6d53a5dc7eadfcf59f66fa8f0ab20f19a671aef2c9349257253b87f6dd988e81
6
+ metadata.gz: 430a572237e8a7ba4f9ba63ec5bb12025e5c2fcf0ef52df21f898522828aed517808c1cfaf55a316addb37be6be6c3e2a85f0b50fe9d64381ae30f52ff6ae15c
7
+ data.tar.gz: 1b41b62bfacf9a00ce94c0dd213caeebc99a1846cbd53631f74fafdb9cb7ce3db8036bbd6cf5b3ce2c6ed244b62eedf03ec1676b5cc3a641c26fe66479c438ba
@@ -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.3
4
+ version: 0.145.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.3
19
+ version: 0.145.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.3
26
+ version: 0.145.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement