Skip to content

Commit

Permalink
Merge pull request #7665 from webknjaz/misc/nox-build-cleanup-suggestion
Browse files Browse the repository at this point in the history
Suggest a way of cleaning dist if non-empty
  • Loading branch information
chrahunt authored Feb 2, 2020
2 parents f58ec83 + fb2598a commit a635e0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ def build_release(session):

session.log("# Ensure no files in dist/")
if release.have_files_in_folder("dist"):
session.error("There are files in dist/. Remove them and try again")
session.error(
"There are files in dist/. Remove them and try again. "
"You can use `git clean -fxdi -- dist` command to do this"
)

session.log("# Install dependencies")
session.install("setuptools", "wheel", "twine")
Expand Down

0 comments on commit a635e0d

Please sign in to comment.