Skip to content

Commit 52ce90a

Browse files
committed
Clean dist dir prior to new build
1 parent 1cbe876 commit 52ce90a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build_check_pyPI.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
#! /bin/sh
2-
python setup.py sdist bdist_wheel
2+
3+
# Clean old files in order to not get "400 Client Error: File already exists."
4+
rm dist/*.tar.gz
5+
rm dist/*.whl
6+
7+
# Build the new distribution
8+
python3 setup.py sdist bdist_wheel
9+
10+
# Check the new distribution for a successful build
311
twine check dist/*

0 commit comments

Comments
 (0)