forked from jgelens/gevent-websocket
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
74 lines (58 loc) · 1.9 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import sys
from setuptools import setup, find_packages
def get_package_manifest(filename):
packages = []
with open(filename) as package_file:
for line in package_file.readlines():
line = line.strip()
if not line:
continue
if line.startswith('#'):
# comment
continue
packages.append(line)
return packages
def get_install_requires():
"""
:returns: A list of packages required for installation.
"""
return get_package_manifest('requirements.txt')
def get_tests_requires():
"""
:returns: A list of packages required for running the tests.
"""
packages = get_package_manifest('requirements_dev.txt')
try:
from unittest import mock
except ImportError:
packages.append('mock')
if sys.version_info[:2] < (2, 7):
packages.append('unittest2')
return packages
setup(
name="gevent-websocket",
version="0.4.0",
description=(
"Websocket handler for the gevent pywsgi server, "
"a Python network library"),
long_description=open("README.rst").read(),
author="Nick Joyce",
author_email="[email protected]",
license="BSD",
url="https://github.com/njoyce/gevent-websocket",
download_url="https://github.com/njoyce/gevent-websocket",
install_requires=get_install_requires(),
tests_require=get_tests_requires(),
test_suite='nose.collector',
packages=find_packages(exclude=["examples", "tests"]),
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
],
)