From 72d8614dcf260aa1c3473390834125c0950d0cb5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 16 Sep 2025 21:48:13 +0100 Subject: [PATCH] Update makefile --- makefile | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/makefile b/makefile index cc48e7e..a16859e 100644 --- a/makefile +++ b/makefile @@ -1,22 +1,32 @@ -.PHONY: test upload clean bootstrap +.PHONY: test test: sh -c '. _virtualenv/bin/activate; py.test tests' _virtualenv/bin/pyflakes precisely tests +.PHONY: test-all + test-all: tox -upload: test-all - python setup.py sdist bdist_wheel upload +.PHONY: upload + +upload: test-all build-dist + _virtualenv/bin/twine upload dist/* make clean -register: - python setup.py register +.PHONY: build-dist + +build-dist: clean + _virtualenv/bin/pyproject-build + +.PHONY: clean clean: rm -f MANIFEST - rm -rf dist + rm -rf build dist + +.PHONY: bootstrap bootstrap: _virtualenv _virtualenv/bin/pip install -e . @@ -29,3 +39,5 @@ _virtualenv: python3 -m venv _virtualenv _virtualenv/bin/pip install --upgrade pip _virtualenv/bin/pip install --upgrade setuptools + _virtualenv/bin/pip install --upgrade wheel + _virtualenv/bin/pip install --upgrade build twine