From e2bb5b8b01df491588bb1c475da3369246405fff Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Tue, 6 Mar 2018 19:54:30 +0100 Subject: [PATCH] Drop python 3.4 support, which paves a way for nicer API for asyncio among other things --- .travis.yml | 1 - miio/click_common.py | 4 ++-- setup.py | 4 +--- tox.ini | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index e226c8d37..e2ad1b62d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ sudo: false language: python python: - - "3.4" - "3.5" - "3.6" install: pip install tox-travis coveralls diff --git a/miio/click_common.py b/miio/click_common.py index fdc674eb5..63a16b485 100644 --- a/miio/click_common.py +++ b/miio/click_common.py @@ -3,8 +3,8 @@ This file contains common functions for cli tools. """ import sys -if sys.version_info < (3, 4): - print("To use this script you need python 3.4 or newer, got %s" % +if sys.version_info < (3, 5): + print("To use this script you need python 3.5 or newer, got %s" % sys.version_info) sys.exit(1) import click diff --git a/setup.py b/setup.py index 42b3797d4..352cc1a57 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,6 @@ def readme(): 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', @@ -41,14 +40,13 @@ def readme(): packages=["miio", "mirobo"], - python_requires='>=3.4', + python_requires='>=3.5', install_requires=[ 'construct==2.9.31', 'click', 'cryptography', 'pretty_cron', - 'typing; python_version < "3.5"', 'zeroconf', 'attrs', 'android_backup', diff --git a/tox.ini b/tox.ini index 0fdf3939c..9fe112f95 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,7 @@ [tox] -envlist=py34,py35,py36,py37,flake8,typing +envlist=py35,py36,py37,flake8,typing [tox:travis] -3.4 = py34 3.5 = py35 3.6 = py36 3.7 = py37