Skip to content

Commit

Permalink
Fix conditional dependency on dataclasses (pvlib#1422)
Browse files Browse the repository at this point in the history
* better conditional dependency on dataclasses

* whatsnew
  • Loading branch information
kandersolar authored Mar 17, 2022
1 parent 27cba7a commit e3baa12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.9.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,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
Expand Down
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e3baa12

Please sign in to comment.