-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (45 loc) · 1.52 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
import os
# Some ugly hack to force the use of buffered output when running tests
import StringIO
StringIO._complain_ifclosed = lambda x: x
from setuptools.command.test import test
def run_tests(self):
try:
import unittest2 as unittest
except ImportError:
import unittest
unittest.main(
None, None, [unittest.__file__]+self.test_args,
testLoader=unittest.loader.defaultTestLoader,
buffer = True
)
test.run_tests = run_tests
from setuptools import setup, find_packages
setup(
name = "kitero",
version = "0.1",
author = "Vincent Bernat",
author_email = "bernat@luffy.cx",
description = "Interface and QoS switcher for router",
# List of provided packages
packages = find_packages(exclude=("tests",)),
package_data = { 'kitero.web': [ 'templates/*.html',
'static/css/*.css',
'static/js/*.js',
'static/images/*.jpg',
'static/images/*.png',
] },
# We provide two services
entry_points = {
'console_scripts': [
'kitero-helper = kitero.helper.serve:_run',
'kitero-web = kitero.web.serve:_run',
]
},
# Dependencies
install_requires = [ x.strip()
for x in file("requirements.txt").readlines()
if x.strip() ],
# Tests
test_suite = 'unittest2.collector',
)