mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Make nox upload-release work on Windows
This commit is contained in:
parent
803a6f2017
commit
8d79644170
|
@ -274,11 +274,12 @@ def upload_release(session):
|
||||||
f"Remove dist/ and run 'nox -s build-release -- {version}'"
|
f"Remove dist/ and run 'nox -s build-release -- {version}'"
|
||||||
)
|
)
|
||||||
# Sanity check: Make sure the files are correctly named.
|
# Sanity check: Make sure the files are correctly named.
|
||||||
|
distfile_names = [os.path.basename(f) for f in distribution_files]
|
||||||
expected_distribution_files = [
|
expected_distribution_files = [
|
||||||
f"dist/pip-{version}-py2.py3-none-any.whl",
|
f"pip-{version}-py2.py3-none-any.whl",
|
||||||
f"dist/pip-{version}.tar.gz",
|
f"pip-{version}.tar.gz",
|
||||||
]
|
]
|
||||||
if sorted(distribution_files) != sorted(expected_distribution_files):
|
if sorted(distfile_names) != sorted(expected_distribution_files):
|
||||||
session.error(
|
session.error(
|
||||||
f"Distribution files do not seem to be for {version} release."
|
f"Distribution files do not seem to be for {version} release."
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue