Skip to content

Commit

Permalink
replace deprecated method call
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Jul 13, 2022
1 parent 84ab6ff commit 92dde5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/poetry/packages/locker.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def __walk_dependencies(
requirement = locked_package.to_dependency()
requirement.marker = requirement.marker.intersect(marker)

requirement.set_constraint(constraint)
requirement.constraint = constraint

for require in locked_package.requires:
if require.in_extras and locked_package.features.isdisjoint(
Expand Down
4 changes: 2 additions & 2 deletions src/poetry/puzzle/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,8 @@ def fmt_warning(d: Dependency) -> str:
for dep_any in any_markers_dependencies:
dep_any.marker = inverted_marker
for dep_other in other_markers_dependencies:
dep_other.set_constraint(
dep_other.constraint.intersect(dep_any.constraint)
dep_other.constraint = dep_other.constraint.intersect(
dep_any.constraint
)
elif not inverted_marker.is_empty() and self._python_constraint.allows_any(
get_python_constraint_from_marker(inverted_marker)
Expand Down

0 comments on commit 92dde5b

Please sign in to comment.