[3.0] Requires Python 2.6 or higher

This commit is contained in:
Ask Solem 2012-11-12 15:56:30 +00:00
parent 9052d0fd72
commit c1e06243d0
3 changed files with 7 additions and 18 deletions

View File

@ -1,7 +1,8 @@
language: python
python:
- 2.5
- 2.6
- 2.7
- 3.2
- 3.3
install: pip install --use-mirrors tox
script: TOXENV=py$(echo $TRAVIS_PYTHON_VERSION | tr -d .) tox

View File

@ -7,8 +7,8 @@ import codecs
extra = {}
PY3 = sys.version_info[0] == 3
if sys.version_info < (2, 4):
raise Exception('Kombu requires Python 2.4 or higher.')
if sys.version_info < (2, 6):
raise Exception('Kombu requires Python 2.6 or higher.')
try:
from setuptools import setup
@ -138,9 +138,10 @@ setup(
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',

15
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = py25,py26,py27,py33,pypy
envlist = py26,py27,py33,pypy
[testenv]
distribute = True
@ -83,19 +83,6 @@ commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
--cover3-html-dir={toxinidir}/cover \
--cover3-xml-file={toxinidir}/coverage.xml
[testenv:py25]
basepython = python2.5
deps = -r{toxinidir}/requirements/default.txt
-r{toxinidir}/requirements/py25.txt
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/test-ci.txt
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
nosetests --with-xunit \
--xunit-file={toxinidir}/nosetests.xml \
--with-coverage3 --cover3-xml \
--cover3-html-dir={toxinidir}/cover \
--cover3-xml-file={toxinidir}/coverage.xml
[testenv:pypy]
basepython = pypy
deps = -r{toxinidir}/requirements/default.txt