Build packages with pinned dependencies from .lock file
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
As title says, this feature is about to poetry build
build wheels and packages with pinned versions specified in poetry.lock
file. Command can be something like poetry build --locked
.
Its duplicate of closed #1307. Reason to close this issue was argument about libraries and applications (in short):
Libraries use wheels for distribution. Their dependencies should not be very tight so libraries can coexist with each other. Thats why
poetry build
dont use versions from lock file. There are also applications. Applications need pinned dependencies from lock file, so all environments (dev and prod) use same dependencies. Applications should use docker for distribution.
So I think its not actually true that applications should not use wheels and pypi for distribution, sometimes its reasonable to have package with pinned dependencies from lock file. Example of such use case can be some cli tools like https://github.com/ytdl-org/youtube-dl, so development team and end-user use same dependencies. Another example is some backend application that deployed on server by wheel package.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:44
- Comments:18 (6 by maintainers)
I’m certainly a fan of this idea, and made a similar comment regarding that “Applications are not distributed via wheels” argument on the original issue.
I created a poetry plugin that adds support for building wheel files via commandline using locked dependencies in poetry.lock, also adds support for data_files: https://github.com/spoorn/poeblix, https://pypi.org/project/poeblix/