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

Pip-tools optimizer for lib versions #2030

Closed
ManPython opened this issue Dec 6, 2023 · 8 comments
Closed

Pip-tools optimizer for lib versions #2030

ManPython opened this issue Dec 6, 2023 · 8 comments

Comments

@ManPython
Copy link

What's the problem this feature will solve?

Find right libs version to create right requirements.txt from conditions < > =< => etc

Describe the solution you'd like

Something like this: (pypa/pip#12427) Update optimizer for lib versions and backuper for optimal and last working requirements

Alternative Solutions

Cooperate with PIP around optimal versions for requirements.txt

Additional context

@webknjaz
Copy link
Member

webknjaz commented Dec 6, 2023

It's already possible with Pip's constraint files periodically regenerated by pip-tools and updated via PR where it's visible that the tests pass.

@ManPython
Copy link
Author

@webknjaz
Can You indicate more details? I'm not sure about PR shortcut and the method to reach target.
It's possibe via pip-tools or PIP?
Soo.. what I should do when I broken whole jupyter after update?

@ManPython
Copy link
Author

My idea was more as combine around something like: https://github.com/tox-dev/pipdeptree

@webknjaz
Copy link
Member

webknjaz commented Dec 7, 2023

Soo.. what I should do when I broken whole jupyter after update?

You can't do anything unless you have a constraint file with the exact pins upfront.

You have to set up and maintain a constraints file, only updating it with testing. Once you have it, you can recreate your env from scratch.

You can either combine these two or opt to use an entirely separate set of tools that manage venvs.

I made a note the other day, regarding some conceptions I wish people understood better: #1326 (comment).

@ManPython
Copy link
Author

I imagining solution in totally other vision I think.. and I think not exist solution like this - "optimal" for versions.
By this I think that tool should also check the possible new libs for env and whole depedency and the build right requiments and related types.
Soo.. yes.. can do anything like coder with code.. but tool not exist now to do this.

@webknjaz
Copy link
Member

webknjaz commented Mar 1, 2024

I think the currently talked through proposal to standardize lockfiles on discuss.python.org will solve your concerns but there's nothing to be done in pip-tools.

@webknjaz webknjaz closed this as completed Mar 1, 2024
@webknjaz
Copy link
Member

webknjaz commented Mar 2, 2024

Yes

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