The dependency was already added specifically for CI, but that is not correct, because it's the package itself that actually depends on setuptools
# higher.
# Python 3.9 and later include zoneinfo which replaces pytz
'pytz>=2015.7; python_version<"3.9"',
+ # https://github.com/python/cpython/issues/95299
+ # https://github.com/python-babel/babel/issues/1031
+ 'setuptools; python_version>="3.12"',
],
extras_require={
'dev': [
extras =
dev
deps =
- # including setuptools here for CI;
- # see https://github.com/python/cpython/issues/95299
- # see https://github.com/python-babel/babel/issues/1005#issuecomment-1728105742
- setuptools;python_version>="3.12"
backports.zoneinfo;python_version<"3.9"
tzdata;sys_platform == 'win32'
pytz: pytz