diff --git a/docs/sphinx/source/whatsnew/v0.9.1.rst b/docs/sphinx/source/whatsnew/v0.9.1.rst index 685a7880a4..c07bd556af 100644 --- a/docs/sphinx/source/whatsnew/v0.9.1.rst +++ b/docs/sphinx/source/whatsnew/v0.9.1.rst @@ -62,6 +62,8 @@ Documentation Requirements ~~~~~~~~~~~~ * numpy >= 1.16.0 is now required for all python versions. (:pull:`1400`) +* Fix an installation issue with ``dataclasses`` on python 3.6 + (:issue:`1302`, :pull:`1422`) Contributors diff --git a/setup.py b/setup.py index 7301f5eab6..7dc779a16c 100755 --- a/setup.py +++ b/setup.py @@ -43,11 +43,8 @@ 'pytz', 'requests', 'scipy >= 1.2.0', - 'h5py'] - -# include dataclasses as a dependency only on python 3.6 -if sys.version_info.major == 3 and sys.version_info.minor == 6: - INSTALL_REQUIRES.append('dataclasses') + 'h5py', + 'dataclasses; python_version < "3.7"'] TESTS_REQUIRE = ['nose', 'pytest', 'pytest-cov', 'pytest-mock', 'requests-mock', 'pytest-timeout', 'pytest-rerunfailures',