Skip to content

Commit

Permalink
🔥 Exterminate files that aren't Git-tracked
Browse files Browse the repository at this point in the history
This is a follow-up improvement for
https://github.com/pypa/pip/pull/7624/files
  • Loading branch information
webknjaz committed Jan 21, 2020
1 parent ea7def8 commit 0770130
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,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)
Expand Down

0 comments on commit 0770130

Please sign in to comment.