dependabot-python 0.143.4 → 0.145.1

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: 3c5213cae4180101719ac96a4a0f0bd0e29bd16f2666b3433b4862e766a955c4
4
- data.tar.gz: 3587c17bf019688baf12d851ea212c0169a94f731db64ac4c39195b3adb27a14
3
+ metadata.gz: 43680a853d322f60b9f01e6973bddb7c922c90148976bc8b97af2fef248312d0
4
+ data.tar.gz: 8b9210fcfc4bb2f21f9155b046ec6bf0a23ee7c4044bb365fce827acaf484d71
5
5
  SHA512:
6
- metadata.gz: ddf4ffe5b59765040d9108cf2e4138a450e4f5c2c8c8dfb05f507593b076abca25d293172267abc26dd26161c5953da3ffc2c2dc3180df17e2aec1f3e1a970a5
7
- data.tar.gz: f702c765f8fe7c8941e3f7c9d5ce39caa4c53b309133cb32f12e63e1a4ed9474aa44ea93f040aae55372da89ba4d2ec6eeac94243e7111b98c9c410d1f82a9fc
6
+ metadata.gz: de7a6969433ec15d01d74f0d5cc53ee248989d217dbbea7e38ffe58536e6f0fc2983d59cd0a0cab9e383896aea7e5c43f902e49196b04d682cec254bfc6344ae
7
+ data.tar.gz: 1cc31fd2b395897fbce5f16f4189afaa5d0df88077c8469d606f0ee4850b9c1009e8c74dfe1350d4189743c321d8bb202a73db1390de38846cc3ec89de8a31a0
@@ -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.4
4
+ version: 0.145.1
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-26 00:00:00.000000000 Z
11
+ date: 2021-05-06 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.4
19
+ version: 0.145.1
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.4
26
+ version: 0.145.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement