Commit b136c5b6 by Sébastien Eustace

Fix custom repositories behavior

parent 2c2b3935
......@@ -7,6 +7,8 @@
- Fixed handling of duplicate dependencies with different constraints.
- Fixed detection of new prereleases.
- Fixed unsafe packages being locked.
- Fixed versions detection in custom repositories.
- Fixed package finding with multiple custom repositories.
## [0.10.3] - 2018-06-04
......
......@@ -95,7 +95,7 @@ class Page:
link = Link(url, self, requires_python=pyrequire)
if link.ext == ".egg":
if link.ext not in [".tar.gz", ".whl", ".zip"]:
continue
yield link
......@@ -182,7 +182,7 @@ class LegacyRepository(PyPiRepository):
else:
page = self._get("/{}".format(canonicalize_name(name).replace(".", "-")))
if page is None:
raise ValueError('No package named "{}"'.format(name))
return []
versions = []
for version in page.versions:
......@@ -201,6 +201,11 @@ class LegacyRepository(PyPiRepository):
packages.append(package)
self._log(
"{} packages found for {} {}".format(len(packages), name, str(constraint)),
level="debug",
)
return packages
def package(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment