dependabot-python 0.228.0 → 0.230.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: 67fcdac9ca728ef251cf259a11a3d1efec3f037715f9587bc30896baf3abcad9
4
- data.tar.gz: 00cf4ecfceeba160a6ccb95c84853f782df01f571ea17b320609205a6138e76e
3
+ metadata.gz: 9ae3b5a483a1e9cb052729d34b14cc053e4a75d2f6a1a5f6abf5c4b25ddd33d8
4
+ data.tar.gz: fe4a64c0706b8cf7d41ccfa984899d2593ca6e56888728d71b16476aa3535dfd
5
5
  SHA512:
6
- metadata.gz: e320bfeef5f545705df3daf17edf15cf9633b3ed2a6438bc1cd12ec3fc66d8abd1248d20898b0a8aca1d3aaa86f1b512f951179c4708706af36d64a93b0a5933
7
- data.tar.gz: 9bc806e1d363784ed23ed71d694154e8d37f967bb1d559348852fffdde381889b2f235658b5dc424c9400589483d76c08b5f1f608eb15e43e59e70bc773a266a
6
+ metadata.gz: 62ef62141edc0821021d9a4cbcde7c33bff4480f52eddf4419a1324b6e4d69cdd5b051e72c45162ca325d0e519b294eaa21c1187b82b5cd1f4b537b1510fc760
7
+ data.tar.gz: d22f06823bb9a46d0a6fcc9d173924d096c9f2bf99b6639a03f15be8fcaf4139d0cf1e0d8621074cf9e9a97b2f9ec96d92434904348cb1c715aa6a074017fdca
data/helpers/build CHANGED
@@ -18,4 +18,18 @@ cp -r \
18
18
  "$install_dir"
19
19
 
20
20
  cd "$install_dir"
21
- PYENV_VERSION=$1 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"
21
+ PYENV_VERSION=$1 pyenv exec pip3 --disable-pip-version-check install --use-pep517 -r "requirements.txt"
22
+
23
+ # Remove the extra objects added during the previous install. Based on
24
+ # https://github.com/docker-library/python/blob/master/Dockerfile-linux.template
25
+ # And the image docker.io/library/python
26
+ find "${PYENV_ROOT:-/usr/local/.pyenv}/versions" -depth \
27
+ \( \
28
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
29
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \
30
+ \) -exec rm -rf '{}' +
31
+
32
+ find -L "${PYENV_ROOT:-/usr/local/.pyenv}/versions" -type f \
33
+ -name '*.so' \
34
+ -exec strip --preserve-dates {} +
35
+
@@ -7,4 +7,4 @@ pipfile==0.0.2
7
7
  poetry==1.6.1
8
8
 
9
9
  # Some dependencies will only install if Cython is present
10
- Cython==3.0.0
10
+ Cython==3.0.2
@@ -247,7 +247,7 @@ module Dependabot
247
247
  write_temporary_pyproject
248
248
 
249
249
  SharedHelpers.run_helper_subprocess(
250
- command: "pyenv exec python #{NativeHelpers.python_helper_path}",
250
+ command: "pyenv exec python3 #{NativeHelpers.python_helper_path}",
251
251
  function: "parse_pep621_dependencies",
252
252
  args: [pyproject.name]
253
253
  )
@@ -60,7 +60,7 @@ module Dependabot
60
60
  write_temporary_dependency_files
61
61
 
62
62
  requirements = SharedHelpers.run_helper_subprocess(
63
- command: "pyenv exec python #{NativeHelpers.python_helper_path}",
63
+ command: "pyenv exec python3 #{NativeHelpers.python_helper_path}",
64
64
  function: "parse_setup",
65
65
  args: [Dir.pwd]
66
66
  )
@@ -81,7 +81,7 @@ module Dependabot
81
81
  write_sanitized_setup_file
82
82
 
83
83
  requirements = SharedHelpers.run_helper_subprocess(
84
- command: "pyenv exec python #{NativeHelpers.python_helper_path}",
84
+ command: "pyenv exec python3 #{NativeHelpers.python_helper_path}",
85
85
  function: "parse_setup",
86
86
  args: [Dir.pwd]
87
87
  )
@@ -133,7 +133,7 @@ module Dependabot
133
133
  write_temporary_dependency_files
134
134
 
135
135
  requirements = SharedHelpers.run_helper_subprocess(
136
- command: "pyenv exec python #{NativeHelpers.python_helper_path}",
136
+ command: "pyenv exec python3 #{NativeHelpers.python_helper_path}",
137
137
  function: "parse_requirements",
138
138
  args: [Dir.pwd]
139
139
  )
@@ -376,7 +376,7 @@ module Dependabot
376
376
 
377
377
  def package_hashes_for(name:, version:, algorithm:)
378
378
  SharedHelpers.run_helper_subprocess(
379
- command: "pyenv exec python #{NativeHelpers.python_helper_path}",
379
+ command: "pyenv exec python3 #{NativeHelpers.python_helper_path}",
380
380
  function: "get_dependency_hash",
381
381
  args: [name, version, algorithm]
382
382
  ).map { |h| "--hash=#{algorithm}:#{h['hash']}" }
@@ -326,7 +326,7 @@ module Dependabot
326
326
  SharedHelpers.in_a_temporary_directory do |dir|
327
327
  File.write(File.join(dir, "Pipfile"), pipfile_content)
328
328
  SharedHelpers.run_helper_subprocess(
329
- command: "pyenv exec python #{NativeHelpers.python_helper_path}",
329
+ command: "pyenv exec python3 #{NativeHelpers.python_helper_path}",
330
330
  function: "get_pipfile_hash",
331
331
  args: [dir]
332
332
  )
@@ -232,7 +232,7 @@ module Dependabot
232
232
  write_temporary_dependency_files(pyproject_content)
233
233
 
234
234
  SharedHelpers.run_helper_subprocess(
235
- command: "pyenv exec python #{python_helper_path}",
235
+ command: "pyenv exec python3 #{python_helper_path}",
236
236
  function: "get_pyproject_hash",
237
237
  args: [dir]
238
238
  )
@@ -134,7 +134,7 @@ module Dependabot
134
134
 
135
135
  def package_hashes_for(name:, version:, algorithm:)
136
136
  SharedHelpers.run_helper_subprocess(
137
- command: "pyenv exec python #{NativeHelpers.python_helper_path}",
137
+ command: "pyenv exec python3 #{NativeHelpers.python_helper_path}",
138
138
  function: "get_dependency_hash",
139
139
  args: [name, version, algorithm]
140
140
  ).map { |h| "--hash=#{algorithm}:#{h['hash']}" }
@@ -8,10 +8,10 @@ module Dependabot
8
8
  class LanguageVersionManager
9
9
  # This list must match the versions specified at the top of `python/Dockerfile`
10
10
  PRE_INSTALLED_PYTHON_VERSIONS = %w(
11
- 3.11.4
12
- 3.10.12
13
- 3.9.17
14
- 3.8.17
11
+ 3.11.5
12
+ 3.10.13
13
+ 3.9.18
14
+ 3.8.18
15
15
  ).freeze
16
16
 
17
17
  def initialize(python_requirement_parser:)
@@ -23,7 +23,7 @@ module Dependabot
23
23
  return if SharedHelpers.run_shell_command("pyenv versions").include?(" #{python_major_minor}.")
24
24
 
25
25
  SharedHelpers.run_shell_command(
26
- "tar xzf /usr/local/.pyenv/#{python_major_minor}.tar.gz -C /usr/local/.pyenv/"
26
+ "tar -axf /usr/local/.pyenv/versions/#{python_version}.tar.zst -C /usr/local/.pyenv/versions"
27
27
  )
28
28
  end
29
29
 
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.228.0
4
+ version: 0.230.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-25 00:00:00.000000000 Z
11
+ date: 2023-09-08 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.228.0
19
+ version: 0.230.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.228.0
26
+ version: 0.230.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -231,7 +231,7 @@ licenses:
231
231
  - Nonstandard
232
232
  metadata:
233
233
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
234
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.228.0
234
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.230.0
235
235
  post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths: