From a77b7585c25375c66f1e83035f95b55c9efd8a58 Mon Sep 17 00:00:00 2001 From: Hugo Briand Date: Mon, 16 Mar 2020 11:07:44 +0100 Subject: [PATCH] fix(deploy): use twine to upload build --- Makefile | 9 ++++++--- publish_requirements.txt | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 publish_requirements.txt diff --git a/Makefile b/Makefile index db53855..abd5c4f 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,9 @@ setup: setup_docs: pip install -r docs/requirements.txt +setup_publish: + pip install -r publish_requirements.txt + build_docs: cd docs && make html @@ -22,6 +25,6 @@ docs: setup_docs build_docs test: setup nosetests -publish: - python setup.py register -r pypi - python setup.py sdist upload -r pypi +publish: setup_publish + python setup.py sdist + twine upload dist/* diff --git a/publish_requirements.txt b/publish_requirements.txt new file mode 100644 index 0000000..af996cf --- /dev/null +++ b/publish_requirements.txt @@ -0,0 +1 @@ +twine