-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Makefile for Poetry * Update Makefile * add `run` target to Makefile --------- Co-authored-by: M.G.Kishalmi <[email protected]>
- Loading branch information
1 parent
ba21492
commit f5810d5
Showing
1 changed file
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |