Artwork

Контент предоставлен Michael Kennedy and Brian Okken. Весь контент подкастов, включая эпизоды, графику и описания подкастов, загружается и предоставляется непосредственно компанией Michael Kennedy and Brian Okken или ее партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.
Player FM - приложение для подкастов
Работайте офлайн с приложением Player FM !

#396 uv-ing your way to Python

32:19
 
Поделиться
 

Manage episode 434030603 series 1305988
Контент предоставлен Michael Kennedy and Brian Okken. Весь контент подкастов, включая эпизоды, графику и описания подкастов, загружается и предоставляется непосредственно компанией Michael Kennedy and Brian Okken или ее партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.
Topics covered in this episode:
Watch on YouTube
About the show

Sponsored by ScoutAPM: pythonbytes.fm/scout

Connect with the hosts

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 need
  • It’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 managed
    • uv python list shows all the python versions on your computer
    • There’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 rocks
  • uv 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

Brian #3: Compile and use dependencies for multiple Python versions in Tox

  • Viktor Rimark
  • Cool 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 lock
  • Then 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 Switch
    • Confirm Shaming
    • Disguised Ads
    • Roach Motel
    • Fake Scarcity

Extras

Brian:

  • Recording of Hello, pytest! is done. Editing now. On track for the 19th (or before).

Michael:

Joke:

  continue reading

404 эпизодов

Artwork

#396 uv-ing your way to Python

Python Bytes

1,817 subscribers

published

iconПоделиться
 
Manage episode 434030603 series 1305988
Контент предоставлен Michael Kennedy and Brian Okken. Весь контент подкастов, включая эпизоды, графику и описания подкастов, загружается и предоставляется непосредственно компанией Michael Kennedy and Brian Okken или ее партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.
Topics covered in this episode:
Watch on YouTube
About the show

Sponsored by ScoutAPM: pythonbytes.fm/scout

Connect with the hosts

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 need
  • It’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 managed
    • uv python list shows all the python versions on your computer
    • There’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 rocks
  • uv 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

Brian #3: Compile and use dependencies for multiple Python versions in Tox

  • Viktor Rimark
  • Cool 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 lock
  • Then 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 Switch
    • Confirm Shaming
    • Disguised Ads
    • Roach Motel
    • Fake Scarcity

Extras

Brian:

  • Recording of Hello, pytest! is done. Editing now. On track for the 19th (or before).

Michael:

Joke:

  continue reading

404 эпизодов

Alle episoder

×
 
Loading …

Добро пожаловать в Player FM!

Player FM сканирует Интернет в поисках высококачественных подкастов, чтобы вы могли наслаждаться ими прямо сейчас. Это лучшее приложение для подкастов, которое работает на Android, iPhone и веб-странице. Зарегистрируйтесь, чтобы синхронизировать подписки на разных устройствах.

 

Краткое руководство