Change build.sh to Makefile

This commit is contained in:
Augusto Gunsch 2021-11-19 19:42:09 -03:00
parent 7e0df73933
commit f1ac52f50a
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 14 additions and 6 deletions

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
dist: setup.cfg pyproject.toml
rm -rfv src/fsub.egg-info
rm -rfv dist
python3 -m build
upload: dist
python3 -m twine upload --repository pypi dist/*
check:
python3 -m unittest tests
clean:
rm -rfv tests/__pycache__
rm -rfv src/fsub/__pycache__

View File

@ -1,6 +0,0 @@
#!/bin/sh
rm -rv dist
python3 -m build
# Upload to PyPI with:
# python3 -m twine upload --repository pypi dist/*