diff options
-rw-r--r-- | setup.py | 6 | ||||
-rw-r--r-- | tox.ini | 7 |
2 files changed, 10 insertions, 3 deletions
@@ -1,5 +1,6 @@ -import sys import os +import sys + from setuptools import setup, Command, find_packages # Pull version from source without importing @@ -23,6 +24,8 @@ class Tox(Command): test_require = ['tox', 'mock'] +if sys.version_info < (2, 7): + test_require.append('unittest2') here = os.path.abspath(os.path.dirname(__file__)) @@ -51,7 +54,6 @@ setup( "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", @@ -1,5 +1,5 @@ [tox] -envlist = py{27,34,35,36,py}, docs +envlist = py{26,27,34,35,36,py}, docs [pytest] testpaths = kafka test @@ -19,12 +19,17 @@ deps = python-snappy lz4 xxhash + py26: unittest2 commands = py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka --cov-config=.covrc} setenv = PROJECT_ROOT = {toxinidir} passenv = KAFKA_VERSION +[testenv:py26] +# pylint doesn't support python2.6 +commands = py.test {posargs:--cov=kafka --cov-config=.covrc} + [testenv:pypy] # pylint is super slow on pypy... commands = py.test {posargs:--cov=kafka --cov-config=.covrc} |