dependabot-python 0.223.0 → 0.225.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: 3e9e452699158db9bbd06ed1b09401940717de3e44a4838ef41dc322af20b9cd
4
- data.tar.gz: b46ae8ae11b9c8379cfe35cfbb3c3b92d33e211d5d13d126891bc6d35f62b439
3
+ metadata.gz: 9d804625d39f5d3fae7776c1963e2f33347a97fb4e9dae189674abb3dd5b3b99
4
+ data.tar.gz: 25193d26af70d445a683c82f7a2ea4151f1bd879e2ac35cf55d053dc761ddbac
5
5
  SHA512:
6
- metadata.gz: 03e2d1ff0d0299365c43513022072b4d1a3c3d3c52ae65d0daf9dade132c84fa0648080711ea1ae3af00648eeca03740072755abb2c8aa50b0fc8bc5ef52d473
7
- data.tar.gz: 2cb86e19ce30104bfda9362adc4660efd4e074d452da6d871146f65bfb25a8bc6e6d251368b452511005b9e51dcc89b27f9be6c4c89ee2f6f793cbb69d9424ce
6
+ metadata.gz: 1cbc7939f48ba24aedc80ce89dd0251ec5573197b2f5e6fe7a859b0192bed3e7009dca46287ebbd39f198d2fb5af4c453d4e84cd425b57175f532260386a9994
7
+ data.tar.gz: b46f5e9c0dbe616b337bd03d3621ec4a004a7f6e8ff323fa32595af884906908249f126ad1de23467c8a5b936256a5a3c30146113ecccb404b118c1e9383de17
data/helpers/build CHANGED
@@ -18,8 +18,4 @@ cp -r \
18
18
  "$install_dir"
19
19
 
20
20
  cd "$install_dir"
21
- PYENV_VERSION=3.11.4 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"
22
- PYENV_VERSION=3.10.12 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"
23
- PYENV_VERSION=3.9.17 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"
24
- PYENV_VERSION=3.8.17 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"
25
- PYENV_VERSION=3.7.17 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"
21
+ PYENV_VERSION=$1 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"
@@ -37,6 +37,28 @@ module Dependabot
37
37
  "or a Pipfile."
38
38
  end
39
39
 
40
+ def ecosystem_versions
41
+ # Hmm... it's weird that this calls file parser methods, but here we are in the file fetcher... for all
42
+ # ecosystems our goal is to extract the user specified versions, so we'll need to do file parsing... so should
43
+ # we move this `ecosystem_versions` metrics method to run in the file parser for all ecosystems? Downside is if
44
+ # file parsing blows up, this metric isn't emitted, but reality is we have to parse anyway... as we want to know
45
+ # the user-specified range of versions, not the version Dependabot chose to run.
46
+ python_requirement_parser = FileParser::PythonRequirementParser.new(dependency_files: files)
47
+ language_version_manager = LanguageVersionManager.new(python_requirement_parser: python_requirement_parser)
48
+ {
49
+ languages: {
50
+ python: {
51
+ # TODO: alternatively this could use `python_requirement_parser.user_specified_requirements` which
52
+ # returns an array... which we could flip to return a hash of manifest name => version
53
+ # string and then check for min/max versions... today it simply defaults to
54
+ # array.first which seems rather arbitrary.
55
+ "raw" => language_version_manager.user_specified_python_version || "unknown",
56
+ "max" => language_version_manager.python_major_minor || "unknown"
57
+ }
58
+ }
59
+ }
60
+ end
61
+
40
62
  private
41
63
 
42
64
  def fetch_files
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.223.0
4
+ version: 0.225.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-07-25 00:00:00.000000000 Z
11
+ date: 2023-07-31 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.223.0
19
+ version: 0.225.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.223.0
26
+ version: 0.225.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -187,7 +187,6 @@ extensions: []
187
187
  extra_rdoc_files: []
188
188
  files:
189
189
  - helpers/build
190
- - helpers/build_for_version
191
190
  - helpers/lib/__init__.py
192
191
  - helpers/lib/hasher.py
193
192
  - helpers/lib/parser.py
@@ -232,7 +231,7 @@ licenses:
232
231
  - Nonstandard
233
232
  metadata:
234
233
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
235
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.223.0
234
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.225.0
236
235
  post_install_message:
237
236
  rdoc_options: []
238
237
  require_paths:
@@ -1,21 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -e
4
-
5
- if [ -z "$DEPENDABOT_NATIVE_HELPERS_PATH" ]; then
6
- echo "Unable to build, DEPENDABOT_NATIVE_HELPERS_PATH is not set"
7
- exit 1
8
- fi
9
-
10
- install_dir="$DEPENDABOT_NATIVE_HELPERS_PATH/python"
11
- mkdir -p "$install_dir"
12
-
13
- helpers_dir="$(dirname "${BASH_SOURCE[0]}")"
14
- cp -r \
15
- "$helpers_dir/lib" \
16
- "$helpers_dir/run.py" \
17
- "$helpers_dir/requirements.txt" \
18
- "$install_dir"
19
-
20
- cd "$install_dir"
21
- PYENV_VERSION=$1 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"