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