best-practice-and-impact / gptables

Good Practice Tables - an XlsxWriter wrapper to write consistently formatted statistical tables to Excel.
http://gptables.rtfd.io
Other
35 stars 4 forks source link

Specify that dataclasses is only required for Python 3.6 #199

Closed rowanhemsi closed 1 year ago

rowanhemsi commented 2 years ago

Is your feature request related to a problem? Please describe. dataclasses is currently required for all users of gptables (python 3.6-3.10), however it is included as a part of python 3.7+. The two latest versions (0.7 and 0.8) of the dataclasses backport aren't compatible for python 3.7+, so users will have the earlier dataclasses 0.6 installed.

Describe the solution you'd like Only install dataclasses for python 3.6, eg dataclasses; python_version<"3.7"

Describe alternatives you've considered We could remove support for python 3.6, however it may still be in use in some organisations

Links PEP 508 may be relevant