added dataclasses backport to setup.py

This commit is contained in:
Chris Pyles 2022-01-06 11:35:01 -08:00
Родитель ffec7cb392
Коммит 3800baf450
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1,4 +1,5 @@
import setuptools
import sys
with open("README.md", "r") as fh:
long_description = fh.read()
@ -6,6 +7,10 @@ with open("README.md", "r") as fh:
with open("requirements.txt") as f:
install_requires = f.readlines()
# add dataclasses backport for python 3.6
if sys.version_info.minor < 7:
install_requires.append("dataclasses")
# get version
env = {}
with open("pybryt/version.py") as f: