dependabot-python 0.242.1 → 0.243.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: 8551cce2e7b034f2bba4bd85bfafac3eb74c4df231d42d38a39a66fe35b2089a
4
- data.tar.gz: cba70ca678784f5d1350e0942a05e493356622e6129c40a9124c0d8c79ffef27
3
+ metadata.gz: 2b21f11fc70d892878937bbee1ebb777bfe04b7d5a343d2532e95d7e0ffbfb31
4
+ data.tar.gz: 1f801c4b70837b1beba89ef13fad5465d7cd3694e870b7651160d86d5feeace7
5
5
  SHA512:
6
- metadata.gz: 11c07014feb92bc8ed1a81c730063340e537c0753773534f69e60e8184e63bcc4b44ae3ce87cfa2b597453b7345011166f9b59286a70a73d98fcc8f13645529b
7
- data.tar.gz: fb55db47f58e73849ea4497646cf801a5a693cd860ad3ff99eddfd701bb7da63e3af30cb2de4096a7962964522c6c2439007e1ca253a373c862829d3534b373c
6
+ metadata.gz: 9bf132f27cdcb751c790c4bf789dc5226243075811cbf87567f255a8a0d4d6e4d0819f4faa433ba1c371468ae1be00eaf0434a22ac1bd967bae7dc5fb3811930
7
+ data.tar.gz: f62aa6eaa2ec10aa079b9cfcdbb6dcc6191662a28ee2afe687d8c92241cf676b0aeb2dbda44a9229e51e494d44f7ae3c07bd95a5a67ab551a87b2e6d17606431
@@ -2,7 +2,7 @@ pip==23.3.2
2
2
  pip-tools==7.3.0
3
3
  flake8==7.0.0
4
4
  hashin==0.17.0
5
- pipenv@git+https://github.com/pypa/pipenv@main
5
+ pipenv==2023.11.17
6
6
  pipfile==0.0.2
7
7
  poetry==1.7.1
8
8
 
@@ -91,7 +91,7 @@ module Dependabot
91
91
  }]
92
92
  end
93
93
 
94
- # PyYAML < 6.0 will cause `pip-compile` to fail due to incompatiblity with Cython 3. Workaround it.
94
+ # PyYAML < 6.0 will cause `pip-compile` to fail due to incompatibility with Cython 3. Workaround it.
95
95
  SharedHelpers.run_shell_command("pyenv exec pip install cython<3.0") if old_pyyaml?(name, version)
96
96
 
97
97
  dependencies <<
@@ -463,7 +463,7 @@ module Dependabot
463
463
  .map do |cred|
464
464
  authed_url = AuthedUrlBuilder.authed_url(credential: cred)
465
465
 
466
- if cred["replaces-base"]
466
+ if cred.replaces_base?
467
467
  "--index-url=#{authed_url}"
468
468
  else
469
469
  "--extra-index-url=#{authed_url}"
@@ -146,13 +146,13 @@ module Dependabot
146
146
  index_url_creds = credentials
147
147
  .select { |cred| cred["type"] == "python_index" }
148
148
 
149
- if (main_cred = index_url_creds.find { |cred| cred["replaces-base"] })
149
+ if (main_cred = index_url_creds.find(&:replaces_base?))
150
150
  urls[:main] = AuthedUrlBuilder.authed_url(credential: main_cred)
151
151
  end
152
152
 
153
153
  urls[:extra] =
154
154
  index_url_creds
155
- .reject { |cred| cred["replaces-base"] }
155
+ .reject(&:replaces_base?)
156
156
  .map { |cred| AuthedUrlBuilder.authed_url(credential: cred) }
157
157
 
158
158
  urls
@@ -257,7 +257,7 @@ module Dependabot
257
257
  .map do |cred|
258
258
  authed_url = AuthedUrlBuilder.authed_url(credential: cred)
259
259
 
260
- if cred["replaces-base"]
260
+ if cred.replaces_base?
261
261
  "--index-url=#{authed_url}"
262
262
  else
263
263
  "--extra-index-url=#{authed_url}"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/version"
@@ -59,7 +59,7 @@ module Dependabot
59
59
  return epoch_comparison unless epoch_comparison.zero?
60
60
 
61
61
  version_comparison = super(other)
62
- return version_comparison unless version_comparison.zero?
62
+ return version_comparison unless version_comparison&.zero?
63
63
 
64
64
  post_version_comparison = post_version_comparison(other)
65
65
  return post_version_comparison unless post_version_comparison.zero?
@@ -96,7 +96,7 @@ module Dependabot
96
96
 
97
97
  local_comparison = Gem::Version.new(lhs) <=> Gem::Version.new(rhs)
98
98
 
99
- return local_comparison unless local_comparison.zero?
99
+ return local_comparison unless local_comparison&.zero?
100
100
 
101
101
  lhsegments.count <=> rhsegments.count
102
102
  end
@@ -33,6 +33,3 @@ Dependabot::Dependency.register_name_normaliser(
33
33
  "pip",
34
34
  ->(name) { Dependabot::Python::NameNormaliser.normalise(name) }
35
35
  )
36
-
37
- require "dependabot/utils"
38
- Dependabot::Utils.register_always_clone("pip")
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.242.1
4
+ version: 0.243.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-13 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.242.1
19
+ version: 0.243.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.242.1
26
+ version: 0.243.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -274,7 +274,7 @@ licenses:
274
274
  - Nonstandard
275
275
  metadata:
276
276
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
277
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.242.1
277
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.243.0
278
278
  post_install_message:
279
279
  rdoc_options: []
280
280
  require_paths: