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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66f587f9f2bad38df796b27f339d8ab7dfc0d98925762745b447ea863ff824e0
4
- data.tar.gz: 8a96f54b1a137d59b95851a3eb1175cdbe23063017ac1fbd2c740d2748d25317
3
+ metadata.gz: fafe1e5b63333c4294d6aa30a9e71e3a5b7787250266b8b7807669ad4a9785c0
4
+ data.tar.gz: afb8dc50eee27336900c081140f16983543d4e988cec2868661a888990f68379
5
5
  SHA512:
6
- metadata.gz: 27837da107b38259b08cafd3f1c4219680c2fd371c026df55ab3eaf805876b27e09c4dd5a7e8b0bbc57a1513512045529c1f6d2fe1839986412be49c7371c68d
7
- data.tar.gz: b047c8281910a138e7cb3869f100547518e014b84dd95b4c7e2765249dbdbd43e3a9e23de6d13e87f835dc5aa5e811f8a857a4d12040c6682ec6ed219297c9d1
6
+ metadata.gz: d8c2bda37f16f9f6b2b8ce1aa9f3023285c83dd22269b4248d55efd795b92b0f203a1cdd2f8628a0b430194ddd0e1a17df86ad2fdce6309a4c4663cce8c8baa8
7
+ data.tar.gz: e166b341a760c9c91218369158b2aed70f8ede35a10802a8f93d891c6e044df7545bb92196e6e677bf53beaa1e3e39b2555a00feeb62a27c171734f4dacc3119
@@ -8,26 +8,16 @@ import re
8
8
 
9
9
  import setuptools
10
10
  import pip._internal.req.req_file
11
- from pip._internal.download import PipSession
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 install_req_from_line
14
-
15
- JINJA_DELIMITER_IGNORE_REGEX = r"({{(.*?)}})|({%[-]?(.*?)%})|({#(.*?)#})"
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 install_req in requirements:
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
 
@@ -1,5 +1,5 @@
1
- pip==19.3.1
2
- pip-tools==4.5.1
1
+ pip==20.1.1
2
+ pip-tools==5.1.2
3
3
  hashin==0.14.6
4
4
  pipenv==2018.11.26
5
5
  pipfile==0.0.2
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.117.11
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-28 00:00:00.000000000 Z
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.117.11
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.117.11
26
+ version: 0.118.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement