You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# set COVERALLS_REPO_TOKEN=<repo token> environment variable to report coverage
# after running tests
.PHONY: test
test:
poetry install
poetry run pytest --cov=ocflib --cov-report=term-missing
ifneq ($(strip $(COVERALLS_REPO_TOKEN)),)
poetry run coveralls
endif
.PHONY: release-pypi
release-pypi: clean autoversion
poetry build
twine upload dist/*
.PHONY: builddeb
builddeb: autoversion
dpkg-buildpackage -us -uc
.PHONY: package
package: package_bookworm
.PHONY: package_%
package_%:
docker run -e "DIST_UID=$(shell id -u)" -e "DIST_GID=$(shell id -g)" -v $(CURDIR):/mnt:rw "docker.ocf.berkeley.edu/theocf/debian:$*" /mnt/build-in-docker "$*"
.PHONY: clean
clean:
rm -rf dist deb_dist dist_*
# PEP440 sets terrible restrictions on public version schemes which prohibit:
# - appending a SHA
# - leading zeros before version components (e.g. "09" for September becomes "9")
# Unfortunately, PyPI enforces these restrictions.