Skip to content

Commit

Permalink
Depend on setuptools since Python 3.12
Browse files Browse the repository at this point in the history
The dependency was already added specifically for CI, but that is not correct, because it's the package itself that actually depends on setuptools
  • Loading branch information
oprypin authored and akx committed Oct 23, 2023
1 parent 76677ea commit eeb2feb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions setup.py
Expand Up @@ -67,6 +67,9 @@ def run(self):
# 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': [
Expand Down
4 changes: 0 additions & 4 deletions tox.ini
Expand Up @@ -8,10 +8,6 @@ envlist =
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
Expand Down

0 comments on commit eeb2feb

Please sign in to comment.