From f5810d58bbed122606c10fe153b341ab219317fe Mon Sep 17 00:00:00 2001 From: Nina McLaughlin <119659+jarpy@users.noreply.github.com> Date: Wed, 22 Nov 2023 06:19:56 +1030 Subject: [PATCH] Update Makefile for Poetry (#9) * Update Makefile for Poetry * Update Makefile * add `run` target to Makefile --------- Co-authored-by: M.G.Kishalmi --- Makefile | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 994d600..4bd6f0c 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,30 @@ default: test lint -docs: - pdoc shakersynth +docs: install + poetry run pdoc shakersynth -test: - pytest --cov=shakersynth --cov-report=html +test: install + poetry run pytest --cov=shakersynth --cov-report=html -lint: - flake8 --config=setup.cfg - mypy --config-file=setup.cfg . +lint: install + poetry run flake8 + poetry run mypy . -test-watch: - pytest-watch --beforerun=clear --runner='make' +test-watch: install + poetry run pytest-watch --beforerun=clear --runner='make' clean: rm -rf build dist -package: clean - python3 setup.py sdist bdist_wheel +build: install clean + poetry build -install: package - pip install dist/Shakersynth*.tar.gz +install: + poetry install + +publish: build + poetry publish + +run: build + poetry run shakersynth -publish: package - python3 -m twine upload dist/*