From 04e4ccc38da5b5a6904f70723bca574e0a3b6c4a Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Mon, 20 Nov 2023 09:13:20 +0100 Subject: [PATCH] scripts/python/module/Makefile.am: arrange for "make tox" Signed-off-by: Jim Klimov --- scripts/python/module/Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/python/module/Makefile.am b/scripts/python/module/Makefile.am index d8d5843d32..9305bd4ed8 100644 --- a/scripts/python/module/Makefile.am +++ b/scripts/python/module/Makefile.am @@ -7,6 +7,13 @@ # (having only shell scripting as a prerequisite suffices for that) all: PyNUTClient +check-local: + @echo "You may want to set up a NUT data server and run 'make tox' here: `pwd`" + +# NOT tying into "make check" because a lot of stars must align for this test: +tox: dist .pypi-tools-tox + tox + EXTRA_DIST = tox.ini NUT_SOURCE_GITREV_NUMERIC = @NUT_SOURCE_GITREV_NUMERIC@ @@ -91,6 +98,11 @@ upload publish: @$(PYTHON) -m pip install build @touch "$@" +.pypi-tools-tox: .pypi-tools-python + @echo " PYPI Prepare Python multi-environment testing tools (tox)" + @$(PYTHON) -m pip install tox + @touch "$@" + # Install via OS packaging or pip? # https://twine.readthedocs.io/en/stable/ .pypi-tools-upload: .pypi-tools-python