dependabot-python 0.128.0 → 0.129.2

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: cf6f64b4656464c1e02e73d553bcea937088074440b8b389aebfd0dffaff7e9f
4
- data.tar.gz: 3af9328f0ef10bbcce3037a58c38cf0574805956ab8e94de1e1fa0fdb3936566
3
+ metadata.gz: d88a33e6e24107abe3aba9ee82a5394f15da49d1767838672621a5aaf4a3b858
4
+ data.tar.gz: 956350f9164e05121d78990dbe867c2f58421ab8dab1a4f32197a9e4599e991a
5
5
  SHA512:
6
- metadata.gz: 84b362df67759d62bb506e8ca373cf487f790424a824610ebd18bed15e191580d0406aa66605c4b657adad8bba7a560acf72f4a6f86b8fe1d95c5f17b3c38456
7
- data.tar.gz: 92047e230d53909532adf04e1945450ef8466d7d9bd8d6b925d9841314f6a97c6370691678801db81b7fbcf2e524729b59f614dc237230bbe91fbb92d5837c50
6
+ metadata.gz: 3c9bc5f725186413374d172369deadaafe7258501dd36cc7c2484fa295a444ab2a01a121e959c396e54a74fbebe02376f8fd9d1b8c3003457462512964e0eeb1
7
+ data.tar.gz: f5fc3e9e1c1ba076166b3c41f715e6575e267701a94227360c17149a9a54be8b1dc55aa708c7bea267b8fea98d5899c9d00c4a8467c825510ac2041c10ad658c
@@ -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.128.0
4
+ version: 0.129.2
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-14 00:00:00.000000000 Z
11
+ date: 2021-01-04 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.128.0
19
+ version: 0.129.2
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.128.0
26
+ version: 0.129.2
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