This commit is contained in:
lars 2022-11-15 01:22:25 +01:00
parent 61fd366c3a
commit 5ff2ec5219
2 changed files with 19 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ __pycache__/
*.cache*
/build/*
!/build/build.sh

17
build/build.sh Normal file
View File

@ -0,0 +1,17 @@
# https://packaging.python.org/en/latest/tutorials/packaging-projects/
cd ../src
cp ../README.md README.md
echo "building......"
python3 -m pip install --upgrade build
python3 -m build
echo "cleaning up......."
rm README.md
cd ../build
rm -rf dist
mv ../src/dist .
echo "uploading......."
# python3 -m pip install --upgrade twine
twine upload dist/*