• #396 uv-ing your way to Python

  • Aug 13 2024
  • Length: 32 mins
  • Podcast

#396 uv-ing your way to Python

  • Summary

  • Topics covered in this episode: uv venv --python & uv pythonPython 3.12.5 releasedCompile and use dependencies for multiple Python versions in ToxCatalog of Dark PatternsExtrasJokeWatch on YouTube About the show Sponsored by ScoutAPM: pythonbytes.fm/scout Connect with the hosts Michael: @mkennedy@fosstodon.orgBrian: @brianokken@fosstodon.orgShow: @pythonbytes@fosstodon.org Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays at 10am PT. Older video versions available there too. Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it. Brian #1: uv venv --python & uv python I was reading this article Python Packaging is Great Now: uv is all you needIt’s a little too “look, a silver bullet” for me, but it did point out some cool uv stuff I didn’t know about. uv venv venv --python 3.12 creates a virtual environment with Python 3.12, even if you didn’t have 3.12 installed on your system already.If it doesn’t work, try adding --python-preference manageduv python list shows all the python versions on your computerThere’s quite a few “experimental features” run Run a command or script (experimental)init Create a new project (experimental)add Add dependencies to the project (experimental)remove Remove dependencies from the project (experimental)sync Update the project's environment (experimental)lock Update the project's lockfile (experimental)tree Display the project's dependency tree (experimental)tool Run and manage tools provided by Python packages (experimental)python Manage Python versions and installations (experimental)uv add --dev pytest will add pytest to your dev dependencies.uv tree rocksuv might not have “solved packaging” (or maybe it might have) but it sure is fun to watch the experimentation of different workflows. Michael #2: Python 3.12.5 released Lots of changes, see the release notes Brian #3: Compile and use dependencies for multiple Python versions in Tox Viktor RimarkCool idea to use the {envname}, which specifies the tox environment, in the name of a requirements-dev.txt file name.Then add a requirements tox target to generate pip-compile-ed files.Now I gotta try doing all of this with uv lockThen we need everyone to mod their tools to comply with PEP 571, when/if it’s adopted (covered it last week) Michael #4: Catalog of Dark Patterns Including Bait and SwitchConfirm ShamingDisguised AdsRoach MotelFake Scarcity… Extras Brian: Recording of Hello, pytest! is done. Editing now. On track for the 19th (or before). Michael: Django 5.1 releasedPython 3.13.0 release candidate 1 released Joke: clownstrike ARS Technica article on DMCA for ClownStrike
    Show more Show less
activate_Holiday_promo_in_buybox_DT_T2

What listeners say about #396 uv-ing your way to Python

Average customer ratings

Reviews - Please select the tabs below to change the source of reviews.