- the same module name for py3
This commit is contained in:
7
setup.py
7
setup.py
@@ -2,20 +2,17 @@ from setuptools import setup
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
VERSION = "0.16.0"
|
VERSION = "0.16.0"
|
||||||
|
NAME="websocket-client"
|
||||||
|
|
||||||
install_requires = ["six"]
|
install_requires = ["six"]
|
||||||
if sys.version_info[0] == 2:
|
if sys.version_info[0] == 2:
|
||||||
name="websocket-client"
|
|
||||||
install_requires.append('backports.ssl_match_hostname')
|
install_requires.append('backports.ssl_match_hostname')
|
||||||
if sys.version_info[1] < 7:
|
if sys.version_info[1] < 7:
|
||||||
install_requires.append('unittest2')
|
install_requires.append('unittest2')
|
||||||
install_requires.append('argparse')
|
install_requires.append('argparse')
|
||||||
else:
|
|
||||||
# for backword compatible.
|
|
||||||
name="websocket-client-py3"
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=name,
|
name=NAME,
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
description="WebSocket client for python. hybi13 is supported.",
|
description="WebSocket client for python. hybi13 is supported.",
|
||||||
long_description=open("README.rst").read(),
|
long_description=open("README.rst").read(),
|
||||||
|
Reference in New Issue
Block a user