From 6063601de58825f4bec1977b7b98c6a3da7137fa Mon Sep 17 00:00:00 2001 From: Ben Lopatin Date: Thu, 18 Aug 2016 13:06:20 -0400 Subject: [PATCH] Use twine for release --- Makefile | 13 ++++++++----- requirements-dev.txt | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fee9d228..299f5fa1 100644 --- a/Makefile +++ b/Makefile @@ -60,15 +60,18 @@ test-coverage: clean-test test-all: tox + check: clean-build clean-pyc clean-test lint test-coverage -release: clean - python setup.py sdist upload - python setup.py bdist_wheel upload +build: clean ## Create distribution files for release + python setup.py sdist bdist_wheel + +release: build ## Create distribution files and publish to PyPI + python setup.py check -r -s + twine upload dist/* -dist: clean +sdist: clean ##sdist Create source distribution only python setup.py sdist - python setup.py bdist_wheel ls -l dist docs: diff --git a/requirements-dev.txt b/requirements-dev.txt index 54e35f00..a83f1fa7 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,3 +2,4 @@ Sphinx tox wheel +twine