Workaround: babel depends on setuptools without declaring it

https://github.com/python-babel/babel/issues/1031
This commit is contained in:
Oleh Prypin
2023-10-14 12:48:07 +02:00
parent 828f4685f2
commit cc76672d55

View File

@@ -52,6 +52,7 @@ dependencies = [
[project.optional-dependencies]
i18n = [
"babel >=2.9.0",
"setuptools; python_version >= '3.12'" # Workaround: babel doesn't declare its dependency
]
min-versions = [
"click ==7.0",
@@ -100,6 +101,7 @@ exclude = ["/mkdocs/tests/integration", "*.po", "*.pot", "babel.cfg"]
[tool.hatch.build.hooks.custom]
dependencies = [
"babel",
"setuptools; python_version >= '3.12'" # Workaround: babel doesn't declare its dependency
]
[tool.hatch.envs.default.scripts]