forked from progrium/ginkgo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (37 loc) · 1.09 KB
/
Copy pathsetup.py
File metadata and controls
44 lines (37 loc) · 1.09 KB
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
#!/usr/bin/env python
import os
from setuptools import Command
from setuptools import setup
def shell(cmdline):
args = cmdline.split(' ')
os.execlp(args[0], *args)
class GToolsCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
class TestCommand(GToolsCommand):
description = "run tests with nose"
def run(self):
shell("nosetests")
class CoverageCommand(GToolsCommand):
description = "run test coverage report with nose"
def run(self):
shell("nosetests --with-coverage --cover-package=gevent_tools")
setup(
name='gevent_tools',
version='0.1.0',
author='Jeff Lindsay',
author_email='jeff.lindsay@twilio.com',
description='gevent related goodies',
packages=['gevent_tools'],
install_requires=['gevent==0.13.3', 'setproctitle', 'nose', 'python-daemon',],
data_files=[],
entry_points={
'console_scripts': [
'serviced = gevent_tools.runner:main',]},
cmdclass={
'test': TestCommand,
'coverage': CoverageCommand,}
)