Skip to content

Commit

Permalink
Update Makefile for Poetry (#9)
Browse files Browse the repository at this point in the history
* Update Makefile for Poetry

* Update Makefile

* add `run` target to Makefile

---------

Co-authored-by: M.G.Kishalmi <[email protected]>
  • Loading branch information
ninaspitfire and M.G.Kishalmi authored Nov 21, 2023
1 parent ba21492 commit f5810d5
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit f5810d5

Please sign in to comment.