diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..61308cb --- /dev/null +++ b/Makefile @@ -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/*