dependabot-python 0.169.6 → 0.170.1

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: 7be0818620b032a291ee939d1d83321e2f086dbf836aaf343f621842538e85d0
4
- data.tar.gz: e668d6506ef21fda725e03bf9039f129fe958ed5030a6eadaa369e711f82bf96
3
+ metadata.gz: 51e14d8a363b2aa97b5ace28f81b8d6d85cdcbcd7ef8ab6bbd3c144e4a5cd550
4
+ data.tar.gz: a7f32263dbcd9611c8cc008270e8926a7963355ab57101c3cef285ca232255ac
5
5
  SHA512:
6
- metadata.gz: dbfcce0ca3dc73b2fb9032fac32c9320a731e597d198799e6c0f28f59b0586880461e232411e4ac30fb522d7180c7f32229631d68d989f4f404542e63e4f856c
7
- data.tar.gz: 865b2dc1e0bf8a6cae02979b7fe08e8047c71f451b50b45d6e50e6ac1557324d9d04bc7ae36f96248062e8759e4f887bfb5ac9145090bb860cfc474f3d2d5b68
6
+ metadata.gz: eb5afe040941df87dbeadddcd537d8fc35950a24c2f2753f82bcc8f8d9a5075f142a812b51b1b0daa0964a1128ff15cc4c762163d06e9765c7758b877da5d9ad
7
+ data.tar.gz: 2f0217dbe3d828dc276d8aebdb3f30e3861cea5835d149b08e4d3b23cc8c2f5549ec4317978512a737b6e8fd0f20d239ab02f2fd8b7636ce96a55f84b893f3ef
@@ -5,7 +5,7 @@ hashin==0.15.0
5
5
  pipenv==2021.11.23
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"]
@@ -11,7 +11,7 @@ module Dependabot
11
11
  # the Dependabot container.
12
12
  SUPPORTED_VERSIONS = %w(
13
13
  3.10.0
14
- 3.9.7 3.9.6 3.9.5 3.9.4 3.9.2 3.9.1 3.9.0
14
+ 3.9.9 3.9.8 3.9.7 3.9.6 3.9.5 3.9.4 3.9.2 3.9.1 3.9.0
15
15
  3.8.12 3.8.11 3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 3.8.2 3.8.1 3.8.0
16
16
  3.7.12 3.7.11 3.7.10 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0
17
17
  3.6.15 3.6.14 3.6.13 3.6.12 3.6.11 3.6.10 3.6.9 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3
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.6
4
+ version: 0.170.1
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-13 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.6
19
+ version: 0.170.1
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.6
26
+ version: 0.170.1
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