dependabot-python 0.373.0 → 0.375.0

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: 9e081bf82eb61813d103d7a53103609a706f6aa56b2247ee2cc42ace8912caf5
4
- data.tar.gz: 1ff330024be2e88ef84a3277be7fcd20cee93218e21022b0f1a776bf66ce4e79
3
+ metadata.gz: 78d82643ecf214fa9c9546719f86f904775a2df1adc1838daddef1306054a00a
4
+ data.tar.gz: 68aca7a7062f67514acdf3616ee543eb830727dffb3ea2001bbec07612d3d6ab
5
5
  SHA512:
6
- metadata.gz: 404f2482dfeac1707d711f93fb2a7741bf1e2e9b679166bb27b715f898918bcddafcaaca1d6157d007d04871e08d3c43e17e1b55f1ed6a6360f5ce23ce36ff69
7
- data.tar.gz: c2723616f27806c1b9e7bf062c7965541be6949d7036b4af3d14a19ea5b5b11adfa6eb422d3436f8984f2cf5cee2e0b5bd762141ee28a27f22b3d7409a335b35
6
+ metadata.gz: '0548b008756712973354e457a020174748b741fa8d446975cfb543a8cb9663169e4a14ef7eb7390f275e97baa227ab1cc28f2d001add97ba7528bb415ca65249'
7
+ data.tar.gz: 2432fe5ce55b1749d2ad09b99875157a66f3a3d1797d2217772d545dd727192d5562b5deae11e70c3e6331753b60000dbb2aa46d2aad4ce6dfc0996e1f569c41
@@ -198,12 +198,15 @@ module Dependabot
198
198
 
199
199
  sig { params(deps_hash: T::Hash[String, T.untyped], dep_name: String, details: T::Hash[String, T.untyped]).void }
200
200
  def freeze_git_dep!(deps_hash, dep_name, details)
201
+ existing_extras = deps_hash[dep_name].is_a?(Hash) ? deps_hash[dep_name]["extras"] : nil
202
+
201
203
  deps_hash[dep_name] = {
202
204
  "git" => details.dig("source", "url"),
203
205
  "rev" => details.dig("source", "reference")
204
206
  }
205
207
  subdirectory = details.dig("source", "subdirectory")
206
208
  deps_hash[dep_name]["subdirectory"] = subdirectory if subdirectory
209
+ deps_hash[dep_name]["extras"] = existing_extras if existing_extras
207
210
  end
208
211
 
209
212
  sig { params(pyproject_object: T::Hash[String, T.untyped], excluded_names: T::Array[String]).void }
@@ -64,7 +64,7 @@ module Dependabot
64
64
  requirements.map do |req|
65
65
  case req[:file]
66
66
  when /setup\.(?:py|cfg)$/ then updated_setup_requirement(req)
67
- when "pyproject.toml" then updated_pyproject_requirement(req)
67
+ when ->(file) { file.end_with?("pyproject.toml") } then updated_pyproject_requirement(req)
68
68
  when "Pipfile" then updated_pipfile_requirement(req)
69
69
  when /\.txt$|\.in$/ then updated_requirement(req)
70
70
  else raise "Unexpected filename: #{req[:file]}"
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.373.0
4
+ version: 0.375.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.373.0
18
+ version: 0.375.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.373.0
25
+ version: 0.375.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: debug
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -322,7 +322,7 @@ licenses:
322
322
  - MIT
323
323
  metadata:
324
324
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
325
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.373.0
325
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.375.0
326
326
  rdoc_options: []
327
327
  require_paths:
328
328
  - lib