Skip to content

Commit

Permalink
Add another conditional to resolve the release for version-specific p…
Browse files Browse the repository at this point in the history
…ackages. Fixes #3448.
  • Loading branch information
jaraco committed Jul 14, 2022
1 parent 128751e commit 6a1782a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/tests/integration/test_pip_install_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def retrieve_pypi_sdist_metadata(package, version):
raise ValueError(f"Release for {package} {version} was yanked")

version = metadata["info"]["version"]
release = metadata["releases"][version]
release = metadata["releases"][version] if version is LATEST else metadata["urls"]
dists = [d for d in release if d["packagetype"] == "sdist"]
if len(dists) == 0:
raise ValueError(f"No sdist found for {package} {version}")
Expand Down

0 comments on commit 6a1782a

Please sign in to comment.