Skip to content

Commit

Permalink
Be consistent about the versions of Python we support. Close #128.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrose committed Jan 18, 2018
2 parents 8edd8fd + 07f24bd commit dd9dfd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 0 additions & 8 deletions blessings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class IOUnsupportedOperation(Exception):
``io.UnsupportedOperation`` in Python 2"""

from os import isatty, environ
from platform import python_version_tuple
import struct
import sys
from termios import TIOCGWINSZ
Expand All @@ -23,13 +22,6 @@ class IOUnsupportedOperation(Exception):
__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
Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
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',
Expand All @@ -36,11 +37,15 @@
'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'
Expand Down

0 comments on commit dd9dfd2

Please sign in to comment.