1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Minor updates to noxfile.py (#7330)

This commit is contained in:
Pradyun Gedam 2019-11-11 11:19:16 +05:30 committed by GitHub
commit 4b1c3484b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ def should_update_common_wheels():
# completely to nox for all our automation. Contributors should prefer using # completely to nox for all our automation. Contributors should prefer using
# `tox -e ...` until this note is removed. # `tox -e ...` until this note is removed.
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "pypy"]) @nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8", "pypy", "pypy3"])
def test(session): def test(session):
# Get the common wheels. # Get the common wheels.
if should_update_common_wheels(): if should_update_common_wheels():
@ -87,6 +87,8 @@ def test(session):
# Build source distribution # Build source distribution
sdist_dir = os.path.join(session.virtualenv.location, "sdist") sdist_dir = os.path.join(session.virtualenv.location, "sdist")
if os.path.exists(sdist_dir):
shutil.rmtree(sdist_dir, ignore_errors=True)
session.run( session.run(
"python", "setup.py", "sdist", "python", "setup.py", "sdist",
"--formats=zip", "--dist-dir", sdist_dir, "--formats=zip", "--dist-dir", sdist_dir,