From 6ddd1393a57b9dc248b266e5530755a3dac9b1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 28 Dec 2017 12:53:21 +0000 Subject: Raise minimum Python version to 3.4, to allow using the enum module. Supporting older Python is becoming harder, and modern Python is more readable, particularly as it allows for less brittle code. --- glucometer.py | 4 ++-- setup.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/glucometer.py b/glucometer.py index 88c44b4..9ec781c 100755 --- a/glucometer.py +++ b/glucometer.py @@ -17,9 +17,9 @@ from glucometerutils import common from glucometerutils import exceptions def main(): - if sys.version_info < (3, 2): + if sys.version_info < (3, 4): raise Exception( - 'Unsupported Python version, please use at least Python 3.2') + 'Unsupported Python version, please use at least Python 3.4') parser = argparse.ArgumentParser() subparsers = parser.add_subparsers(dest="action") diff --git a/setup.py b/setup.py index bab64ee..6802ed4 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,7 @@ setup( url = 'https://www.flameeyes.eu/projects/glucometerutils', download_url = 'https://www.flameeyes.eu/files/glucometerutils.tgz', keywords = ['glucometer', 'diabetes'], + python_requires = '~=3.4', classifiers = [ 'Programming Language :: Python', 'Programming Language :: Python :: 3', -- cgit v1.2.3