Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pipoe/pipoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def fetch_requirements_from_remote_package(info, version):
""" Looks up requires_dist from an actual package """

# Version must exists, otherwise previous steps failed
pkg_versions = info["releases"][version]
pkg_versions = info["urls"]

# If we must fetch a package, lets fetch the smallest one
pkg_url = sorted(pkg_versions, key=pkg_size, reverse=False)[0]["url"]
Expand Down Expand Up @@ -358,7 +358,7 @@ def get_package_info(
pv = []
v = version.split('.')
print("fuzzy version {} ".format(v))
for i in info["releases"]:
for i in info["urls"]:
tv = i.split('.')
found=True
for j in enumerate(v):
Expand Down Expand Up @@ -389,7 +389,7 @@ def get_package_info(

try:
version_info = next(
i for i in info["releases"][version] if i["packagetype"] == "sdist"
i for i in info["urls"] if i["packagetype"] == "sdist"
)
except:
raise Exception("No sdist package can be found.")
Expand Down