summaryrefslogtreecommitdiff
path: root/noxfile.py
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-01-21 16:58:04 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-02-03 10:44:56 +0100
commit9f92d3d46569f9855f4ea57186dbcd836009d96b (patch)
tree1192c25ae25af1ecb6d423ce822b761f707253a8 /noxfile.py
parent7534dccd6c436df71482c2c0e9328be248a0df5f (diff)
downloadpip-9f92d3d46569f9855f4ea57186dbcd836009d96b.tar.gz
🔥 Exterminate files that aren't Git-tracked
This is a follow-up improvement for https://github.com/pypa/pip/pull/7624/files
Diffstat (limited to 'noxfile.py')
-rw-r--r--noxfile.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/noxfile.py b/noxfile.py
index 19a6eaa00..09a1d37ea 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -206,9 +206,8 @@ def build_release(session):
session.log("# Checkout the tag")
session.run("git", "checkout", version, external=True, silent=True)
- session.log("# Cleanup build/ before building the wheel")
- if release.have_files_in_folder("build"):
- shutil.rmtree("build")
+ session.log("# Wipe Git-untracked files before building the wheel")
+ session.run("git", "clean", "-fxd", external=True, silent=True)
session.log("# Build distributions")
session.run("python", "setup.py", "sdist", "bdist_wheel", silent=True)