sporestack-python/Makefile

32 lines
626 B
Makefile
Raw Permalink Normal View History

format:
black .
ruff check --fix .
2022-02-10 21:47:57 +00:00
test:
black --check .
ruff check .
2024-01-18 20:28:39 +00:00
$(MAKE) test-typing
2022-02-10 21:47:57 +00:00
$(MAKE) test-pytest
2024-01-18 20:28:39 +00:00
test-typing:
mypy
2022-02-10 21:47:57 +00:00
test-pytest:
python -m pytest --cov=sporestack --cov-fail-under=39 --cov-report=term --durations=3 --cache-clear
2022-02-10 21:47:57 +00:00
build-dist:
rm dist/* || true
# This should result in a reproducible wheel.
2022-04-22 01:10:34 +00:00
SOURCE_DATE_EPOCH=$$(git log -1 --format=%ct) flit build
# This shouldn't be needed often, but is nice for validation.
twine-check:
twine check --strict dist/*
2022-02-10 21:47:57 +00:00
servedocs:
pdoc sporestack
publish: build-dist
# The sdist isn't reproducible, but the wheel is.
python -m twine upload dist/*