dependabot-python 0.348.1 → 0.349.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 +4 -4
- data/lib/dependabot/python/update_checker.rb +12 -13
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66f6b25372d11c19099f81f1d871127cf716517d0443426670acd9abc47eb903
|
|
4
|
+
data.tar.gz: b073e04a34595862872b87068a3142767cd677282a997c8d663fb88da293770a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ae38cbd2ae118bfed5f1304164222b38a09dd28a72d63f4e85c5d03a746f425e8473db813e608e66bce20185d91a255d74cd9b79d73df8a48319e24f808012a
|
|
7
|
+
data.tar.gz: f14a2d74671f424ac5f2c8d3d72ed16b6a161614b3de19475c83ef9e89dd9406b39324848496029cc36e06bca92dcdaee469ef403e6abe79799456d9ba4ccfcd
|
|
@@ -336,24 +336,23 @@ module Dependabot
|
|
|
336
336
|
|
|
337
337
|
sig { returns(T::Boolean) }
|
|
338
338
|
def library?
|
|
339
|
-
return
|
|
340
|
-
return false unless library_details
|
|
339
|
+
return @is_library unless @is_library.nil?
|
|
341
340
|
|
|
342
|
-
|
|
341
|
+
@is_library = T.let(check_pypi_for_library_match, T.nilable(T::Boolean))
|
|
342
|
+
@is_library || false
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
sig { returns(T::Boolean) }
|
|
346
|
+
def check_pypi_for_library_match
|
|
347
|
+
return false unless updating_pyproject? && library_details && !T.must(library_details)["name"].nil?
|
|
343
348
|
|
|
344
|
-
|
|
345
|
-
# matching name and description
|
|
346
|
-
index_response = Dependabot::RegistryClient.get(
|
|
349
|
+
response = Dependabot::RegistryClient.get(
|
|
347
350
|
url: "https://pypi.org/pypi/#{normalised_name(T.must(library_details)['name'])}/json/"
|
|
348
351
|
)
|
|
352
|
+
return false unless response.status == 200
|
|
349
353
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
pypi_info = JSON.parse(index_response.body)["info"] || {}
|
|
353
|
-
pypi_info["summary"] == T.must(library_details)["description"]
|
|
354
|
-
rescue Excon::Error::Timeout, Excon::Error::Socket
|
|
355
|
-
false
|
|
356
|
-
rescue URI::InvalidURIError
|
|
354
|
+
(JSON.parse(response.body)["info"] || {})["summary"] == T.must(library_details)["description"]
|
|
355
|
+
rescue Excon::Error::Timeout, Excon::Error::Socket, URI::InvalidURIError
|
|
357
356
|
false
|
|
358
357
|
end
|
|
359
358
|
|
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.
|
|
4
|
+
version: 0.349.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.
|
|
18
|
+
version: 0.349.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.
|
|
25
|
+
version: 0.349.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: debug
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -290,7 +290,7 @@ licenses:
|
|
|
290
290
|
- MIT
|
|
291
291
|
metadata:
|
|
292
292
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
293
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
293
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.349.0
|
|
294
294
|
rdoc_options: []
|
|
295
295
|
require_paths:
|
|
296
296
|
- lib
|