Files
zshrc/scripts/bin/deploy-pypi
T
Azalea (on HyDEV-Daisy) 2548fa8ec4 [U] Scripts
2022-08-01 12:26:39 -04:00

20 lines
340 B
Bash
Executable File

#!/usr/bin/env bash
# Stop on error
set -e
# Check if setup.py is present
[[ ! -f "setup.py" ]] && echo "Setup.py not found, please make sure you're in the correct path" && exit -1
# Remove old build
rm -rf dist
rm -rf build
# Build
python setup.py sdist bdist_wheel
# Check built files
twine check dist/*
# Upload
twine upload dist/*