add makefile

This commit is contained in:
callebtc
2023-03-15 16:10:11 +01:00
parent e8011a0f78
commit 51156799b9

36
Makefile Normal file
View File

@@ -0,0 +1,36 @@
isort:
poetry run isort --profile black . --skip cashu/nostr
black:
poetry run black . --exclude cashu/nostr
format:
make isort
make black
make mypy
mypy:
poetry run mypy cashu --ignore-missing
clean:
rm -r cashu.egg-info/ || true
find . -name ".DS_Store" -exec rm -f {} \; || true
rm -rf dist || true
rm -rf build || true
package:
make clean
python setup.py sdist bdist_wheel
test:
pytest tests/
install:
make clean
python setup.py sdist bdist_wheel
pip install --upgrade dist/*
upload:
make clean
python setup.py sdist bdist_wheel
twine upload --repository pypi dist/*