Posts

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

henryiii, to python
@henryiii@fosstodon.org avatar

New cibuildwheel release, with free-threaded Python support for Linux and Windows! Also container-engine is now a non-global option, we use hatchling to package our wheel, and a few other things. https://github.com/pypa/cibuildwheel/releases/tag/v2.18.1 #python #release

henryiii, to python
@henryiii@fosstodon.org avatar

Latest manylinux/musllinux images have free-threaded CPython builds! "python3.13t" #python

henryiii, to python
@henryiii@fosstodon.org avatar

I've just released cibuildwheel 2.18.0, with prerelease support for CPython 3.13 - set CIBW_PRERELEASE_PYTHONS to test building 3.13 wheels! (No free-threading yet, waiting on binaries & pip) https://github.com/pypa/cibuildwheel/releases/tag/v2.18.0 #python #release

henryiii, to python
@henryiii@fosstodon.org avatar

Python 3.13 beta 1 is out, which means it's time for my yearly post on what's new: https://iscinumpy.dev/post/python-313/ #python

henryiii, to python
@henryiii@fosstodon.org avatar

This feature of uv is not talked about enough:

uv pip install --exclude-newer 2020-01-01 -r requirements.txt

I was able to recover and build a project untouched for many years using this easily!

adamchainz,
@adamchainz@fosstodon.org avatar

@henryiii very nice. I once resurrected a project with unpinned requirements by checking PyPi for each package to find the version at the time… so nice to have a tool that can do it now.

henryiii, to python
@henryiii@fosstodon.org avatar

Google fired their Python team, including one of our pybind11 lead developers (the list of accomplishments of that team is, ah, was, impressive!) We'll need to tighten up our min version support for pybind11, so I've opened up a poll: https://github.com/pybind/pybind11/discussions/5124 3.7+ or 3.8+? #python

henryiii, to python
@henryiii@fosstodon.org avatar

Stick these lines at the top of your noxfile.py:

nox.needs_version = ">=2024.3.2"
nox.options.default_venv_backend = "uv|virtualenv"

And install uv to make install-heavy nox jobs go much faster. You can instead try -db uv or setting NOX_DEFAULT_VENV_BACKEND=uv. #python #nox #uv

henryiii,
@henryiii@fosstodon.org avatar

@hynek it does require https://github.com/astral-sh/uv/releases/tag/0.1.24 which has only been out a few days.

hynek,
@hynek@mastodon.social avatar

@henryiii There is a pattern of you telling me that everything I believe is wrong because of a release ten minutes ago 😅

henryiii, to python
@henryiii@fosstodon.org avatar

We just released pybind11 2.12! Along with lots of fixes and features, this is also the first version to support NumPy 2.0 - please update and release new binaries of your packages before 2.0 goes final! You don't need NumPy 2 when building with pybind11! https://github.com/pybind/pybind11/releases/tag/v2.12.0 #python. #release

henryiii, to python
@henryiii@fosstodon.org avatar

cmake for Python 3.29.0 is out now! First release to use scikit-build-core internally as the build backend, Python 3.7+ required. https://github.com/scikit-build/cmake-python-distributions/releases/tag/3.29.0.1 #release #python #cmake

brianokken,
@brianokken@fosstodon.org avatar

@henryiii I’m way behind, I’m still using Python 3.11 and 3.12

henryiii, to random
@henryiii@fosstodon.org avatar

Switching from mamba to prefix.dev's pixi in GitHub Actions for my book build took setup time from about a minute to 13 seconds (as long as you don’t cache). And now it’s fully locked, too! Quite happy. And it's simpler in Actions. https://github.com/henryiii/se-for-sci/pull/42

henryiii, to python
@henryiii@fosstodon.org avatar

Cibuildwheel 2.17 is out! Highlights include a new inherit table for overrides, official GHA Apple silicon (macOS-14) support (was experimental in 2.16.5), auto platform detection when running locally, and setuptools/wheel removed. https://github.com/pypa/cibuildwheel/releases/tag/v2.17.0 thanks @joerick! #python #release

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"! #python #release https://github.com/pypa/build/releases/tag/v1.1.0

video/mp4

henryiii,
@henryiii@fosstodon.org avatar

@hugovk @pillow build 1.2 is a hair faster, and offers —installer=uv, which is even faster. :)

hugovk,
@hugovk@mastodon.social avatar

@henryiii For @pillow:

29s- > 25s -> 24s -> 23s

Like you say, more noticeable for a small package, but all in the right direction :)

henryiii, to random
@henryiii@fosstodon.org avatar

Using Charlie Marsh's UV (pip/venv replacement) as a nox backend drops the time taken to build docs from 22 seconds to 4.2 seconds!

video/mp4

pganssle,
@pganssle@qoto.org avatar

@henryiii This is honestly pretty shocking to me. I would have been confident that the bottleneck for pip was disk I/O and network latency, in which case rewriting in Rust would not really matter.

Is pip just slow now because of the resolver? Or is pip leaving a lot of performance on the table?

pradyunsg,
@pradyunsg@mastodon.social avatar

@pganssle @henryiii the latter, and uv is using a lot of smart caching techniques and doing things where code complexity provides bits of situational speedups that are all adding up.

And, it's making strong-ish assumptions about what to expect from index servers and such (which is good for PyPI but not generally).

henryiii, to python
@henryiii@fosstodon.org avatar

We released a new cibuildwheel (2.16.5) supporting the new M1 runners on GitHub Actions that was rolled out today! Also with a Windows fix for powershell 7.3+ (now rolling out in GH images). https://github.com/pypa/cibuildwheel/releases/tag/v2.16.5 #python #release

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