-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
In the latest release, the integration tests failed.
_____________________ test_install_sdist[kiwisolver-1.3.2] _____________________
package = 'kiwisolver', version = '1.3.2'
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_install_sdist_kiwisolver_0')
venv_python = '/tmp/pytest-of-runner/pytest-0/test_install_sdist_kiwisolver_0/.venv/bin/python'
setuptools_wheel = PosixPath('/tmp/pytest-of-runner/pytest-0/wheel_build/setuptools-63.2.0.post20220713-py3-none-any.whl')
@pytest.mark.parametrize('package, version', EXAMPLES)
@pytest.mark.uses_network
def test_install_sdist(package, version, tmp_path, venv_python, setuptools_wheel):
venv_pip = (venv_python, "-m", "pip")
> sdist = retrieve_sdist(package, version, tmp_path)
setuptools/tests/integration/test_pip_install_sdist.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
setuptools/tests/integration/test_pip_install_sdist.py:145: in retrieve_sdist
dist = retrieve_pypi_sdist_metadata(package, version)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
package = 'kiwisolver', version = '1.3.2'
def retrieve_pypi_sdist_metadata(package, version):
# https://warehouse.pypa.io/api-reference/json.html
id_ = package if version is LATEST else f"{package}/{version}"
with urlopen(f"[https://pypi.org/pypi/{id_}/json](https://pypi.org/pypi/%7Bid_%7D/json)") as f:
metadata = json.load(f)
if metadata["info"]["yanked"]:
raise ValueError(f"Release for {package} {version} was yanked")
version = metadata["info"]["version"]
> release = metadata["releases"][version]
E KeyError: 'releases'
Metadata
Metadata
Assignees
Labels
No labels