From 34723ad4a40fc703dd4e143c41e90d03a496e660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 2 Sep 2019 21:52:01 +0100 Subject: Drop support for Python 3.4. Python 3.4 lacks the `typing` module, which requires try/catch when importing, making type annotations more verbose than needed. At the time of writing, Debian oldstable has Python 3.5 available, so it sounds like a good default. --- .travis.yml | 1 - README | 2 +- glucometerutils/glucometer.py | 4 ++-- setup.py | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 051add9..fe3eb6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ dist: xenial language: python python: - - 3.4 - 3.5 - 3.6 - 3.7 diff --git a/README b/README index beca768..4f6ce34 100644 --- a/README +++ b/README @@ -103,7 +103,7 @@ even if they are all from the same manufacturer, will use different protocols. If you want to contribute code, please note that the target language -is Python 3.4, and that the style to follow is for the most part PEP8 +is Python 3.5, and that the style to follow is for the most part PEP8 compatible. ## License diff --git a/glucometerutils/glucometer.py b/glucometerutils/glucometer.py index 8f222bc..29502fd 100755 --- a/glucometerutils/glucometer.py +++ b/glucometerutils/glucometer.py @@ -14,9 +14,9 @@ from glucometerutils import common from glucometerutils import exceptions def main(): - if sys.version_info < (3, 4): + if sys.version_info < (3, 5): raise Exception( - 'Unsupported Python version, please use at least Python 3.4') + 'Unsupported Python version, please use at least Python 3.5') parser = argparse.ArgumentParser() subparsers = parser.add_subparsers(dest="action") diff --git a/setup.py b/setup.py index bd85c8e..f4dee67 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ setup( url = 'https://www.flameeyes.com/p/glucometerutils', download_url = 'https://www.flameeyes.com/files/glucometerutils.tgz', keywords = ['glucometer', 'diabetes'], - python_requires = '~=3.4', + python_requires = '~=3.5', classifiers = [ 'Programming Language :: Python', 'Programming Language :: Python :: 3', -- cgit v1.2.3