dependabot-python 0.169.8 → 0.171.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: 8c786cadd8d0d028aa09ecdb9a418867e5316daf1f332787237a34210591b9bb
4
- data.tar.gz: 726d89700968acca54eb7866a8bd5e51851f269fa2ea5f998111cb3e2553a219
3
+ metadata.gz: 8abe744f5aac43f30dcac998d3507f93e35495a87ddb44469c72af91d916f679
4
+ data.tar.gz: 2f4e2adbac0ade94278ad55abcce0e1bc31f04652c68891f1dc4515ad30e7c37
5
5
  SHA512:
6
- metadata.gz: 6e9489fe6e1cb0656692e7127f9a13ec83771668225f87dab07afb7e4e03f9e6e531a448ecd561ccf18089ad5952e4b29270e6e647c3b6072502b3de539f7b93
7
- data.tar.gz: 9270d42b4b368da12930a9a671845297985214d0db6d243e076848c63c3560e642b73261c8bc7b8bb1b0a611a234bfb9aa218b906ac67204770fd0dc3e6a8de1
6
+ metadata.gz: 11c2527849b18ee3f9b6218c3d432c306179519fc0d67e8fe0bf62814a9d085ce15e0a500009b3ad06c60689c489f4a08d2e2b5fe33e1b8d40ad512909666075
7
+ data.tar.gz: beb4177224c2b8c2c9cd84658f033d707680f0187751df04204cfdea75cadc1bd5f1871092cedd3a2aef7fb939d06e3fb9eca6341229a4292e2ddbfc56ebbbd1
@@ -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.8
4
+ version: 0.171.0
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-21 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.8
19
+ version: 0.171.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.169.8
26
+ version: 0.171.0
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