dependabot-python 0.129.0 → 0.129.5

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: 96bac6a6030298649e990132404e9289256eac140ea3fa580a999982ec86ecc6
4
- data.tar.gz: cd805a592bd05fb232428ca327abef559bc0942655a9f943087de1d87e4ce360
3
+ metadata.gz: 0d49440d129a21aa6439aefa9ab344b0b24cdb8a61c9dabe2bcbd9a7cdd75097
4
+ data.tar.gz: 7051845b2f6cd71f0d2b45988c10542c2e31887e9e818f5d53cefd4e3de00e47
5
5
  SHA512:
6
- metadata.gz: 32820a72420cb8140297fd89ea42678e675fccfb4732821b6304ce59203397540132a3aa2403a5b29f614253f60c838315aaaad2ccc277ad1c68314f3e8d8a2a
7
- data.tar.gz: 95b3ecb2f7deb582b8b8e8a1adfb776311d303c0acc0e34dd69c9636a0f8739ff4137d930b41a7b22ec2f64f1b7e253f21b413feccbc5d4e27957d94109abdcc
6
+ metadata.gz: b4b280c94518f369f5abff09a2604cec9e958a510ef24620cf1dbfd654aeaab89b7ee0423d60b6d8265fc9695a3972cd3cf158c4c234fba9b6432beb605edce3
7
+ data.tar.gz: 768b58f18741d1a96534e25d735d6a67c811087bd9793d23593099d5670eb388ee91cd661e290f8749018b4760c75c87d458bf5428c7457e062b61530b9720b5
@@ -17,4 +17,4 @@ cp -r \
17
17
 
18
18
  cd "$install_dir"
19
19
  PYENV_VERSION=2.7.18 pyenv exec pip install -r "requirements.txt"
20
- PYENV_VERSION=3.9.0 pyenv exec pip install -r "requirements.txt"
20
+ PYENV_VERSION=3.9.1 pyenv exec pip install -r "requirements.txt"
@@ -1,9 +1,9 @@
1
1
  import hashin
2
2
  import json
3
3
  import pipfile
4
- from poetry.poetry import Poetry
5
4
  from poetry.factory import Factory
6
5
 
6
+
7
7
  def get_dependency_hash(dependency_name, dependency_version, algorithm):
8
8
  hashes = hashin.get_package_hashes(
9
9
  dependency_name,
@@ -11,14 +11,16 @@ def get_dependency_hash(dependency_name, dependency_version, algorithm):
11
11
  algorithm=algorithm
12
12
  )
13
13
 
14
- return json.dumps({ "result": hashes["hashes"] })
14
+ return json.dumps({"result": hashes["hashes"]})
15
+
15
16
 
16
17
  def get_pipfile_hash(directory):
17
18
  p = pipfile.load(directory + '/Pipfile')
18
19
 
19
- return json.dumps({ "result": p.hash })
20
+ return json.dumps({"result": p.hash})
21
+
20
22
 
21
23
  def get_pyproject_hash(directory):
22
24
  p = Factory().create_poetry(directory)
23
25
 
24
- return json.dumps({ "result": p.locker._get_content_hash() })
26
+ return json.dumps({"result": p.locker._get_content_hash()})
@@ -1,28 +1,26 @@
1
- from itertools import chain
2
1
  import glob
3
2
  import io
4
3
  import json
5
- import optparse
6
4
  import os.path
7
5
  import re
8
6
 
9
7
  import setuptools
10
8
  import pip._internal.req.req_file
11
9
  from pip._internal.network.session import PipSession
12
- from pip._internal.models.format_control import FormatControl
13
10
  from pip._internal.req.constructors import (
14
- install_req_from_line,
15
- install_req_from_parsed_requirement,
11
+ install_req_from_line,
12
+ install_req_from_parsed_requirement,
16
13
  )
17
14
 
15
+
18
16
  def parse_requirements(directory):
19
17
  # Parse the requirements.txt
20
18
  requirement_packages = []
21
19
  requirement_files = glob.glob(os.path.join(directory, '*.txt')) \
22
- + glob.glob(os.path.join(directory, '**', '*.txt'))
20
+ + glob.glob(os.path.join(directory, '**', '*.txt'))
23
21
 
24
22
  pip_compile_files = glob.glob(os.path.join(directory, '*.in')) \
25
- + glob.glob(os.path.join(directory, '**', '*.in'))
23
+ + glob.glob(os.path.join(directory, '**', '*.in'))
26
24
 
27
25
  def version_from_install_req(install_req):
28
26
  if install_req.is_pinned:
@@ -52,10 +50,11 @@ def parse_requirements(directory):
52
50
  "extras": sorted(list(install_req.extras))
53
51
  })
54
52
  except Exception as e:
55
- print(json.dumps({ "error": repr(e) }))
53
+ print(json.dumps({"error": repr(e)}))
56
54
  exit(1)
57
55
 
58
- return json.dumps({ "result": requirement_packages })
56
+ return json.dumps({"result": requirement_packages})
57
+
59
58
 
60
59
  def parse_setup(directory):
61
60
  # Parse the setup.py
@@ -99,6 +98,7 @@ def parse_setup(directory):
99
98
  return []
100
99
 
101
100
  global fake_open
101
+
102
102
  def fake_open(*args, **kwargs):
103
103
  content = ("VERSION = ('0', '0', '1+dependabot')\n"
104
104
  "__version__ = '0.0.1+dependabot'\n"
@@ -135,4 +135,4 @@ def parse_setup(directory):
135
135
  # Exec the setup.py
136
136
  exec(content) in globals(), locals()
137
137
 
138
- return json.dumps({ "result": setup_packages })
138
+ return json.dumps({"result": setup_packages})
@@ -1,5 +1,6 @@
1
- pip==20.3.1
1
+ pip==20.3.3
2
2
  pip-tools==5.4.0
3
+ flake8==3.8.4
3
4
  hashin==0.15.0
4
5
  pipenv==2018.11.26
5
6
  pipfile==0.0.2
@@ -6,6 +6,7 @@ require "dependabot/file_fetchers"
6
6
  require "dependabot/file_fetchers/base"
7
7
  require "dependabot/python/requirement_parser"
8
8
  require "dependabot/errors"
9
+
9
10
  module Dependabot
10
11
  module Python
11
12
  class FileFetcher < Dependabot::FileFetchers::Base
@@ -4,13 +4,13 @@ module Dependabot
4
4
  module Python
5
5
  module PythonVersions
6
6
  PRE_INSTALLED_PYTHON_VERSIONS = %w(
7
- 3.9.0 2.7.18
7
+ 3.9.1 2.7.18
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.9.0
13
+ 3.9.1 3.9.0
14
14
  3.8.6 3.8.5 3.8.4 3.8.3 3.8.2 3.8.1 3.8.0
15
15
  3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0
16
16
  3.6.12 3.6.11 3.6.10 3.6.9 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.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.129.0
4
+ version: 0.129.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-15 00:00:00.000000000 Z
11
+ date: 2021-01-07 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.129.0
19
+ version: 0.129.5
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.129.0
26
+ version: 0.129.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,28 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.6.0
103
+ version: 1.7.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.6.0
110
+ version: 1.7.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.20.0
117
+ version: 0.21.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.20.0
124
+ version: 0.21.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov-console
127
127
  requirement: !ruby/object:Gem::Requirement