Skip to content

Commit

Permalink
Bump version to 1.8.1
Browse files Browse the repository at this point in the history
Add a little more logic to keep the old fast behaviour for a little
while.
  • Loading branch information
sigmavirus24 committed Aug 8, 2016
1 parent 6fbe7e7 commit 5497691
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
Changelog
=========

* :release:`1.8.1 <2016-08-09>`

* Check if a package exists if the URL is one of:

- ``https://pypi.python.org/pypi/``
- ``https://upload.pypi.org/``
- ``https://upload.pypi.io/``

This helps people with ``https://upload.pypi.io`` still in their .pypirc
file.

* :release:`1.8.0 <2016-08-08>`

* :feature:`201` Switch from upload.pypi.io to upload.pypi.org.
Expand Down
2 changes: 1 addition & 1 deletion twine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
__summary__ = "Collection of utilities for interacting with PyPI"
__uri__ = "https://github.com/pypa/twine"

__version__ = "1.8.0"
__version__ = "1.8.1"

__author__ = "Donald Stufft and individual contributors"
__email__ = "[email protected]"
Expand Down
3 changes: 2 additions & 1 deletion twine/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

LEGACY_PYPI = 'https://pypi.python.org/'
WAREHOUSE = 'https://upload.pypi.org/'
OLD_WAREHOUSE = 'https://upload.pypi.io/'


class Repository(object):
Expand Down Expand Up @@ -158,7 +159,7 @@ def upload(self, package, max_redirects=5):
def package_is_uploaded(self, package, bypass_cache=False):
# NOTE(sigmavirus24): Not all indices are PyPI and pypi.io doesn't
# have a similar interface for finding the package versions.
if not self.url.startswith((LEGACY_PYPI, WAREHOUSE)):
if not self.url.startswith((LEGACY_PYPI, WAREHOUSE, OLD_WAREHOUSE)):
return False

safe_name = package.safe_name
Expand Down

0 comments on commit 5497691

Please sign in to comment.