Files
nutshell/Makefile
dni ⚡ c7dd582b56 FEAT: improve on workflows and makefile (#276)
* FEAT: improve on workflows and makefile

* update to poetry 1.5.1

* caching needs newer python task

quickfix
2023-07-18 00:13:39 +02:00

46 lines
893 B
Makefile

isort:
poetry run isort --profile black . --skip cashu/nostr
isort-check:
poetry run isort --profile black --check-only . --skip cashu/nostr
black:
poetry run black . --exclude cashu/nostr
black-check:
poetry run black --check . --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:
poetry export -f requirements.txt --without-hashes --output requirements.txt
make clean
python setup.py sdist bdist_wheel
test:
LIGHTNING=false \
TOR=false \
poetry run pytest tests --cov-report xml --cov cashu
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/*