Skip to content
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

Poe is incompatible with poetry 2.0.0 #268

Closed
erasmas opened this issue Jan 6, 2025 · 4 comments · Fixed by #269
Closed

Poe is incompatible with poetry 2.0.0 #268

erasmas opened this issue Jan 6, 2025 · 4 comments · Fixed by #269
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@erasmas
Copy link

erasmas commented Jan 6, 2025

Hi! Seeing this error in multiple projects that use poetry 2.0.0 and latest poe:

❯ poetry self add 'poethepoet[poetry_plugin]'
Using version ^0.32.0 for poethepoet

Updating dependencies
Resolving dependencies... (3.1s)

Because no versions of poethepoet match >0.32.0,<0.33.0
 and poethepoet[poetry-plugin] (0.32.0) depends on poetry (>=1.0,<2.0), poethepoet[poetry-plugin] (>=0.32.0,<0.33.0) requires poetry (>=1.0,<2.0).
So, because poetry-instance depends on both poetry (2.0.0) and poethepoet[poetry-plugin] (^0.32.0), version solving failed.

For now, we pinned poetry to 1.8.5 but would love to know what's the best way to fix this. Thank you!

@Slania
Copy link

Slania commented Jan 6, 2025

👍 same, for now, we've pinned to 1.8.5 too. 2.0 just came out yesterday and poethepoet is locking to the 1.0 major version. not sure how backward compatible 2.0 is, so until that is determined and either that constraint is released or a new poethepoet version is published with updates that are 2.0 compatible, I don't see any other reasonable alternatives than to pin.

@nat-n nat-n added the enhancement New feature or request label Jan 7, 2025
@nat-n
Copy link
Owner

nat-n commented Jan 7, 2025

Thank for raising this. I'll need to investigate whether there are any breaking changes in the plugin API.

If anyone is keen to experiment (try install from a local checkout of poethepoet with the version requirement relaxed?) and report back on your experience then that would be helpful :)

@nat-n nat-n added the help wanted Extra attention is needed label Jan 7, 2025
@kinocz
Copy link

kinocz commented Jan 7, 2025

we have a simple project, but picking the .env file and running tasks with poetry_command = "" works without a problem. The test system MacOS, pipx, and Poe was installed (injected) from locally built whl.

 ~ > poetry --version
Poetry (version 2.0.0)
 ~ > poetry self show plugins

  - poethepoet (0.32.0) A task runner that works well with poetry.
      1 application plugin

      Dependencies
        - pastel (>=0.2.1,<0.3.0)
        - poetry (>=1.0,<2.0)
        - pyyaml (>=6.0.2,<7.0.0)
        - tomli (>=1.2.2)

@nat-n
Copy link
Owner

nat-n commented Jan 9, 2025

The v0.32.1 release updated the poetry dependency to allow installation with poetry 2.0 🚀

@nat-n nat-n closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants