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

Does poetry build support dynamic dependencies? #8509

Closed
mil-ad opened this issue Oct 5, 2023 · 4 comments
Closed

Does poetry build support dynamic dependencies? #8509

mil-ad opened this issue Oct 5, 2023 · 4 comments
Labels
kind/bug Something isn't working as expected

Comments

@mil-ad
Copy link

mil-ad commented Oct 5, 2023

I'm trying to use dynamic metadata suggested here to include a pinned requirements.txt for my deployable application (i.e. not a library):

[project]
dynamic = ["dependencies"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

However the generated package with poetry build doesn't use/include it. Is this supported by poetry?

@mil-ad mil-ad added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 5, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Oct 5, 2023

no

@mil-ad
Copy link
Author

mil-ad commented Oct 5, 2023

any plans to add support any time soon? How does one build a package in poetry with pinned versions?

@clintonroy
Copy link
Contributor

The strong theme of poetry is use and supply static metadata, there's next to no chance of adding anything dynamic, for that, use a different back end.

If you want to pin package versions, pin them as dependencies e.g. poetry add foobarbaz=1.2.3.4 will pin dependency foobarbaz at version 1.2.3.4.

@finswimmer finswimmer closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2023
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
@abn abn removed the status/triage This issue needs to be triaged label Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

5 participants