From c0241774f027c6adf577d8648d914287a0cb250b Mon Sep 17 00:00:00 2001 From: Scott Chamberlain Date: Sun, 27 Mar 2022 06:58:27 -0700 Subject: [PATCH] update make commands, avoid setup.py flow --- Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index e6603f0..7dbc898 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,8 @@ all: build install .PHONY: build install test docs distclean dist upload -build: - python3 setup.py build - install: - python3 setup.py install + pip install . test: pytest --record-mode=once --cov-report term --cov=habanero test/ @@ -17,14 +14,15 @@ test_no_vcr: docs: cd docs;\ make html - # open _build/html/index.html -distclean: - rm dist/* +opendocs: + open docs/_build/html/index.html + +clean: + rm -rf dist/* build/* dist: - python3 setup.py sdist - python3 setup.py bdist_wheel --universal + python3 -m build --sdist --wheel register: python3 setup.py register