omegafox/pythonlib/publish.sh
2024-10-31 06:42:47 -05:00

14 lines
282 B
Bash

rm -rf ./dist
rm -rf ./camoufox/*.mmdb
rm -rf ./camoufox/*.png
vermin . --eval-annotations --target=3.8 --violations camoufox/ || exit 1
python -m build
twine check dist/*
read -p "Confirm publish? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
twine upload dist/*
fi