dependabot-python 0.95.59 → 0.95.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 366c91fb1e2085cfeb25e78ae9892afea7ab90a5087711f687424998b0f74e93
4
- data.tar.gz: f2003811eb623bb96682481a87fa89653032190d351fe076ff9ade7eb17e165b
3
+ metadata.gz: 8a5caa164fe015c7eea99ba6211c2f6d82c8c4f725128e26a1424d429aca4ef4
4
+ data.tar.gz: bc00984e10b8c6184cc72a151dd0823cf76f9805c8aa4a5f6b90097d6e275630
5
5
  SHA512:
6
- metadata.gz: 77b70b748b3a1076f2fad8821e596929f375dd8432b2ae3f4116c04d2d5d5e770951a5ac54b21ef75082dd36b51ec8aab3d85ea0e3ea8fbe2630b017b35ebc34
7
- data.tar.gz: cb47c3f64b83edc3f2c83d4d8d591dabc38c5b1090db64578a51911e85c23b5d162292cf072ea612146211b5a2bad10636d8ab3903819b7d1e3d687e687d44b4
6
+ metadata.gz: b976f0920092209050ff939d8bf856540c7dd061a6de95cb46c0dec95e20aacd8f6312d78a307a84146cb539cafd9d48c8dadf1a61997220c6200be9609d6dda
7
+ data.tar.gz: 927ddd8f368d787db66b00c46a220156aaec09642cd54103205d5724f08f570448f9b855a37d7b1aa2418d376fb518fd1afbbe0080b62d6d15841c4ccc1b9e86
@@ -200,7 +200,7 @@ module Dependabot
200
200
  end
201
201
 
202
202
  # Overwrite the .python-version with updated content
203
- File.write(".python-version", python_version) if python_version
203
+ File.write(".python-version", python_version)
204
204
 
205
205
  setup_files.each do |file|
206
206
  path = file.name
@@ -216,12 +216,11 @@ module Dependabot
216
216
  end
217
217
 
218
218
  def install_required_python
219
- if python_version &&
220
- !run_command("pyenv versions").include?(python_version)
221
- run_command("pyenv install -s")
222
- run_command("pyenv exec pip install -r " + \
223
- NativeHelpers.python_requirements_path)
224
- end
219
+ return if run_command("pyenv versions").include?(python_version)
220
+
221
+ run_command("pyenv install -s #{python_version}")
222
+ run_command("pyenv exec pip install -r " + \
223
+ NativeHelpers.python_requirements_path)
225
224
  end
226
225
 
227
226
  def sanitized_setup_file_content(file)
@@ -326,7 +326,7 @@ module Dependabot
326
326
  return if run_command("pyenv versions").include?(python_version)
327
327
 
328
328
  requirements_path = NativeHelpers.python_requirements_path
329
- run_command("pyenv install -s")
329
+ run_command("pyenv install -s #{python_version}")
330
330
  run_command("pyenv exec pip install -r #{requirements_path}")
331
331
  end
332
332
 
@@ -153,7 +153,7 @@ module Dependabot
153
153
  write_temporary_dependency_files(pyproject_content)
154
154
 
155
155
  if python_version && !pre_installed_python?(python_version)
156
- run_poetry_command("pyenv install -s")
156
+ run_poetry_command("pyenv install -s #{python_version}")
157
157
  run_poetry_command("pyenv exec pip install --upgrade pip")
158
158
  run_poetry_command("pyenv exec pip install -r " + \
159
159
  NativeHelpers.python_requirements_path)
@@ -217,7 +217,7 @@ module Dependabot
217
217
  end
218
218
 
219
219
  # Overwrite the .python-version with updated content
220
- File.write(".python-version", python_version) if python_version
220
+ File.write(".python-version", python_version)
221
221
 
222
222
  setup_files.each do |file|
223
223
  path = file.name
@@ -233,12 +233,11 @@ module Dependabot
233
233
  end
234
234
 
235
235
  def install_required_python
236
- if python_version &&
237
- !run_command("pyenv versions").include?(python_version)
238
- run_command("pyenv install -s")
239
- run_command("pyenv exec pip install -r " + \
240
- NativeHelpers.python_requirements_path)
241
- end
236
+ return if run_command("pyenv versions").include?(python_version)
237
+
238
+ run_command("pyenv install -s #{python_version}")
239
+ run_command("pyenv exec pip install -r " + \
240
+ NativeHelpers.python_requirements_path)
242
241
  end
243
242
 
244
243
  def sanitized_setup_file_content(file)
@@ -279,7 +279,7 @@ module Dependabot
279
279
  return if run_command("pyenv versions").include?(python_version)
280
280
 
281
281
  requirements_path = NativeHelpers.python_requirements_path
282
- run_command("pyenv install -s")
282
+ run_command("pyenv install -s #{python_version}")
283
283
  run_command("pyenv exec pip install -r #{requirements_path}")
284
284
  end
285
285
 
@@ -54,7 +54,7 @@ module Dependabot
54
54
  write_temporary_dependency_files
55
55
 
56
56
  if python_version && !pre_installed_python?(python_version)
57
- run_poetry_command("pyenv install -s")
57
+ run_poetry_command("pyenv install -s #{python_version}")
58
58
  run_poetry_command("pyenv exec pip install -r " + \
59
59
  NativeHelpers.python_requirements_path)
60
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.95.59
4
+ version: 0.95.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.95.59
19
+ version: 0.95.60
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.95.59
26
+ version: 0.95.60
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement