[{'Text': '{"url":"https://www.reddit.com/r/Python/comments/1mfd3ww/but_really_why_use_uv/","title":"But really, why use \'uv\'? : r/Python","description":"Do you want global access to python-based tools across different projects, without the headache of managing tool-specific virtual environments? uv is for you. ... This, and also... uv actually resolves your python version. We often get devs who last interacted with a service 1+ minor versions of python ago. A lot of libraries and std lib stuff doesn&#x27;t work right with pinned packages on an older version.","extra_snippets":["Posted by u/kingfuriousd - 475 votes and 243 comments","Do you want global access to python-based tools across different projects, without the headache of managing tool-specific virtual environments? uv is for you. ... This, and also... uv actually resolves your python version. We often get devs who last interacted with a service 1+ minor versions of python ago. A lot of libraries and std lib stuff doesn\'t work right with pinned packages on an older version.","It also allows for very easily pinning build dependencies which everyone learned when setuptools broke this past year. ... Do you try and share you code with other people, who have different computers than you? Again, uv shines. How? What\'s the issue and how does uv solve this in a way other tools can\'t?","I love uv i run a lot of ai tools and they are nothing but python and just one dependency off fucks it up after system upgrades without uv every gets screwed up but not with uv"]}{"url":"https://www.reddit.com/r/learnpython/comments/1rcphaf/uv_tool_install_git_ignores_the_pinned_python/","title":"r/learnpython on Reddit: uv tool install git+ ignores the pinned python version","description":"This uses the same Python version discovery logic as other virtual environments created by uv, but will ignore non-global Python version requests like .python-version files and the requires-python value from a pyproject.toml. The --python option can be used to request a specific version. See the Python version documentation for more details. ... BTW, is this the only way to make the once installed app survive the upgrade of the system python?","extra_snippets":["Posted by u/AwkwardNumber7584 - 0 votes and 3 comments","This uses the same Python version discovery logic as other virtual environments created by uv, but will ignore non-global Python version requests like .python-version files and the requires-python value from a pyproject.toml. The --python option can be used to request a specific version. See the Python version documentation for more details. ... BTW, is this the only way to make the once installed app survive the upgrade of the system python?","The trouble with pipx, for instance, is that you have to reinstall everything when the system python gets upgraded. ... I “know” Python but can’t really code on my own.. how do I fix this? ... Getting Python on my computer. ... Is there a good reason to use uv if I just use Python for one-off personal scripts that aren\'t meant to be shared?","the installed app runs on the current system version (3.14). Is there a way to make uv respect the .python-version on github?"]}{"url":"https://www.reddit.com/r/learnpython/comments/1r9c948/am_i_dumb_i_dont_understand_uv_tools/","title":"r/learnpython on Reddit: Am I dumb? I don\'t understand uv tools","description":"If your project has a flat structure, e.g., instead of using a src directory for modules, the project itself does not need to be installed and uvx is fine. In this case, using uv run is only beneficial if you want to pin the version of the tool in the project&#x27;s dependencies.","extra_snippets":["If your project has a flat structure, e.g., instead of using a src directory for modules, the project itself does not need to be installed and uvx is fine. In this case, using uv run is only beneficial if you want to pin the version of the tool in the project\'s dependencies.","If you\'re just learning Python, honestly stick with plain pip and venv. uv is a nice upgrade once the slow installs start bugging you, but it\'s not something you need to understand right now.","Posted by u/QuasiEvil - 0 votes and 16 comments","The fact that you can install ruff as a python package is really just a matter of convenience for certain environments, but it\'s generally not recommended. You should especially avoid this for uv since uv can be used to manage your Python interpreter installs."]}{"url":"https://www.reddit.com/r/Python/comments/1o2viq3/uv_cheatsheet_with_most_commonuseful_commands/","title":"r/Python on Reddit: uv cheatsheet with most common/useful commands","description":"Upon coming on a system that may have some local changes...uv sync to make sure my environment isn&#x27;t screwed up...change to a different pinned python if not versioned explicitly in the pyproject, run sync..etc etc etc.","extra_snippets":["And uv sync --dev --frozen for things like dev containers, post-run commands so devs get all the dependencies but don\'t keep changing the uv.lock file ... --dev isn\'t necessary unless you have some environment variables set. By default all dependency groups are included in the venv. For dev containers I wish I had it pinned down a bit better how to mount the existing venv into the container.","Upon coming on a system that may have some local changes...uv sync to make sure my environment isn\'t screwed up...change to a different pinned python if not versioned explicitly in the pyproject, run sync..etc etc etc.","He has uv lock --upgrade - what\'s a scenario where you would run just a raw uv sync? IMHO that is not using the tool the way it wants to be used","Commitizen helps you make conventional commits, it does not bump package versions. The version related commands for uv do not look at commits whatsoever, you use if you already know what the next version should be. They are separate tools."]}{"url":"https://www.reddit.com/r/Python/comments/1pqyzse/uv_update_recommendations/","title":"r/Python on Reddit: uv update recommendations","description":"In case you wanted to hear that from someone who doesn&#x27;t work on uv, I also find issues are rare. ... I&#x27;ve got it set to use the latest version and update every couple of weeks. I&#x27;ve never had a problem with it. ... Mise to manage all my developer tooling. Every couple of weeks I run mise upgrade and it upgrades UV, as well as all of the other developer tools I use.","extra_snippets":["In case you wanted to hear that from someone who doesn\'t work on uv, I also find issues are rare. ... I\'ve got it set to use the latest version and update every couple of weeks. I\'ve never had a problem with it. ... Mise to manage all my developer tooling. Every couple of weeks I run mise upgrade and it upgrades UV, as well as all of the other developer tools I use.","I\'d procrastinated upgrading a generally well supported free and open source tech stack last summer and was rewarded a month later when the urgent \\"there\'s a security vulnerability upgrade immediately!\\" notice came out. Theres a reason no penguin wants to be the first in the water: ... Or, we have automated tests so we aren\'t worried about dependency changes breaking code! ... I update every day or so. Never had an issue. ... I run a uv self update on start in my codespace.","Is there a good reason to use uv if I just use Python for one-off personal scripts that aren\'t meant to be shared? ... Upgrades people, upgrades..","It\'s a package manager. Don\'t overthink it, pin a version in a Makefile or Dockerfile, and revisit it every few months."]}'}]