-
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
poetry>=1.2 package with group dependencies cannot be installed with default build-system #4983
Comments
I was just stumbling upon this while trying to build pendulum. Is there a way around this? |
@kakulukia From the look of pendulum's pyproject.toml they use poetry >=1.2. Do you have this version installed? Needs to be installed using the preview flag, see installation here : https://python-poetry.org/docs/master/ |
I was not aware that its using a preview version of poetry .. thx, its working now. |
I have the same issue on version |
Using groups is a new feature in the latest preview version of poetry but it's not yet released, and still breaks installations (see python-poetry/poetry#4983). The dev dependencies are compatible with both the stable and preview poetry versions.
Using groups is a new feature in the latest preview version of poetry but it's not yet released, and still breaks installations (see python-poetry/poetry#4983). The dev dependencies are compatible with both the stable and preview poetry versions.
Hey, why is pendulum requiring a preview version of poetry for installation was this necessary ? I had to build from source poetry as the one I use from my classical repos is too |
I don't think this is an issue of Poetry, but a decision of Pendulum maintainers. You should raise the question in the Pendulum repository. |
Hey @Secrus, just for reference, it seems it isn't a Pendulum issue but a pip issue : pypa/pip#6264 |
To be clear, the original issue this ticket was raised for still exists: A Poetry 1.2-managed project which uses groups (per the original example) still declares an unversioned build-system requirement on poetry-core, and so will fail if this is not manually adjusted to depend on Pendulum already has this versioned build-system requirement, so it's not suffering from the issue in this ticket. Poetry itself (in master) depends on It might also make sense for the documentation to mark those pyproject.toml features that depend on poetry-core 1.1 in the documentation so that people editing their pyproject.toml manually with reference to the documentation, e.g., as happened in #4628, will know they need to ensure their build-system dependency is appropriately updated. And as a further molly-guard, it might make sense to have Poetry notice when pyproject.toml contains features needing poetry-core 1.1 but does not declare this in its build-system block, similar to how it notices when your poetry.lock is out-of-date compared to pyproject.toml. All this depends on having a clear record and documentation of the poetry-core 1.1 added and changed features, and the ability to recognise them in pyproject.toml. And parse the build-system requirement line to determine which version of poetry-core is being depended upon.. Separately, it might make sense for Poetry 1.2, when given |
The original issue is solved, because |
Attempt based on this python-poetry/poetry#4983
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).poetry init -n
Issue
Hello! Thanks a lot for this tool.
When creating a project with poetry>=1.2 it adds the default build-system:
If you add a --group dependency in this project, it becomes impossible to install because the latest stable release of
poetry-core
does not support group and producesReproduce
This
Dockerfile
shows the issueMitigation
Changing the build dependency to
requires = ["poetry-core>=1.1.0a6"]
will currently fix the issueResolution
poetry-core>=1.1
but i did not find a way to tell the build system to install with --pre to allow for pre-releases, so it would need to be explicitly something likepoetry-core>=1.1.0a6
.Maybe this is not an issue, once poetry==1.2 and poetry-core==1.1 are officially release this might all go away.
Thank you very much!
The text was updated successfully, but these errors were encountered: