If you do multi stage builds (example here) it is slightly easier to use venvs.
If you use the global environment you need to hardcode the path to global packages. This path can change when base images are upgraded.
bio
If you do multi stage builds (example here) it is slightly easier to use venvs.
If you use the global environment you need to hardcode the path to global packages. This path can change when base images are upgraded.
Sure, but in the case where you upgrade python and it affects python packages it would affect global packages and a venv in the same way.
upgrading your base image won’t affect your python packages
Surely if upgrading python will affect your global python packages it will also affect your venv python packages?
you can use multi stage builds to create drastically smaller final images
This can also be done without using venv’s, you just need to copy them to the location where global packages are installed.
I don’t think they have anything to do with each other, it looks like prefix.dev uses conda packages.
Yeah it is, eventually they want UV to have feature parity with rye and rye will basically just be a pointer to UV
Early on uv was only trying to replace pip. This latest update is a big step towards becoming a poetry (and pyenv/pipx) replacement too.
object oriented
Python does have OOP but you are not at all forced to use it. You can write code in a functional or even procedural style.
typing
I do hate that python doesent have proper support for typing but I think weakly typed variables will actually help beginners as it is less to think about to start off with.
indentation
I think there are pros and cons here. In other languages it is considered good style to use indentation anyway.
I’m sure it is difficult to teach a large class like that though. It was hard enough for me to learn with a much more favourable teacher to student ratio than you probably have. Sorry but honestly I do sympathise with admin as well.
yep, this method didn’t work with this method for gitui on my nixos machine either. And a youtube commenter pointed out that LazyGit (inside helix) can’t open files to edit. So this method is definitely not perfect but is probably still useful in the right situation
This actually sounds really promising!
Edit: here is a blog post from the creator of rye talking about rye and UV: https://lucumr.pocoo.org/2024/2/15/rye-grows-with-uv/
Up to you =)
I think it does fit here as it is python related
Might be worth posting this in !lemmy_dev@programming.dev as that is a community around Lemmy Bots and Tools
You should be able to use pip uninstall. See this link for details:https://pip.pypa.io/en/stable/cli/pip_uninstall/
Using it in a venv will affect the venv. Using it outside the venv will affect global packages.
Definitely don’t include passwords in git.
Using a password manager is best.
If you are using secrets when developing you can load secrets into environment variables automatically when you run a program: https://developer.1password.com/docs/cli/secrets-environment-variables/
Putting aside the speed uv has a bunch of features that usually require 2-4 separate tools. These tools are very popular but not very well liked. The fact these tools are so popular proves that pip is not sufficient for many use cases. Other languages have a single tool (e.g. cargo) that are very well liked.