Commit c963e17a by Sébastien Eustace

Fix unsafe packages being locked

parent 92e664d1
......@@ -6,6 +6,7 @@
- Fixed handling of duplicate dependencies with different constraints.
- Fixed detection of new prereleases.
- Fixed unsafe packages being locked.
## [0.10.3] - 2018-06-04
......
......@@ -275,6 +275,10 @@ class Provider:
else:
dependencies = package.requires
dependencies = [
dep for dep in dependencies if dep.name not in self.UNSAFE_PACKAGES
]
if not self._package.python_constraint.allows_any(package.python_constraint):
return [
Incompatibility(
......
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