Skip to content

Insufficient versioned constraint on poetry #202

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

Closed
sandrotosi opened this issue Dec 26, 2021 · 5 comments
Closed

Insufficient versioned constraint on poetry #202

sandrotosi opened this issue Dec 26, 2021 · 5 comments

Comments

@sandrotosi
Copy link

  • cattrs version: 1.9.0
  • Python version: 3.10.1
  • Operating System: Debian unstable.

Description

cattrs depends a dependency on poetry as "poetry-core>=1.0.0" but that's not strict enough. cattrs uses dependency groups here but those are only available in poetry preview 1.2.0a2

please update the versioned depends or revert to a simpler pyproject.toml such as tool.poetry.dev-dependencies

@Tinche
Copy link
Member

Tinche commented Dec 26, 2021

Sure, I can bump it up. Do you know to what, though?

@sandrotosi
Copy link
Author

poetry upstream said '1.2.0a2', but please do note that's a preview release, meaning it has not being released for GA. it may be safer, for the time being, to revert to the previous way to define dev dependencies (so a tool.poetry.dev-dependencies table)

@Tinche
Copy link
Member

Tinche commented Dec 26, 2021

That's the version of poetry, not poetry-core (https://pypi.org/project/poetry-core/#history). Don't see 1.2.a2 for poetry-core.

@sandrotosi
Copy link
Author

you can probably figure that out here: https://github.com/python-poetry/poetry-core/tags / https://pypi.org/project/poetry-core/#history

but once again, these are preview releases, not meant for general usage, ie no distribution/user should have them installed by default only to satisfy the dev-dependencies of cattrs.

@Tinche
Copy link
Member

Tinche commented Dec 26, 2021

Wow, that's a very entitled attitude you got there. I don't care for it one bit.

f3flight added a commit to f3flight/cattrs that referenced this issue Sep 13, 2022
Related to python-attrs#202 and python-poetry/poetry#4938 - looks like poetry 1.2.0 depends on poetry-core 1.1.0, so I assume the 'groups' feature is present in poetry-core 1.1.0 and that version would be a good one to use.
Tinche pushed a commit that referenced this issue Sep 13, 2022
Related to #202 and python-poetry/poetry#4938 - looks like poetry 1.2.0 depends on poetry-core 1.1.0, so I assume the 'groups' feature is present in poetry-core 1.1.0 and that version would be a good one to use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants