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:
commit
4b1c3484b0
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue