2010-12-28 15:42:43 +09:00
|
|
|
from setuptools import setup
|
2014-04-25 08:27:50 +09:00
|
|
|
import sys
|
2010-12-28 15:42:43 +09:00
|
|
|
|
2016-04-14 09:27:13 +09:00
|
|
|
VERSION = "0.37.0"
|
2015-03-10 15:35:38 +09:00
|
|
|
NAME="websocket_client"
|
2011-01-04 12:49:30 +09:00
|
|
|
|
2014-04-25 08:27:50 +09:00
|
|
|
install_requires = ["six"]
|
2015-03-11 11:15:57 +09:00
|
|
|
tests_require = []
|
2015-02-23 13:34:11 +09:00
|
|
|
if sys.version_info[0] == 2:
|
|
|
|
if sys.version_info[1] < 7 or (sys.version_info[1] == 7 and sys.version_info[2]< 9):
|
2015-01-25 12:00:04 -06:00
|
|
|
install_requires.append('backports.ssl_match_hostname')
|
2015-02-23 13:34:11 +09:00
|
|
|
if sys.version_info[1] < 7:
|
2015-03-11 11:15:57 +09:00
|
|
|
tests_require.append('unittest2==0.8.0')
|
2014-05-16 09:15:06 +09:00
|
|
|
install_requires.append('argparse')
|
2011-01-04 12:49:30 +09:00
|
|
|
|
2010-12-28 15:42:43 +09:00
|
|
|
setup(
|
2014-07-16 10:00:27 +09:00
|
|
|
name=NAME,
|
2011-01-04 12:49:30 +09:00
|
|
|
version=VERSION,
|
2012-01-18 09:46:35 +09:00
|
|
|
description="WebSocket client for python. hybi13 is supported.",
|
2011-03-02 13:33:50 +09:00
|
|
|
long_description=open("README.rst").read(),
|
2010-12-28 15:42:43 +09:00
|
|
|
author="liris",
|
|
|
|
author_email="liris.pp@gmail.com",
|
|
|
|
license="LGPL",
|
|
|
|
url="https://github.com/liris/websocket-client",
|
2013-02-12 12:01:53 +09:00
|
|
|
classifiers=[
|
2014-07-16 10:07:06 +09:00
|
|
|
"Development Status :: 4 - Beta",
|
2011-01-04 12:49:30 +09:00
|
|
|
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
2010-12-28 15:42:43 +09:00
|
|
|
"Programming Language :: Python",
|
2014-07-17 14:54:07 +09:00
|
|
|
"Programming Language :: Python :: 2",
|
|
|
|
"Programming Language :: Python :: 3 ",
|
2010-12-28 15:42:43 +09:00
|
|
|
"Operating System :: MacOS :: MacOS X",
|
|
|
|
"Operating System :: POSIX",
|
|
|
|
"Operating System :: Microsoft :: Windows",
|
|
|
|
"Topic :: Internet",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
],
|
2013-03-08 08:57:27 +09:00
|
|
|
keywords='websockets',
|
2014-03-18 09:16:39 +09:00
|
|
|
scripts=["bin/wsdump.py"],
|
2014-04-25 08:27:50 +09:00
|
|
|
install_requires=install_requires,
|
2014-10-07 09:28:13 +09:00
|
|
|
packages=["websocket", "websocket.tests"],
|
2014-03-19 06:42:06 +09:00
|
|
|
package_data={
|
2014-10-07 09:28:13 +09:00
|
|
|
'websocket.tests': ['data/*.txt'],
|
2014-03-19 06:42:06 +09:00
|
|
|
'websocket': ["cacert.pem"]
|
|
|
|
},
|
2015-03-11 11:15:57 +09:00
|
|
|
tests_require=tests_require,
|
|
|
|
test_suite="websocket.tests.test_websocket",
|
2010-12-28 15:42:43 +09:00
|
|
|
)
|