add publish.sh to simplify dealing with PyPI

This commit is contained in:
2025-06-12 10:20:47 -07:00
parent 0aa17bfd40
commit 84149f75cf
2 changed files with 8 additions and 1 deletions

3
.gitignore vendored
View File

@@ -2,4 +2,5 @@
partdb-labeler.bat partdb-labeler.bat
partdb_labeler.egg-info partdb_labeler.egg-info
build build
*/__pycache__/* */__pycache__/*
dist

6
publish.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# publish to PyPI
rm -r dist || true
python setup.py sdist bdist_wheel
twine upload dist/*