Skip to content

Commit 9b96c7b

Browse files
committed
Switch to tox in make as well
1 parent 9723f41 commit 9b96c7b

File tree

7 files changed

+16
-4
lines changed

7 files changed

+16
-4
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changelog
44
5.1 (unreleased)
55
----------------
66

7-
- Nothing changed yet.
7+
- check-manifest was missing from the requirements list.
88

99

1010
5.0 (2025-07-15)

Makefile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.PHONY: docs
1+
root_dir := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
2+
bin_dir := $(root_dir)/ve/bin
23

34
define PRINT_HELP_PYSCRIPT
45
import re, sys
@@ -11,15 +12,25 @@ for line in sys.stdin:
1112
endef
1213
export PRINT_HELP_PYSCRIPT
1314

15+
all: devenv test
16+
17+
.PHONY: docs
18+
19+
devenv: ve/bin/fullrelease
20+
21+
ve/bin/fullrelease:
22+
virtualenv ve
23+
$(bin_dir)/pip install -e .[test]
24+
1425
help: ## display this message
1526
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
1627

1728
generate: ## generate environment for tests
1829
cd pyroma/testdata/complete;python setup.py sdist --formats=bztar,gztar,tar,zip
1930
cp pyroma/testdata/complete/dist/complete-1.0.dev1.* pyroma/testdata/distributions/
2031

21-
tests: generate ## run tests
22-
python -m unittest pyroma.tests
32+
tests: devenv generate ## run tests
33+
tox -e py
2334

2435
clean: clean-pyc ## remove all
2536

0 Bytes
Binary file not shown.
1 Byte
Binary file not shown.
12 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test =
5252
setuptools>=60
5353
zest.releaser[recommended]
5454
flit_core>=3.4,<4
55+
tox
5556
5657
[options.entry_points]
5758
console_scripts =

0 commit comments

Comments
 (0)