Skip to content

Commit

Permalink
Use PyPI again to retrieve releases metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Sep 17, 2018
1 parent fb9ceee commit 8c31f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Installer:

CURRENT_PYTHON = sys.executable
CURRENT_PYTHON_VERSION = sys.version_info[:2]
METADATA_URL = "https://api.github.com/repos/sdispater/poetry/releases"
METADATA_URL = "https://pypi.org/pypi/poetry/json"
VERSION_REGEX = re.compile(
"v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:\.(\d+))?"
"("
Expand Down Expand Up @@ -350,7 +350,7 @@ def _compare_versions(x, y):

print("")
releases = sorted(
[m["tag_name"] for m in metadata], key=cmp_to_key(_compare_versions)
metadata["releases"].keys(), key=cmp_to_key(_compare_versions)
)

if self._version and self._version not in releases:
Expand Down

0 comments on commit 8c31f92

Please sign in to comment.