Use build script

This commit is contained in:
Samuel Sloniker 2023-05-08 11:03:50 -07:00
parent 05e42478b4
commit dbe84b86ec
3 changed files with 10 additions and 4 deletions

View File

@ -1 +0,0 @@
include debian/

10
build.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
rm -rf dist/*
python3 -m build
cd dist/
tar zxf *.tar.gz
directory=$(ls | grep -v .tar.gz | grep -v whl)
rm $directory.tar.gz
cp --recursive ../debian/ $directory
tar czf $directory.tar.gz $directory
rm -r $directory

View File

@ -25,6 +25,3 @@ adsms = "adsms:main"
[tool.setuptools]
packages = ["adsms"]
[tool.poetry]
include = ["debian/"]