-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
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
Misleading PackageWarning
when adding a package (myst-nb==1.0.0
) with a version free dependency (ipython
) whose requires-python
range is not satisfied on the latest version
#2522
Comments
PackageWarning
when adding a package (myst-nb==1.0.0
) with a version free dependency (ipython
) who's require-python
range is not satisfied on the latest versionPackageWarning
when adding a package (myst-nb==1.0.0
) with a version free dependency (ipython
) who's requires-python
range is not satisfied on the latest version
PackageWarning
when adding a package (myst-nb==1.0.0
) with a version free dependency (ipython
) who's requires-python
range is not satisfied on the latest versionPackageWarning
when adding a package (myst-nb==1.0.0
) with a version free dependency (ipython
) whose requires-python
range is not satisfied on the latest version
This is a frequently asked question by users: Why did it install version 1.24 when the latest version of I know people have different expectations on the same result, but please do not interrogate with an unquestionable tone. |
Hello, first my apologies for the tone, I really didn’t want to sound harsh or else. Thanks for the clarification, I understand know why the warning exists in the first place. I think I didn’t expect it because I previously used Poetry which does not seem to output such kind of warning. If I may, I would suggest to rephrase a bit the warning like so: latest available version for package P (x.y.z) could not be installed the specified Python version requirements. Instead, the latest version of that package that supports your Python range will be installed. |
Can you submit a PR for this and I can review. |
Sure, done :-) |
PackageWarning
when adding a package (myst-nb==1.0.0
) with a version free dependency (ipython
) whose requires-python
range is not satisfied on the latest versionPackageWarning
when adding a package (myst-nb==1.0.0
) with a version free dependency (ipython
) whose requires-python
range is not satisfied on the latest version
* chore(lib): enhance warning message Closes #2522. * chore(lib): fix message to be more correct
Steps to reproduce
Just add
myst-nb==1.0.0
to any project that has a minimal Python version below or equal to3.9
, like in the screenshot below:Actual behavior
A warning is thrown, when a valid version could be found anyway.
Expected behavior
Just don't raise a warning because that scared me a bit like: do I have dependencies conflicts? Did I do something?
There is no issue that the latest version available may not be compatible with the Python versions you claim to support in the
requires-python
range. But what's the problem with that?Environment Information
The text was updated successfully, but these errors were encountered: