From e0cd20237e9b291e8e92f3568c742d53263667c4 Mon Sep 17 00:00:00 2001 From: Mikhail Trifonov Date: Wed, 20 Dec 2017 17:39:43 +0300 Subject: [PATCH] fix to_release script --- to_release.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/to_release.py b/to_release.py index b7ed902..e14a7a6 100755 --- a/to_release.py +++ b/to_release.py @@ -88,9 +88,12 @@ def run_tests(pyv='2.7'): def upload_to_pip(): - command = sudo(python('setup.py register sdist upload')) + command = sudo(python('setup.py sdist')) exit_code = call(command) + if not exit_code: + call('twine upload dist/*') + assert exit_code == 0, 'Upload to pip error'