dependabot-python 0.169.7 → 0.170.2

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: 23cda27107d1a352124bd9f73be3dc47fa1cf1d6298099fdb61c6831f6d8bc3f
4
- data.tar.gz: b76e35660b56e4fcdc51a69879644cdec55f5f8121b5499774cc645a75318b1b
3
+ metadata.gz: b4a906dfe3206d1e0edf1e3f55dd90f9402fec3d2da33f912754321af5145a81
4
+ data.tar.gz: aa98c889439a4e8d78af0b53d0b7f3adb74ac20a41fb525a28543eb71613ca4b
5
5
  SHA512:
6
- metadata.gz: f4804b346fcc17c5ab1ff2c426ebd82fe3a7a8c5960050410fcffa30f844a0eb6a73ba7c50acaba34616de40cb1388303e8bb0883537fc39a4305b0296de176d
7
- data.tar.gz: ea1bae1000cd71d3fd675098d8a835424b3e7d61ae03cdd91231a2571356cb73700d5a7d1f9905bfd7a0ae4738c77829a3aa890174d06a02d04f9b7202b4563f
6
+ metadata.gz: f61266d5b9fd89f32aa0081b8f5016b8701727c34a634e12c695e538bb7973e99f3817e58d86861e32298791e3c55d4e7c6fe595fe417a7c4689766e4c3d5d0a
7
+ data.tar.gz: 6bfa715b143c550afd52e5cad29d92a6a59c16a6ef4ea28d272a3fed743145855112327538f3f721e1d002e810df59e4770c921b4860c4c52e6861023f2b9ab4
@@ -2,10 +2,10 @@ pip==21.3.1
2
2
  pip-tools==6.4.0
3
3
  flake8==4.0.1
4
4
  hashin==0.15.0
5
- pipenv==2021.11.23
5
+ pipenv==2022.1.8
6
6
  pipfile==0.0.2
7
7
  poetry==1.1.12
8
- wheel==0.37.0
8
+ wheel==0.37.1
9
9
 
10
10
  # Some dependencies will only install if Cython is present
11
- Cython==0.29.25
11
+ Cython==0.29.26
@@ -22,8 +22,18 @@ module Dependabot
22
22
  pyproject_object = TomlRB.parse(pyproject_content)
23
23
  poetry_object = pyproject_object.fetch("tool").fetch("poetry")
24
24
 
25
- sources = pyproject_sources + config_variable_sources(credentials)
26
- poetry_object["source"] = sources if sources.any?
25
+ sources_hash = pyproject_sources.map { |source| [source["url"], source] }.to_h
26
+
27
+ config_variable_sources(credentials).each do |source|
28
+ if sources_hash.key?(source["original_url"])
29
+ sources_hash[source["original_url"]]["url"] = source["url"]
30
+ else
31
+ source.delete("original_url")
32
+ sources_hash[source["url"]] = source
33
+ end
34
+ end
35
+
36
+ poetry_object["source"] = sources_hash.values unless sources_hash.empty?
27
37
 
28
38
  TomlRB.dump(pyproject_object)
29
39
  end
@@ -105,6 +115,7 @@ module Dependabot
105
115
  select { |cred| cred["type"] == "python_index" }.
106
116
  map do |c|
107
117
  {
118
+ "original_url" => c["index-url"],
108
119
  "url" => AuthedUrlBuilder.authed_url(credential: c),
109
120
  "name" => SecureRandom.hex[0..3],
110
121
  "default" => c["replaces-base"]
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.169.7
4
+ version: 0.170.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-20 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.169.7
19
+ version: 0.170.2
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.169.7
26
+ version: 0.170.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: byebug
28
+ name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '11.0'
33
+ version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '11.0'
40
+ version: 1.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gpgme
43
43
  requirement: !ruby/object:Gem::Requirement