Commit 92dde5bc by Randy Döring

replace deprecated method call

parent 84ab6ff0
...@@ -269,7 +269,7 @@ class Locker: ...@@ -269,7 +269,7 @@ class Locker:
requirement = locked_package.to_dependency() requirement = locked_package.to_dependency()
requirement.marker = requirement.marker.intersect(marker) requirement.marker = requirement.marker.intersect(marker)
requirement.set_constraint(constraint) requirement.constraint = constraint
for require in locked_package.requires: for require in locked_package.requires:
if require.in_extras and locked_package.features.isdisjoint( if require.in_extras and locked_package.features.isdisjoint(
......
...@@ -697,8 +697,8 @@ class Provider: ...@@ -697,8 +697,8 @@ class Provider:
for dep_any in any_markers_dependencies: for dep_any in any_markers_dependencies:
dep_any.marker = inverted_marker dep_any.marker = inverted_marker
for dep_other in other_markers_dependencies: for dep_other in other_markers_dependencies:
dep_other.set_constraint( dep_other.constraint = dep_other.constraint.intersect(
dep_other.constraint.intersect(dep_any.constraint) dep_any.constraint
) )
elif not inverted_marker.is_empty() and self._python_constraint.allows_any( elif not inverted_marker.is_empty() and self._python_constraint.allows_any(
get_python_constraint_from_marker(inverted_marker) get_python_constraint_from_marker(inverted_marker)
......
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