You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -709,7 +739,7 @@ impl std::fmt::Display for PubGrubHint {
709
739
textwrap::indent(reason," ")
710
740
)
711
741
}
712
-
PubGrubHint::InconsistentVersionMetadata{
742
+
Self::InconsistentVersionMetadata{
713
743
package,
714
744
version,
715
745
reason,
@@ -724,6 +754,23 @@ impl std::fmt::Display for PubGrubHint {
724
754
textwrap::indent(reason," ")
725
755
)
726
756
}
757
+
Self::RequiresPython{
758
+
requires_python,
759
+
package,
760
+
package_set,
761
+
package_requires_python,
762
+
} => {
763
+
write!(
764
+
f,
765
+
"{}{} The `Requires-Python` requirement ({}) defined in your `pyproject.toml` includes Python versions that are not supported by your dependencies (e.g., {} only supports {}). Consider using a more restrictive `Requires-Python` requirement (like {}).",
cannot be used, we can conclude that pygls>=1.1.0 cannot be used.
1005
1005
And because project==0.1.0 depends on pygls>=1.1.0, we can conclude that project==0.1.0 cannot be used.
1006
1006
And because only project==0.1.0 is available and project depends on project, we can conclude that the requirements are unsatisfiable.
1007
+
1008
+
hint: The `Requires-Python` requirement (>=3.7) defined in your `pyproject.toml` includes Python versions that are not supported by your dependencies (e.g., pygls>=1.1.0,<=1.2.1 only supports >=3.7.9, <4). Consider using a more restrictive `Requires-Python` requirement (like >=3.7.9, <4).
1007
1009
"###);
1008
1010
1009
1011
// Require >=3.7, and allow locking to a version of `pygls` that is compatible.
0 commit comments