-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (28 loc) · 741 Bytes
/
Copy pathsetup.py
File metadata and controls
36 lines (28 loc) · 741 Bytes
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
#!/usr/bin/env python
from distutils.core import setup, Command
from unittest import TextTestRunner, TestLoader
import os
import os.path
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
retval = os.system('python -m test')
if retval != 0:
raise Exception('tests failed')
setup(
name='tornado-proxy',
version='0.1',
description='Simple asynchronous HTTP proxy',
url='http://senko.net/en/',
author='Senko Rasic',
author_email='senko.rasic@dobarkod.hr',
cmdclass={
'test': TestCommand
},
install_requires=['tornado'],
packages=['tornado_proxy'],
)