-
Notifications
You must be signed in to change notification settings - Fork 31
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
Improve dependencies management #901
Comments
re: the PR linked above -- we're setting different dependency versions in the dockerfiles vs. requirements.txt |
I wonder if part of the issue is the backlog of dependabot updates: #76 |
At least my intention with the issue is different. My idea is to provide a |
I found this answer really interesting commenting pro's and con's of the different approaches to implement dependencies lock files: Looking in depth |
When you come back to this, you might want to take a look at uv. It can act as a drop-in replacement for both pip and pip-tools, but is much, much faster. I ran it on the dependencies from 0.9.0 + a few extras, and it took the resolution time down from hours to ~15 seconds. Even without implementing lock files etc., it should still save significant amounts of time for you in github actions. |
Wow, thank you for the recommendation @josephtedds . We will definitely take a look 😄 |
May I ask also what the intention is around the execution environment's base environment and how it supports a general development workflow? Including a base environment in the image seems like a good idea to simplify execution but doesn't it also place restrictions on what code (i.e. dependencies that can be compatible with its version choices) can be successfully executed? Right now we're considering building our own execution image which will add to developer workflow complexity - is that sensible/the intention? Is the contract of such an image stable/known? It sounds like #1257, if picked up would help. Thanks (including for your patience, I'm going to this from a place of minor understanding!). |
Of course you can and it's a really good question, in fact. The project is evolving really fast and we hope to bring new features in the next versions, by now for
Yep, totally. That's one of the reasons because we offer different images with different python versions, for example. In the near future, we will add security features like the possibility to configure dependencies whitelists. It will add more restrictions on what code can be executed but it's important from a security point of view. Pros and cons I suppose.
Well, I don't know your use-case so maybe is a good idea, maybe not. But I personally would go 100% of the times for the simplest solution for the developer.
No problem! Happy to answer any question! |
What is the expected enhancement?
During our short lifetime we found several problems with
pip
installation, like: #900From the different proposals that I found implementing a lock file similar to other languages could solve our problem:
I'm not the most expert in Python so if someone knows a better library I'm 100% open to it. Special cc to @IceKhan13 here, due to his knowledge in this field.
The text was updated successfully, but these errors were encountered: