uv IS the Future of Python Packaging! 🐍📦

uv IS the Future of Python Packaging! 🐍📦

38.161 Lượt nghe
uv IS the Future of Python Packaging! 🐍📦
It's been six months since I asked whether #uv is the future of #Python packaging: https://youtu.be/_FdjW47Au30 With uv 0.3.0, the answer is IN and I'll tell you WHY, and WHAT’s missing to be the PRESENT of Python packaging. 🔗 Links ► Astral’s 0.3.0 announcement: https://astral.sh/blog/uv-unified-python-packaging ► Documentation for the new projects feature: https://docs.astral.sh/uv/concepts/projects/ ► Cross-Platform Lockfiles PEP that didn't get done in time: https://discuss.python.org/t/lock-files-again-but-this-time-w-sdists/46593 ► Production-ready Python Docker Containers with uv https://hynek.me/articles/docker-uv/ ► Faster Coverage with uv in GitHub Actions: https://hynek.me/articles/ditch-codecov-python/ ► Python standalone builds: https://github.com/indygreg/python-build-standalone ► MOPUp – a Python updater: https://pypi.org/project/MOPUp/ ► deadsnakes: New and old Python versions for Ubuntu: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa ► Pipx: https://pipx.pypa.io/ ► My favorite command runner Just: https://just.systems ► My cool shell prompt is made with Starship that works with any shell: https://starship.rs ► https://youtu.be/ImBvrDvK-1U 🤓 ME ELSEWHERE 🏡: https://hynek.me/ 🐘: https://mastodon.social/@hynek/ 🦋: https://bsky.app/profile/hynek.me 🅇: https://twitter.com/hynek 🧵: https://www.threads.net/@the_hynek ✉️ Newsletter: https://buttondown.email/hynek ❤️ Support my work: https://hynek.me/say-thanks/ 🙏 CREDITS Music: @RPLKTR / https://rplktr.com/ 📖 Chapters 00:00 Intro 01:24 Quick rehash: What's uv? Pip, virtualenv, pip-tools. 02:46 The big 0.3.0 seismic shift 03:32 uv python: automatic Python installation 05:51 A hidden gem: uv python list 06:21 Projects & uv.lock 07:33 Pop quiz: `uv sync` in fresh checkout 08:37 Different types of "faster" 09:21 (Not) activating virtualenvs & uv run 10:25 🥲 10:38 uv & production deployments 11:38 Miscellaneous stuff omitted 12:25 What's missing? 13:12 Missing: command runners 14:32 Missing: more than 1 dev dependency group 16:01 Missing: uv tool / uvx: no way to install deps's executables 16:41 Where does this all leave us THIS time? 17:09 Missing: FOSS package support 17:42 Accelerating CI pipelines 18:11 Criticism ⛈️ 20:43 So IS it, like, the future? 23:05 Thank you & goodbye! ❤️ #python #uv #astral #packaging #devops