Skip to content

Commit

Permalink
fix to_release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Trifonov committed Dec 20, 2017
1 parent 775825d commit e0cd202
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion to_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'


Expand Down

0 comments on commit e0cd202

Please sign in to comment.