We strongly encourage maintainers of third-party Python projects to prepare their projects for 3.12 compatibilities during this phase, and where necessary publish Python 3.12 wheels on PyPI to be ready for the final release of 3.12.0.
This will be due to the setuptools changes in Python 3.12:
easy_install, pkg_resources, setuptools and distutils are no longer provided by default in environments created with venv or bootstrapped with ensurepip, since they are part of the setuptools package. For projects relying on these at runtime, the setuptools project should be declared as a dependency and installed separately (typically, using pip).
The second Python 3.12 release candidate is out! :rocket:
Python 3.12.0 final will be released in 3 weeks: https://peps.python.org/pep-0693/
See also https://dev.to/hugovk/help-test-python-312-beta-1508/
However, when adding 3.12 to
tox.ini
, it fails with:This will be due to the
setuptools
changes in Python 3.12:https://docs.python.org/3.12/whatsnew/3.12.html#ensurepip
See also https://github.com/gitpython-developers/GitPython/issues/1640#issuecomment-1712918426 for more advice.