dependabot-python 0.113.24 → 0.113.25

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: 977529be5ea093ec55dc646ba81c7110e1f7fa5241a6da27e2262ee4c3984b09
4
- data.tar.gz: 102ab0b082ca9b1a9beeeb7855cd6b9902654c5c19aa9c3faafc978405f174f6
3
+ metadata.gz: 0bc934aa319c8718ebcbc3511fd963ecb378b6b9161f678dcfe905f2bf712b52
4
+ data.tar.gz: 2412d95fe4fc6a28aa4122f086a5b6ca44116622e60bce73c5f973542c302080
5
5
  SHA512:
6
- metadata.gz: 2b5cb7312ca12213c3f3d0d2f4a2d6a0750b99566d759ebd7a99636f79816bc035deefba9822845b55b6c42549166bd4135cf9a53bd57516599a106ba4574561
7
- data.tar.gz: 6df4ea73b5c6217394096ccce944136ba5ec790c7e1160148bdb7519ad0681482f8063c7dbd223c3c1e4f64dfedb69874a03a7e36980dc079c876cb70cfe4f21
6
+ metadata.gz: 13484bfd772c4800aa686fb01cbb887bb7618533315927ac437cdb90979f5ab893fb1e008f6ea6f7b6072535dc676dd28bf9b9efd241870bcb633c36b2773ea6
7
+ data.tar.gz: 85735d165b7b955ae5c02dd8927608f114e33bf2ea1283ce68541c357ca5f934833f78ec41134707f83188dbe4ed50d7498c090a34d1ea8e8a5c1a5cdc54e1bb
data/helpers/build CHANGED
@@ -17,4 +17,4 @@ cp -r \
17
17
 
18
18
  cd "$install_dir"
19
19
  PYENV_VERSION=2.7.17 pyenv exec pip install -r "requirements.txt"
20
- PYENV_VERSION=3.7.5 pyenv exec pip install -r "requirements.txt"
20
+ PYENV_VERSION=3.8.0 pyenv exec pip install -r "requirements.txt"
@@ -2,17 +2,31 @@ from itertools import chain
2
2
  import glob
3
3
  import io
4
4
  import json
5
+ import optparse
5
6
  import os.path
6
7
  import re
7
8
 
8
9
  import setuptools
9
10
  import pip._internal.req.req_file
10
11
  from pip._internal.download import PipSession
12
+ from pip._internal.models.format_control import FormatControl
11
13
  from pip._internal.req.constructors import install_req_from_line
12
14
 
15
+ JINJA_DELIMITER_IGNORE_REGEX = r"({{(.*?)}})|({%[-]?(.*?)%})|({#(.*?)#})"
16
+
13
17
  def parse_requirements(directory):
14
18
  # Parse the requirements.txt
15
19
  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
+ )
16
30
 
17
31
  requirement_files = glob.glob(os.path.join(directory, '*.txt')) \
18
32
  + glob.glob(os.path.join(directory, '**', '*.txt'))
@@ -28,6 +42,7 @@ def parse_requirements(directory):
28
42
  try:
29
43
  requirements = pip._internal.req.req_file.parse_requirements(
30
44
  reqs_file,
45
+ options=parser_options,
31
46
  session=PipSession()
32
47
  )
33
48
  for install_req in requirements:
@@ -4,14 +4,13 @@ module Dependabot
4
4
  module Python
5
5
  module PythonVersions
6
6
  PRE_INSTALLED_PYTHON_VERSIONS = %w(
7
- 3.7.5 2.7.17
7
+ 3.8.0 2.7.17
8
8
  ).freeze
9
9
 
10
10
  # Due to an OpenSSL issue we can only install the following versions in
11
11
  # the Dependabot container.
12
12
  SUPPORTED_VERSIONS = %w(
13
- 3.8-dev
14
- 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0
13
+ 3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0
15
14
  3.6.9 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.6.0
16
15
  3.5.7 3.5.6 3.5.5 3.5.4 3.5.3
17
16
  2.7.17 2.7.16 2.7.15 2.7.14 2.7.13
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.113.24
4
+ version: 0.113.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-26 00:00:00.000000000 Z
11
+ date: 2019-11-28 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.113.24
19
+ version: 0.113.25
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.113.24
26
+ version: 0.113.25
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.76.0
117
+ version: 0.77.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.76.0
124
+ version: 0.77.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: vcr
127
127
  requirement: !ruby/object:Gem::Requirement