Switch publishing to pypi to twine
This commit is contained in:
parent
0025a3772b
commit
945b636a86
1 changed files with 16 additions and 2 deletions
18
Makefile
18
Makefile
|
@ -1,6 +1,11 @@
|
||||||
.PHONY: build dist docs
|
.PHONY: build dist docs
|
||||||
VERSION=`python3 setup.py -V`
|
VERSION=`python3 setup.py -V`
|
||||||
|
|
||||||
|
WHL_FILES := $(wildcard dist/*.whl)
|
||||||
|
WHL_ASC := $(WHL_FILES:=.asc)
|
||||||
|
DIST_FILE := $(wildcard dist/*.tar.gz)
|
||||||
|
DIST_ASC := $(DIST_FILE:=.asc)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
python3 setup.py build
|
python3 setup.py build
|
||||||
|
|
||||||
|
@ -35,6 +40,7 @@ clean_all: clean clean_tox clean_test_venv clean_docs clean_eggs
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
python3 setup.py sdist
|
python3 setup.py sdist
|
||||||
|
python3 setup.py bdist_wheel
|
||||||
|
|
||||||
test_venv/bin/python:
|
test_venv/bin/python:
|
||||||
python3 -m venv test_venv
|
python3 -m venv test_venv
|
||||||
|
@ -71,5 +77,13 @@ test_venv/bin/sphinx-build: test_venv
|
||||||
docs: test_venv/bin/sphinx-build
|
docs: test_venv/bin/sphinx-build
|
||||||
bash -c "source test_venv/bin/activate; cd docs; make html"
|
bash -c "source test_venv/bin/activate; cd docs; make html"
|
||||||
|
|
||||||
publish_pypi_release:
|
sign_release: $(WHL_ASC) $(DIST_ASC)
|
||||||
python3 setup.py sdist bdist_wheel upload --sign
|
|
||||||
|
dist/%.asc:
|
||||||
|
gpg --detach-sign -a $(@:.asc=)
|
||||||
|
|
||||||
|
test_venv/bin/twine: test_venv
|
||||||
|
test_venv/bin/pip install twine
|
||||||
|
|
||||||
|
publish_pypi_release: test_venv test_venv/bin/twine dist sign_release
|
||||||
|
test_venv/bin/twine upload --sign dist/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue