Commit c426192e by Sébastien Eustace

Fix resolution with bad (empty) releases

parent 749ebc02
# Change Log # Change Log
## [Unreleased]
### Fixed
- Fixed resolution with bad (empty) releases.
## [0.8.0] - 2018-04-13 ## [0.8.0] - 2018-04-13
### Added ### Added
......
...@@ -89,6 +89,10 @@ class PyPiRepository(Repository): ...@@ -89,6 +89,10 @@ class PyPiRepository(Repository):
versions = [] versions = []
for version, release in info['releases'].items(): for version, release in info['releases'].items():
if not release:
# Bad release
continue
if ( if (
not constraint not constraint
or (constraint and constraint.matches(Constraint('=', version))) or (constraint and constraint.matches(Constraint('=', version)))
......
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