Specified Python version constraint is much more restrictive than what documentation states
See original GitHub issueI have a Python project with semver constraint: python = "^3.10"
.
Attempting to install pygls
as dev dependency fails with the error:
The current project's Python requirement (>=3.10,<4.0) is not compatible with some of the required packages Python requirement:
- pygls requires Python <3.11,>=3.7, so it will not be satisfied for Python >=3.11,<4.0
This makes sense, but the documentation says that Pythons 3.7 and later are all supported. Is there another reason the version constraint is set like this and not just >=3.7,<4.0
or am I misunderstanding something?
Thanks in advance!
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
Cannot Install Proper Version of Libraries · Issue #4809 - GitHub
Essentially, your pyproject.toml says that you are compatible with all Python versions greater than/equal to 3.8 but lesser than 4.0. Numpy has ...
Read more >Should You Use Upper Bound Version Constraints?
In this discussion I would like to explain why always providing an upper limit causes far more harm than good even for true...
Read more >Requirements.txt greater than equal to and then less than?
Yes. The pip manual has a section on the format of "requirement specifiers". These are documented in PEP-508 and PEP-440:.
Read more >Dependency specification | Documentation | Poetry - Python ...
Version constraints Caret requirements Caret requirements allow SemVer compatible updates to a specified version. An update is allowed if the new version ......
Read more >User Guide - pip documentation v22.3.1
Constraints files are requirements files that only control which version of a requirement is installed, not whether it is installed or not. Their...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tombh It’s working now. Many thanks!
@tombh yep, should be okay, thanks!