Suggest a way of cleaning dist if non-empty

This commit is contained in:
Sviatoslav Sydorenko 2020-01-26 03:00:40 +01:00 committed by Chris Hunt
parent ace7d093b2
commit fb2598a645
1 changed files with 4 additions and 1 deletions

View File

@ -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")