aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2021-11-01 19:52:03 +0000
committerMichael Williamson <mike@zwobble.org>2021-11-01 19:55:22 +0000
commitf126cfe73dcf954f647c2af33d5bf68f8babea1b (patch)
treec860efa7413089f2e195821bc3378d4525a07565 /makefile
parentba91bed42994af2425540a60b1797d93347e8900 (diff)
Update makefile
Diffstat (limited to 'makefile')
-rw-r--r--makefile26
1 files changed, 21 insertions, 5 deletions
diff --git a/makefile b/makefile
index 8220ae6..7f44f0d 100644
--- a/makefile
+++ b/makefile
@@ -1,30 +1,43 @@
-.PHONY: test upload clean bootstrap setup
+.PHONY: test
test:
_virtualenv/bin/pyflakes mammoth tests
sh -c '. _virtualenv/bin/activate; nosetests tests'
+.PHONY: test-all
+
test-all:
tox
-upload: setup assert-converted-readme
- _virtualenv/bin/python setup.py sdist bdist_wheel upload
+.PHONY: upload
+
+upload: setup assert-converted-readme build-dist
+ _virtualenv/bin/twine dist/*
make clean
-register: setup
- python setup.py register
+.PHONY: build-dist
+
+build-dist:
+ rm -rf dist
+ _virtualenv/bin/pyproject-build
README: README.md
pandoc --from=markdown --to=rst README.md > README || cp README.md README
+.PHONY: assert-converted-readme
+
assert-converted-readme:
test "`cat README`" != "`cat README.md`"
+.PHONY: clean
+
clean:
rm -f README
rm -f MANIFEST
rm -rf dist
+.PHONY: bootstrap
+
bootstrap: _virtualenv setup
_virtualenv/bin/pip install -e .
ifneq ($(wildcard test-requirements.txt),)
@@ -32,6 +45,8 @@ ifneq ($(wildcard test-requirements.txt),)
endif
make clean
+.PHONY: setup
+
setup: README
_virtualenv:
@@ -39,3 +54,4 @@ _virtualenv:
_virtualenv/bin/pip install --upgrade pip
_virtualenv/bin/pip install --upgrade setuptools
_virtualenv/bin/pip install --upgrade wheel
+ _virtualenv/bin/pip install --upgrade build twine