This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Return `true` for the excluded `.dev0` upper bounds used to desugar compatible releases.
///
/// For example, `~=3.6` becomes `>=3.6,<4.dev0`. The `<4.dev0` boundary preserves PEP 440's
Expand Down
Expand Up
@@ -1963,16 +2022,19 @@ impl std::fmt::Display for PubGrubHint {
package_set,
package_requires_python,
} => {
let package = PubGrubPackage::base(name.clone());
let package_range = PackageRange::compatibility(&package, package_set, None);
let supports = if package_range.plural() {
"support"
} else {
"supports"
};
write!(
f,
"The `requires-python` value ({}) includes Python versions that are not supported by your dependencies (e.g., {} only supports {}). Consider using a more restrictive `requires-python` value (like {}).",
"The `requires-python` value ({}) includes Python versions that are not supported by your dependencies (e.g., {} only {} {}). Consider using a more restrictive `requires-python` value (like {}).",
requires_python.cyan(),
PackageRange::compatibility(
&PubGrubPackage::base(name.clone()),
package_set,
None,
)
.cyan(),
package_range.cyan(),
supports,
package_requires_python.cyan(),
package_requires_python.cyan(),
)
Expand All
@@ -1984,16 +2046,19 @@ impl std::fmt::Display for PubGrubHint {
package_set,
package_requires_python,
} => {
let package = PubGrubPackage::base(name.clone());
let package_range = PackageRange::compatibility(&package, package_set, None);
let supports = if package_range.plural() {
"support"
} else {
"supports"
};
write!(
f,
"The `--python-version` value ({}) includes Python versions that are not supported by your dependencies (e.g., {} only supports {}). Consider using a higher `--python-version` value.",
"The `--python-version` value ({}) includes Python versions that are not supported by your dependencies (e.g., {} only {} {}). Consider using a higher `--python-version` value.",
requires_python.cyan(),
PackageRange::compatibility(
&PubGrubPackage::base(name.clone()),
package_set,
None,
)
.cyan(),
package_range.cyan(),
supports,
package_requires_python.cyan(),
)
}
Expand All
@@ -2004,15 +2069,18 @@ impl std::fmt::Display for PubGrubHint {
package_set,
package_requires_python,
} => {
let package = PubGrubPackage::base(name.clone());
let package_range = PackageRange::compatibility(&package, package_set, None);
let supports = if package_range.plural() {
"support"
} else {
"supports"
};
write!(
f,
"The Python interpreter uses a Python version that is not supported by your dependencies (e.g., {} only supports {}). Consider passing a `--python-version` value to raise the minimum supported version.",
PackageRange::compatibility(
&PubGrubPackage::base(name.clone()),
package_set,
None,
)
.cyan(),
"The Python interpreter uses a Python version that is not supported by your dependencies (e.g., {} only {} {}). Consider passing a `--python-version` value to raise the minimum supported version.",
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widen unavailable versions across gaps in the known versions #20804
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Widen unavailable versions across gaps in the known versions #20804
Filter by extension
Viewed files
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.