From 82b58df99386a1a9b2b61f10c46a0b677692f5ad Mon Sep 17 00:00:00 2001 From: Ziyao Zhang Date: Tue, 1 Sep 2020 22:53:50 -0700 Subject: [PATCH 1/2] Install dataclasses backport for python 3.6 only --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 028600ce..f4c97379 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,9 @@ packages = ['p5'] -requires = [] +requires = [ + 'dataclasses;python_version=="3.6"' +] with open("requirements.txt", "r", encoding="UTF-8") as f: require = f.read().split("\n") From a6a59adbf11c1d0980d00206dfdbb87c7f76eaae Mon Sep 17 00:00:00 2001 From: Ziyao Zhang Date: Tue, 1 Sep 2020 22:54:09 -0700 Subject: [PATCH 2/2] Restrict python version to 3.6+ --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index f4c97379..cecf817a 100644 --- a/setup.py +++ b/setup.py @@ -60,10 +60,9 @@ 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', ], )