Skip to content

Commit fb507a7

Browse files
committed
Add Makefile targets to build and publish this package to test Pypi
1 parent fff0ab5 commit fb507a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test
1+
.PHONY: test, build
22

33
venv: venv/touchfile
44

@@ -9,3 +9,9 @@ venv/touchfile: requirements.txt
99

1010
test: venv
1111
. venv/bin/activate; PYTHONPATH='./src' python -m unittest
12+
13+
build:
14+
. venv/bin/activate; python3 -m build
15+
16+
release-test:
17+
. venv/bin/activate; python3 -m twine upload --repository testpypi dist/*

0 commit comments

Comments
 (0)