dependabot-python 0.117.11 → 0.118.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 +7 -17
- data/helpers/requirements.txt +2 -2
- 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: fafe1e5b63333c4294d6aa30a9e71e3a5b7787250266b8b7807669ad4a9785c0
|
4
|
+
data.tar.gz: afb8dc50eee27336900c081140f16983543d4e988cec2868661a888990f68379
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8c2bda37f16f9f6b2b8ce1aa9f3023285c83dd22269b4248d55efd795b92b0f203a1cdd2f8628a0b430194ddd0e1a17df86ad2fdce6309a4c4663cce8c8baa8
|
7
|
+
data.tar.gz: e166b341a760c9c91218369158b2aed70f8ede35a10802a8f93d891c6e044df7545bb92196e6e677bf53beaa1e3e39b2555a00feeb62a27c171734f4dacc3119
|
data/helpers/lib/parser.py
CHANGED
@@ -8,26 +8,16 @@ import re
|
|
8
8
|
|
9
9
|
import setuptools
|
10
10
|
import pip._internal.req.req_file
|
11
|
-
from pip._internal.
|
11
|
+
from pip._internal.network.session import PipSession
|
12
12
|
from pip._internal.models.format_control import FormatControl
|
13
|
-
from pip._internal.req.constructors import
|
14
|
-
|
15
|
-
|
13
|
+
from pip._internal.req.constructors import (
|
14
|
+
install_req_from_line,
|
15
|
+
install_req_from_parsed_requirement,
|
16
|
+
)
|
16
17
|
|
17
18
|
def parse_requirements(directory):
|
18
19
|
# Parse the requirements.txt
|
19
20
|
requirement_packages = []
|
20
|
-
parser_options = optparse.Values(
|
21
|
-
{
|
22
|
-
"skip_requirements_regex": JINJA_DELIMITER_IGNORE_REGEX,
|
23
|
-
# pip._internal assumes parse_requirements will be called from
|
24
|
-
# CLI, which sets default values. When passing parser options,
|
25
|
-
# need to explicitly set those defaults.
|
26
|
-
"isolated_mode": False,
|
27
|
-
"format_control": FormatControl(),
|
28
|
-
}
|
29
|
-
)
|
30
|
-
|
31
21
|
requirement_files = glob.glob(os.path.join(directory, '*.txt')) \
|
32
22
|
+ glob.glob(os.path.join(directory, '**', '*.txt'))
|
33
23
|
|
@@ -42,10 +32,10 @@ def parse_requirements(directory):
|
|
42
32
|
try:
|
43
33
|
requirements = pip._internal.req.req_file.parse_requirements(
|
44
34
|
reqs_file,
|
45
|
-
options=parser_options,
|
46
35
|
session=PipSession()
|
47
36
|
)
|
48
|
-
for
|
37
|
+
for parsed_req in requirements:
|
38
|
+
install_req = install_req_from_parsed_requirement(parsed_req)
|
49
39
|
if install_req.original_link:
|
50
40
|
continue
|
51
41
|
|
data/helpers/requirements.txt
CHANGED
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.118.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-29 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.118.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.118.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|