@gaborbernat@fosstodon.org
@gaborbernat@fosstodon.org avatar

gaborbernat

@gaborbernat@fosstodon.org

Senior Software engineer @Bloomberg (from 🇭🇺🇷🇴🇬🇧), living in Los Angeles 🇺🇸 https://fosstodon.org/@ThePSF fellow. Maintainer of many - http://bernat.tech/about (tox, virtualenv,...) Python packages. Opinions my own.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

What an amazing Python conference! 🤩 Huge thanks to everyone who made it so special and memorable. ✨ Your hard work and dedication truly shine through. 😊🙏 Especially grateful for the fantastic conversations and connections made. 💖 Can't wait to see you all again!

hugovk, to python
@hugovk@mastodon.social avatar

I just kicked off PyCon 2024 with the first talk of the Language Summit (and my first talk at PyCon!): "Should Python adopt CalVer?" It was an interesting discussion, let's see!

The view of the language summit from the lectern.

gaborbernat,
@gaborbernat@fosstodon.org avatar

@hugovk Adopting Calver would indeed eliminate the possibility of a Python 4 release. CalVer focuses on release dates (e.g., 2024.05) rather than major version numbers, making version 4 obsolete. So this would be a win-win?

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

Before going to PyCon US made some final bug fixes for pyproject-fmt. I'll be unavailable until next week, see you in Pittsburgh, see https://github.com/tox-dev/pyproject-fmt/releases/tag/2.1.0

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

pyproject-fmt just got a new major release https://github.com/tox-dev/pyproject-fmt/releases/tag/2.0.0 now using rust under the hood (faster and more powerful)

gaborbernat,
@gaborbernat@fosstodon.org avatar

@kytta rust is more because I liked the AST of taplo over what tomlkit was doing… not for speed at all.

You're free to keep using 1.x or add PRs to support those not widely used platforms.

gaborbernat,
@gaborbernat@fosstodon.org avatar

@hugovk @kytta PR welcome 🤗

henryiii, to python
@henryiii@fosstodon.org avatar

Nox 2024.3.2 is out! The new optional uv backend is blazing fast, and it has several long awaited features, like --force-python on non-parametrized sessions, venv reuse options, an envvar for backend selection, backend sequences with fallthrough, and more! (note: "virtualenv" is the Nox backend selector, it's virtualenv + pip)

video/mp4

gaborbernat,
@gaborbernat@fosstodon.org avatar

@henryiii Ugh I have a bit of a problem with how you formulated this. In this case the 18 seconds difference is not because of virtualenv, but instead of because of pip... If I would have to guess I think uv it's probably around 50ms faster than virtualenv..

henryiii, to python
@henryiii@fosstodon.org avatar

Build 1.1 is out, and in some cases it's over 2x faster than 1.0, such as in my favorite way to use it, "pipx run build"! https://github.com/pypa/build/releases/tag/v1.1.0

video/mp4

gaborbernat,
@gaborbernat@fosstodon.org avatar

@henryiii I guess it is worth pointing out that in case you installed the build with the virtualenv backend/extra the performance benefit is likely more around half a second.

pganssle, to random
@pganssle@qoto.org avatar

Heh, I just noticed that it looks like virtualenv seems to use the “COVID-time” version of : https://virtualenv.pypa.io/en/latest/changelog.html

Version 20 starting in 2020, still version 20 now… 😛

gaborbernat,
@gaborbernat@fosstodon.org avatar

@hugovk @pganssle is using semver, is just a happenstance that v20 got released in 2020.

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

IMHO, uv will revolutionize packaging in the Python ecosystem, but will take another year (at least) to become the one-shop tool it aims to be. No need to wait until then to reap its benefits, if you are using tox I've just released https://pypi.org/project/tox-uv

Creating virtual environments and installing packages in them is now blazing fast in tox via this plugin.

cc @charliermarsh

gaborbernat,
@gaborbernat@fosstodon.org avatar

@brettcannon @charliermarsh I agree. IMHO we should make the standard extensible rather than perfect and iterate on it, to not drag the process long out.

sullivancolin, to random
@sullivancolin@fosstodon.org avatar

@pythonbytes @mkennedy @brianokken

Charlie Marsh from Ruff announces a new drop-in replacement for pip and pip-tools written in rust. Also taking stewardship of Rye!

https://astral.sh/blog/uv

gaborbernat,
@gaborbernat@fosstodon.org avatar

@mkennedy @brianokken @sullivancolin @pythonbytes @talkpython and now can be plugged in inside your tox workflow via https://pypi.org/project/tox-uv/ :-)

gaborbernat,
@gaborbernat@fosstodon.org avatar
gaborbernat, (edited ) to random
@gaborbernat@fosstodon.org avatar

I spent a day working on pipx the last day, merged a lot of good quality PRs, groomed the issue tracker from 127 to 57, moved documentation build from GitHub pages to Readthedocs and released 1.3.0: https://pipx.pypa.io/stable/changelog/ enjoy!

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

So who knows what happened in July that virtualenv downloads jumped so much?

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

I'm trying something new this year, called not submitting my talk proposals on the last day 😅

henryiii, to random
@henryiii@fosstodon.org avatar

The Scientific-Python development guide now has a toggle for ruff-format as an alternative to black: https://learn.scientific-python.org/development/guides/style/ (And sp-repo-review checks for either and looks for deprecated Ruff config options)

gaborbernat,
@gaborbernat@fosstodon.org avatar

@henryiii alternative? that's against the principle of black, pick one option and stick to it 😀

gaborbernat,
@gaborbernat@fosstodon.org avatar

@henryiii @sethmlarson for what it's worth, I did object against the decision at the time 😅

gaborbernat, to random
@gaborbernat@fosstodon.org avatar
henryiii, to python
@henryiii@fosstodon.org avatar

Want to know the best practices for building and maintaining a package? And want a template for new projects or WebAssembly-powered tooling to help existing projects? The URL for this post is finally stable, so I can now share it! https://blog.scientific-python.org/scientific-python/dev-summit-1-development-guide/

gaborbernat,
@gaborbernat@fosstodon.org avatar

@henryiii :ablobcatattentionreverse: :ablobcatattentionreverse: :ablobcatattentionreverse: :ablobcatattentionreverse:

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

https://pypi.org/project/build/1.0.0 is now out, thanks to @henryiii for all the hard work on getting this over the line!

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

tox 4.11 now allows you to set config_settings for the build backend invocations :-)
https://tox.wiki/en/latest/changelog.html#v4-11-0-2023-08-29

gaborbernat, to random
@gaborbernat@fosstodon.org avatar

Do you make typos but tox does not help you? No more! With 4.10 onwards we'll fail and suggest a close match.

gaborbernat,
@gaborbernat@fosstodon.org avatar
jamescooke, to python
@jamescooke@fosstodon.org avatar

New blog post 🎉

"An Ode to pipx" - some ways in which using has improved my development experience.

https://jamescooke.info/an-ode-to-pipx.html

gaborbernat,
@gaborbernat@fosstodon.org avatar

@jamescooke @jugmac00 this should work, do you have more context on what's the error?

gaborbernat,
@gaborbernat@fosstodon.org avatar

@jamescooke @jugmac00 is not that bad in practice, PyPI is heavily cached by cloudflare, so you're not actually hitting PyPI just some cache servers of cloudflare.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • kavyap
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Durango
  • GTA5RPClips
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • khanakhh
  • osvaldo12
  • tacticalgear
  • JUstTest
  • cubers
  • everett
  • Leos
  • tester
  • mdbf
  • ngwrru68w68
  • ethstaker
  • modclub
  • megavids
  • provamag3
  • cisconetworking
  • normalnudes
  • lostlight
  • All magazines