Skip to content

Commit acca66b

Browse files
committed
Add optional dependencies for Python version compatibility
1 parent de3b63d commit acca66b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ classifiers = [
2525
"Topic :: Utilities"
2626
]
2727

28+
[project.optional-dependencies]
29+
python_version = [
30+
'importlib-metadata; python_version < "3.8"',
31+
'dataclasses; python_version < "3.7"',
32+
'setuptools >= 40.8.0; python_version =< "3.12"'
33+
]
34+
2835
dependencies = [
2936
"dacite >=1.6.0",
3037
"xmltodict>=0.12.0",

0 commit comments

Comments
 (0)