From fb2598a645e3c732e1c4ea046e156713baf4b5f5 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sun, 26 Jan 2020 03:00:40 +0100 Subject: [PATCH] Suggest a way of cleaning dist if non-empty --- noxfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 2151ce37e..19a6eaa00 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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")