Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
Exit during release if package not registered (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwrussell authored May 22, 2017
1 parent 26946db commit 5863a2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions autotag/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def check_unreleased(version, package):
info = requests.get(url)
if not info.ok:
print 'Package not registered on PyPI'
exit(1)
return version not in info.json()['releases'].keys()


Expand Down
1 change: 1 addition & 0 deletions tagsearch/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def check_unreleased(version, package):
info = requests.get(url)
if not info.ok:
print 'Package not registered on PyPI'
exit(1)
return version not in info.json()['releases'].keys()


Expand Down

0 comments on commit 5863a2a

Please sign in to comment.