Follow-up: support manual py26 testing; dont advertise 3.3 support

This commit is contained in:
Dana Powers
2017-06-16 23:05:17 -07:00
parent b1a6d3301f
commit bb626dbffb
2 changed files with 10 additions and 3 deletions

View File

@@ -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",

View File

@@ -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}