mirror of
https://github.com/nikdoof/python-ts3.git
synced 2025-12-17 03:49:25 +00:00
Unittest2 support for Py2.6
This commit is contained in:
7
setup.py
7
setup.py
@@ -1,8 +1,13 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from ts3 import __version__
|
from ts3 import __version__
|
||||||
|
|
||||||
|
test_require = ['mock']
|
||||||
|
if sys.version < '2.7':
|
||||||
|
test_require.append('unittest2')
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="python-ts3",
|
name="python-ts3",
|
||||||
version=__version__,
|
version=__version__,
|
||||||
@@ -14,7 +19,7 @@ setup(
|
|||||||
packages=['ts3'],
|
packages=['ts3'],
|
||||||
scripts=['examples/gents3privkey.py'],
|
scripts=['examples/gents3privkey.py'],
|
||||||
test_suite='ts3.test.suite',
|
test_suite='ts3.test.suite',
|
||||||
|
test_require=test_require,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'License :: OSI Approved :: BSD License',
|
'License :: OSI Approved :: BSD License',
|
||||||
'Topic :: Internet',
|
'Topic :: Internet',
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
import unittest
|
|
||||||
|
try:
|
||||||
|
import unittest2 as unittest
|
||||||
|
except ImportError:
|
||||||
|
import unittest
|
||||||
import socket
|
import socket
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|||||||
Reference in New Issue
Block a user