| 1 | SHELL := $(shell which bash) |
| 2 | .SHELLFLAGS = -xeuEo pipefail -c |
| 3 | .ONESHELL: |
| 4 | |
| 5 | .PHONY: clean test build publish |
| 6 | |
| 7 | clean: |
| 8 | rm -rf build dist || true |
| 9 | |
| 10 | # see https://realpython.com/pypi-publish-python-package/#build-your-package |
| 11 | build: clean |
| 12 | poetry build |
| 13 | |
| 14 | test: |
| 15 | python -m "keyring_pass.__init__" |
| 16 | |
| 17 | # see https://realpython.com/pypi-publish-python-package/#upload-your-package |
| 18 | # poetry config http-basic.pypi __token__ pypi-<api-token> |
| 19 | publish: build |
| 20 | poetry publish |