mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 11:04:19 +01:00
add makefile
This commit is contained in:
36
Makefile
Normal file
36
Makefile
Normal 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/*
|
||||||
Reference in New Issue
Block a user