Skip to content

Commit 417c902

Browse files
committed
test requirements based on Python version
1 parent ee83fd7 commit 417c902

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
import sys
23
try:
34
from setuptools import setup
45
except ImportError:
56
from distutils.core import setup
67

8+
test_require = ['unittest2', 'cherrypy']
9+
if sys.version_info < (3, 0):
10+
test_require.append('gevent')
11+
712
setup(name = "ws4py",
813
version = '0.3.0',
914
description = "WebSocket library for Python",
@@ -12,7 +17,7 @@
1217
url = "https://github.com/Lawouach/WebSocket-for-Python",
1318
download_url = "http://www.defuze.org/oss/ws4py/",
1419
packages = ["ws4py", "ws4py.client", "ws4py.server"],
15-
tests_require=['unittest2', 'gevent', 'cherrypy'],
20+
tests_require=test_require,
1621
test_suite='unittest2.collector',
1722
platforms = ["any"],
1823
license = 'BSD',

0 commit comments

Comments
 (0)