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.
- checksums.yaml +4 -4
- data/helpers/lib/parser.py +5 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5f20ac170ed5462370daaf016b364890b42392070da697e8f20c7653f975135
|
4
|
+
data.tar.gz: d6b20ab30e341d55a68d22f1bfc844a18ff3a5597ed5c4b8810ae76ac9cd522b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85e819825f39dabb5fbbd596c872492a650739d1826c3acde8dadb6312e7f68c4e6e41a54568548f465ed4bf41e9796d3873d65452974fd973947bc4d35991e1
|
7
|
+
data.tar.gz: 914b0e7384ae39769e7fa9cd1a820ea8981a79f0de9120e8b2dbfeb098790b9a1912c4ca1f7c1393e57a2c70af43885d8c5c19d5b061b7bac5102064a54f42e4
|
data/helpers/lib/parser.py
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
26
|
+
version: 0.144.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|