Skip to content

Commit 72d8614

Browse files
committed
Update makefile
1 parent f58ce7e commit 72d8614

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

makefile

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
1-
.PHONY: test upload clean bootstrap
1+
.PHONY: test
22

33
test:
44
sh -c '. _virtualenv/bin/activate; py.test tests'
55
_virtualenv/bin/pyflakes precisely tests
66

7+
.PHONY: test-all
8+
79
test-all:
810
tox
911

10-
upload: test-all
11-
python setup.py sdist bdist_wheel upload
12+
.PHONY: upload
13+
14+
upload: test-all build-dist
15+
_virtualenv/bin/twine upload dist/*
1216
make clean
1317

14-
register:
15-
python setup.py register
18+
.PHONY: build-dist
19+
20+
build-dist: clean
21+
_virtualenv/bin/pyproject-build
22+
23+
.PHONY: clean
1624

1725
clean:
1826
rm -f MANIFEST
19-
rm -rf dist
27+
rm -rf build dist
28+
29+
.PHONY: bootstrap
2030

2131
bootstrap: _virtualenv
2232
_virtualenv/bin/pip install -e .
@@ -29,3 +39,5 @@ _virtualenv:
2939
python3 -m venv _virtualenv
3040
_virtualenv/bin/pip install --upgrade pip
3141
_virtualenv/bin/pip install --upgrade setuptools
42+
_virtualenv/bin/pip install --upgrade wheel
43+
_virtualenv/bin/pip install --upgrade build twine

0 commit comments

Comments
 (0)