-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Specify a different python version for a dependency group #7299
Comments
I don't think this is a duplicate of 5037. Issue 5037 is about isolating dependencies. This issue is about only applying version constraints when needed. Here is a motivating example
Actual behaviorExecuting
Desired behaviorI expect that I expect that poetry install |
I would very much like this to be possible. I have Not sure what a good work-around is to allow my package to have a more relaxed Python requirement but force other groups to use a newer one. |
A workaround that I have found to be working is what I do here: https://github.com/spapanik/yamk/blob/32b61d70246/pyproject.toml#L167 I specify the min versions for |
Feature Request
I've started using the dependency groups (which are absolutely fantastic). Still, I have reached an issue, that some groups exist only for a particular purpose (eg, to build the documentation, or to lint the project). The issue that I'm facing is that as a library developer, I want to support all supported python versions, so I normally set my python version in something like python = "^3.7.0" (accurate as of 1/1/2023), but not all libraries that are used to build docs/lint the project support every version (eg latest flake8 only supports python>=3.8.1). But for example, flake8 plugins depend on flake8, so I have to either write the same python dependency again and again (and I would prefer not to duplicate that) or wait in order to update (which I currently do, but it seems unnecessary).
The text was updated successfully, but these errors were encountered: