mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
38 lines
680 B
Makefile
38 lines
680 B
Makefile
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:
|
|
poetry export -f requirements.txt --without-hashes --output requirements.txt
|
|
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/*
|