Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 9597695

Browse files
authored
fix: only require dataclases if python<3.7 (#475)
1 parent ed244b3 commit 9597695

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ MarkupSafe==1.1.1
66
protobuf==3.12.2
77
pypandoc==1.5
88
PyYAML==5.3.1
9-
dataclasses==0.7
9+
dataclasses==0.6; python_version < '3.7'

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@
5151
"protobuf >= 3.12.0",
5252
"pypandoc >= 1.4",
5353
"PyYAML >= 5.1.1",
54+
"dataclasses < 0.7; python_version < '3.7'"
5455
),
5556
extras_require={':python_version<"3.7"': ("dataclasses >= 0.4",),},
5657
tests_require=("pyfakefs >= 3.6",),
58+
python_requires=">=3.6",
5759
classifiers=(
5860
"Development Status :: 4 - Beta",
5961
"Environment :: Console",
@@ -62,6 +64,7 @@
6264
"Operating System :: POSIX",
6365
"Programming Language :: Python :: 3.6",
6466
"Programming Language :: Python :: 3.7",
67+
"Programming Language :: Python :: 3.8",
6568
"Topic :: Software Development :: Code Generators",
6669
"Topic :: Software Development :: Libraries :: Python Modules",
6770
),

0 commit comments

Comments
 (0)