From 3bbafc486b96f719cdb00d0712d7b1673ab9e284 Mon Sep 17 00:00:00 2001 From: Christian Vogelgsang Date: Wed, 18 Jan 2023 10:59:05 +0100 Subject: [PATCH] updated Makefile --- Makefile | 17 +++++------------ requirements-dev.txt | 2 +- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index bd3297d..7a24acf 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,6 @@ SHOW_CMD = open help: @echo "init initialize project" - @echo "init_user initialize project (--user mode)" @echo "build build native extension" @echo @echo "format format source code with black" @@ -35,7 +34,7 @@ help: @echo "install install package" @echo "sdist build source dist" @echo "bdist build bin dist wheel" - @echo "upload upload dist with twin to pypi" + @echo "upload upload sdist with twine to pypi" init: $(PIP) install --upgrade setuptools pip @@ -43,12 +42,6 @@ init: $(PIP) install --upgrade -r requirements-test.txt $(PIP) install --upgrade --editable . -init_user: - $(PIP) install --user --upgrade setuptools pip - $(PIP) install --user --upgrade -r requirements-dev.txt - $(PIP) install --user --upgrade -r requirements-test.txt - $(PIP) install --user --upgrade --editable . - build: $(PYTHON) setup.py build_ext -i @@ -57,7 +50,7 @@ format: # testing test: - $(PYTHON) setup.py test + ./local-tox # doc docs: @@ -86,13 +79,13 @@ clean_ext: # install, distrib install: - $(PYTHON) setup.py install + $(PIP) install --upgrade --editable . sdist: - $(PYTHON) setup.py sdist --formats=zip + $(PYTHON) -m build -s bdist: - $(PYTHON) setup.py bdist_wheel + $(PYTHON) -m build -w upload: sdist twine upload dist/* diff --git a/requirements-dev.txt b/requirements-dev.txt index e83c91d..6496e3c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,4 +3,4 @@ sphinx twine tox black - +build