fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Michał Górny :gentoo:

is yet another project that "optimizes" its test suite by using time-machine. Since time-machine works on CPython only, it also keeps supporting but you are allowed to use it on PyPy only now.

I really do wonder if this "optimization" actually makes anything faster, and if it outweighs the added complexity. The complexity also falls on downstreams ().

But that's modern development for you! "Shiny! Must have it!"

github.com/pypa/virtualenv/com

GitHub3.12 support and no setuptools/wheel on 3.12+ (#2558) · pypa/virtualenv@fd93dd7Virtual Python Environment builder. Contribute to pypa/virtualenv development by creating an account on GitHub.

It gets even better. The test suite now fails if timezone is not UTC — but only when using time-machine. Freezegun works just fine. Makes lots of sense.

@mgorny The scope of this commit perplexes me. It says it stops installing setuptools/wheel for 3.12+ environments, yet it changes the time freezer, adds type hints here and there, removes some pip-related workarounds from the tests... This will be challenging to backport (as we cannot update virtualenv in Fedora due to us still supporting Python 3.6 and 2.7 in tox for folks who need to target RHEL 8 or 7).

@mgorny It seems that freezegun is uninstallable with pip on Python 3.12, which is most likely the reason for this change, but I have to guess.

@hroncok, yeah, my assumption about it being an optimization could have been wrong. Though I'd have preferred if we had one package that worked everywhere...