mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-18 23:50:07 +03:00
update-python-libraries: ignore yanked releases on PyPI
This commit is contained in:
parent
c453cb662c
commit
fb39dd6f72
1 changed files with 5 additions and 1 deletions
|
@ -215,7 +215,11 @@ def _get_latest_version_pypi(attr_path, package, extension, current_version, tar
|
|||
url = "{}/{}/json".format(INDEX, package)
|
||||
json = _fetch_page(url)
|
||||
|
||||
versions = json["releases"].keys()
|
||||
versions = {
|
||||
version
|
||||
for version, releases in json["releases"].items()
|
||||
if not all(release["yanked"] for release in releases)
|
||||
}
|
||||
version = _determine_latest_version(current_version, target, versions)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue