Skip to content

Commit

Permalink
fix: only require dataclases if python<3.7 (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored Jun 23, 2020
1 parent ed244b3 commit 9597695
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ MarkupSafe==1.1.1
protobuf==3.12.2
pypandoc==1.5
PyYAML==5.3.1
dataclasses==0.7
dataclasses==0.6; python_version < '3.7'
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
"protobuf >= 3.12.0",
"pypandoc >= 1.4",
"PyYAML >= 5.1.1",
"dataclasses < 0.7; python_version < '3.7'"
),
extras_require={':python_version<"3.7"': ("dataclasses >= 0.4",),},
tests_require=("pyfakefs >= 3.6",),
python_requires=">=3.6",
classifiers=(
"Development Status :: 4 - Beta",
"Environment :: Console",
Expand All @@ -62,6 +64,7 @@
"Operating System :: POSIX",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Libraries :: Python Modules",
),
Expand Down

0 comments on commit 9597695

Please sign in to comment.