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

Commit b8f0066

Browse files
committed
Merge pull request #15 from svisser/python3_support
Added testing configuration for Python 2.6, 2.7, 3.1, 3.2, 3.3, 3.4
2 parents 11194be + c0bd522 commit b8f0066

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
if sys.version_info < (2, 6):
33
print(sys.stderr, "{}: need Python 2.6 or later.".format(sys.argv[0]))
4-
print(sys.stderror, "Your python is {}".format(sys.version))
4+
print(sys.stderror, "Your Python is {}".format(sys.version))
55
sys.exit(1)
66

77
from setuptools import setup
@@ -25,7 +25,13 @@
2525
'Operating System :: OS Independent',
2626
'Programming Language :: Python',
2727
'Programming Language :: Python :: 2',
28+
'Programming Language :: Python :: 2.6',
29+
'Programming Language :: Python :: 2.7',
2830
'Programming Language :: Python :: 3',
31+
'Programming Language :: Python :: 3.1',
32+
'Programming Language :: Python :: 3.2',
33+
'Programming Language :: Python :: 3.3',
34+
'Programming Language :: Python :: 3.4',
2935
'Topic :: System :: Logging',
3036
]
3137
)

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)