From b6db502859328ddedb18d37f78a0869b7417231e Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Wed, 13 Dec 2023 18:57:05 -0700 Subject: [PATCH] Update Makefile rules --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index ae0e1aa..f38c54f 100644 --- a/Makefile +++ b/Makefile @@ -51,14 +51,14 @@ clean-test: ## remove test and coverage artifacts rm -fr .pytest_cache lint: ## check style with flake8 - flake8 standard_names standard_names/tests + flake8 standard_names pretty: ## reformat files to make them look pretty find standard_names -name '*.py' | xargs isort - black setup.py standard_names + black standard_names test: ## run tests quickly with the default Python - py.test + pytest -vvv test-all: ## run tests on every Python version with tox tox @@ -73,7 +73,7 @@ docs: ## generate Sphinx HTML documentation, including API docs sphinx-apidoc --force -o docs/api standard_names *tests $(MAKE) -C docs clean $(MAKE) -C docs html - $(BROWSER) docs/_build/html/index.html + $(BROWSER) docs/build/html/index.html changelog: changelog --force --batch @@ -85,9 +85,9 @@ release: dist ## package and upload a release twine upload dist/* dist: clean ## builds source and wheel package - python setup.py sdist - python setup.py bdist_wheel + python -m build ls -l dist + twine check dist/* install: clean ## install the package to the active Python's site-packages - python setup.py install + pip install -e .