Skip to content

Commit

Permalink
scripts/python/module/Makefile.am: arrange for "make tox"
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Nov 20, 2023
1 parent 363e524 commit 04e4ccc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/python/module/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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@
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 04e4ccc

Please sign in to comment.