From 25c26881629589949e5877f829f54249deec05b2 Mon Sep 17 00:00:00 2001 From: Artur Balabanov Date: Wed, 27 May 2020 16:17:00 +0100 Subject: [PATCH] fix: Update setup.py, so that it allows for any Python 3.6+ version to be used --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index c1e9dfd4..d2d136ed 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ ) -python_requires = "~=3.6" +python_requires = ">=3.6" setup_requires = ["setuptools_scm"] install_requires = [ "attrs>=18.2.0,<20.0.0", @@ -39,8 +39,8 @@ *test_requires, ] -if sys.version_info[0] == 2: - raise Exception("Only python 3 supported.") +if sys.version_info < (3, 6): + raise RuntimeError("Only Python 3.6+ supported.") def readme() -> str: