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

Support distribution with different locks (feature) #13

Open
RoelantStegmann opened this issue May 24, 2023 · 1 comment
Open

Support distribution with different locks (feature) #13

RoelantStegmann opened this issue May 24, 2023 · 1 comment

Comments

@RoelantStegmann
Copy link

I am wondering if we could create poeblix lock. I have the following use case in mind.

  • In the pyproject.toml file, I want to have the packages that I need. I prefer to keep them open ended. Specifying a max version here makes people lazy and stops incremental progress.
  • As long as it gives me a single lock pyproject.toml for a working development environment, it is great to work with. When something new is needed, people can run poetry update to move onward.
  • When I build a package to be used at a single point, poeblix build --only-lock works great. It pins dependencies from the lock file.
  • However, sometimes I want to be much more flexible, but I don't trust just poeblix build: either the oldest dependency formulated in pyproject.toml might no longer work, or a new one might introduce breaking changes. Essentially, I want to be able to create multiple lock files, and use these with a tool like tox.
    poeblix lock python[5] pandas[3] numpy[2]
    • Python[5]: I want to test at most 3 python versions (low, some majors in between, latest)
    • Pandas[3]: I want to test at most 3 pandas versions (low, middle, max)
    • numpy[2]: I want to test at most 2 numpy versions (low, max)
  • After this poeblix build uses dependencies within the ranges defined above.

Please let me know if this use case makes sense, and if you would be interested to solve this with poeblix.

@spoorn
Copy link
Owner

spoorn commented May 28, 2023

I believe there was some issue in the poetry github related to multiple lock files, but I can't find it now. poeblix is only a plugin built on top of poetry, which only supports a single lock file per project. Unless poetry supports multiple lock files, doing so in poeblix is out of scope for this plugin IMO

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