Skip to content

Commit

Permalink
Fix is_disjoint check for supported environments
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Aug 31, 2024
1 parent 83467f0 commit 1becab3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/uv-resolver/src/requires_python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl RequiresPython {

/// Returns the [`RequiresPython`] as a [`MarkerTree`].
pub fn markers(&self) -> MarkerTree {
match (self.range.0.as_ref(), self.range.0.as_ref()) {
match (self.range.0.as_ref(), self.range.1.as_ref()) {
(Bound::Included(lower), Bound::Included(upper)) => {
let mut lower = MarkerTree::expression(MarkerExpression::Version {
key: MarkerValueVersion::PythonFullVersion,
Expand Down Expand Up @@ -190,6 +190,7 @@ impl RequiresPython {
})
}
(Bound::Included(lower), Bound::Unbounded) => {
println!("lower: {lower:?}");
MarkerTree::expression(MarkerExpression::Version {
key: MarkerValueVersion::PythonFullVersion,
specifier: VersionSpecifier::greater_than_equal_version(lower.clone()),
Expand Down

0 comments on commit 1becab3

Please sign in to comment.