-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.py
72 lines (60 loc) · 2 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
from setuptools import setup
from setuptools.command.test import test as TestCommand
import os
import sys
import wsstat
py_version = sys.version_info[:2]
if py_version < (3, 3):
raise Exception("websockets requires Python >= 3.3.")
here = os.path.abspath(os.path.dirname(__file__))
with open('requirements.txt') as f:
dependencies = f.read().splitlines()
long_description = """
WSStat is a tool for stress testing and monitoring the health of websocket servers/connections.
You can find a demo and the project itself at https://github.com/Fitblip/wsstat.
As of right now this tool is still a bit rough around the edges, but stable enough for a v1.
"""
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name='wsstat',
version=wsstat.__version__,
url='http://github.com/fitblip/wsstat/',
author='Ryan Sears',
tests_require=['pytest'],
install_requires=dependencies,
cmdclass={'test': PyTest},
author_email='[email protected]',
description='Websocket health monitoring made simple (and beautiful)',
long_description=long_description,
packages=['wsstat'],
include_package_data=True,
test_suite='test.test_wsstat',
entry_points={
'console_scripts': [
'wsstat = wsstat.main:wsstat_console',
],
},
license = "MIT",
classifiers = [
"License :: OSI Approved :: MIT License",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Testing",
"Environment :: Console",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
extras_require={
'testing': ['pytest'],
},
)