From 6089049a54a5dd531b356303f8b524d615f399c7 Mon Sep 17 00:00:00 2001 From: James Gilmore Date: Wed, 27 Mar 2024 20:01:19 +0000 Subject: [PATCH] Fix `virtualenv` lower limit to remain PEP 632 compliant. In Python 3.12 PEP 632 [0] kicks into effect and removes distutils from the standard libraries. This has downstream effects with older versions of pip (23.1.x) now broken at its core and unable to install anything. As the current low-bound of `virtualenv` installs 23.1.x of pip when you use pre-commit + python 3.12 you also break all your hooks. Since its not normal to explicit set the dependency of `virtualenv` we should increase the lower bounds to also make `pre-commit` PEP 632 compatible. [0] https://peps.python.org/pep-0632/#migration-advice --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 0e155601..733c849a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,7 +23,7 @@ install_requires = identify>=1.0.0 nodeenv>=0.11.1 pyyaml>=5.1 - virtualenv>=20.10.0 + virtualenv>=20.25.1 python_requires = >=3.9 [options.packages.find]