forked from abourget/gevent-socketio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (56 loc) · 1.91 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
import os
from setuptools import setup
from setuptools import find_packages
from setuptools.command.test import test as TestCommand
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
def get_reqs(*fns):
lst = []
for fn in fns:
for package in open(os.path.join(CURRENT_DIR, fn)).readlines():
package = package.strip()
if not package:
continue
lst.append(package.strip())
return lst
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
pytest.main(self.test_args)
setup(
name="gevent-socketio",
version="0.3.6",
description=(
"SocketIO server based on the Gevent pywsgi server, "
"a Python network library"),
author="Jeffrey Gelens",
author_email="jeffrey@noppo.pro",
maintainer="Alexandre Bourget",
maintainer_email="alex@bourget.cc",
license="BSD",
url="https://github.com/abourget/gevent-socketio",
download_url="https://github.com/abourget/gevent-socketio",
install_requires=get_reqs('pip-requirements.txt'),
setup_requires=('versiontools >= 1.7'),
cmdclass = {'test': PyTest},
tests_require=get_reqs('pip-requirements-test.txt'),
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",
],
entry_points="""
[paste.server_runner]
paster = socketio.server:serve_paste
""",
)