11.PHONY : clean clean-test clean-pyc clean-build docs help
22.DEFAULT_GOAL := help
33
4+ MESON_BUILD_DIR ?= builddir
5+
46define BROWSER_PYSCRIPT
57import os, webbrowser, sys
68
@@ -32,11 +34,12 @@ help:
3234clean : clean-build clean-pyc clean-test # # remove all build, test, coverage and Python artifacts
3335
3436clean-build : # # remove build artifacts
35- rm -fr build/
36- rm -fr dist/
37- rm -fr .eggs/
38- find . -name ' *.egg-info' -exec rm -fr {} +
39- find . -name ' *.egg' -exec rm -f {} +
37+ rm -fr build/
38+ rm -fr dist/
39+ rm -fr $(MESON_BUILD_DIR)/
40+ rm -fr .eggs/
41+ find . -name '*.egg-info' -exec rm -fr {} +
42+ find . -name '*.egg' -exec rm -f {} +
4043
4144clean-pyc : # # remove Python file artifacts
4245 find . -name ' *.pyc' -exec rm -f {} +
@@ -60,7 +63,7 @@ test-all: ## run tests on every Python version with tox
6063 tox
6164
6265coverage : # # check code coverage quickly with the default Python
63- coverage run --source dtw setup.py test
66+ coverage run --source dtw -m pytest
6467 coverage report -m
6568 coverage html
6669 $(BROWSER ) htmlcov/index.html
@@ -80,13 +83,12 @@ servedocs: docs ## compile the docs watching for changes
8083release : dist # # package and upload a release
8184 twine upload dist/*
8285
83- dist : clean # # builds source and wheel package
84- python setup.py sdist
85- python setup.py bdist_wheel
86- ls -l dist
86+ dist : clean # # builds source and wheel package using the Meson backend
87+ python -m build
88+ ls -l dist
8789
8890install : clean # # install the package to the active Python's site-packages
89- python setup.py install
91+ python -m pip install .
9092
9193
9294docstrings :
0 commit comments