Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit e4a887e

Browse files
committed
Added testing configuration for Python 2.6, 2.7, 3.1, 3.2, 3.3, 3.4
1 parent d154bef commit e4a887e

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
build
44
dist
55
*.egg-info
6+
.tox/

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
import sys
2-
if sys.version_info < (2, 6):
3-
print(sys.stderr, "{}: need Python 2.6 or later.".format(sys.argv[0]))
4-
print(sys.stderror, "Your python is {}".format(sys.version))
5-
sys.exit(1)
6-
71
from setuptools import setup
82

93
setup(
@@ -25,7 +19,13 @@
2519
'Operating System :: OS Independent',
2620
'Programming Language :: Python',
2721
'Programming Language :: Python :: 2',
22+
'Programming Language :: Python :: 2.6',
23+
'Programming Language :: Python :: 2.7',
2824
'Programming Language :: Python :: 3',
25+
'Programming Language :: Python :: 3.1',
26+
'Programming Language :: Python :: 3.2',
27+
'Programming Language :: Python :: 3.3',
28+
'Programming Language :: Python :: 3.4',
2929
'Topic :: System :: Logging',
3030
]
3131
)

tox.ini

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[tox]
2+
envlist = py26, py27, py31, py32, py33, py34
3+
4+
[testenv:py26]
5+
commands = python -m discover
6+
deps = discover
7+
8+
[testenv:py27]
9+
commands = python -m unittest discover
10+
11+
[testenv:py31]
12+
commands = python -m discover
13+
deps = discover
14+
15+
[testenv:py32]
16+
commands = python -m unittest discover
17+
18+
[testenv:py33]
19+
commands = python -m unittest discover
20+
21+
[testenv:py34]
22+
commands = python -m unittest discover

0 commit comments

Comments
 (0)