From ae7c95dcef56039ab194736f8e184412e6b1445b Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 15 Jan 2018 17:49:51 +0200 Subject: Update version classifiers --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 0c366e1..bc74107 100644 --- a/setup.py +++ b/setup.py @@ -36,11 +36,15 @@ setup( 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: User Interfaces', 'Topic :: Terminals' -- cgit v1.2.1 From 50662a01bd111ebcef1bc583df609e51c013daf4 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 15 Jan 2018 17:50:06 +0200 Subject: Add python_requires to help pip --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index bc74107..caaadee 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ setup( test_suite='nose.collector', url='https://github.com/erikrose/blessings', include_package_data=True, + python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*', classifiers=[ 'Intended Audience :: Developers', 'Natural Language :: English', -- cgit v1.2.1 From 07f24bd51167077da6e8eff35ac14f520a35b674 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 15 Jan 2018 17:51:53 +0200 Subject: Remove redundant code (made redundant by python_requires) --- blessings/__init__.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/blessings/__init__.py b/blessings/__init__.py index 810d367..9e10ebc 100644 --- a/blessings/__init__.py +++ b/blessings/__init__.py @@ -14,7 +14,6 @@ except ImportError: ``io.UnsupportedOperation`` in Python 2""" from os import isatty, environ -from platform import python_version_tuple import struct import sys from termios import TIOCGWINSZ @@ -23,13 +22,6 @@ from termios import TIOCGWINSZ __all__ = ['Terminal'] -if ('3', '0', '0') <= python_version_tuple() < ('3', '2', '2+'): # Good till - # 3.2.10 - # Python 3.x < 3.2.3 has a bug in which tparm() erroneously takes a string. - raise ImportError('Blessings needs Python 3.2.3 or greater for Python 3 ' - 'support due to http://bugs.python.org/issue10570.') - - class Terminal(object): """An abstraction around terminal capabilities -- cgit v1.2.1