-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (25 loc) · 801 Bytes
/
Copy pathsetup.py
File metadata and controls
28 lines (25 loc) · 801 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
#!/usr/bin/env python
from distutils.core import setup, Command
class RunTestsCommand(Command):
"""
Run tests with `setup.py test`
"""
user_options=[]
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import classtools.tests
if not classtools.tests.runtests():
raise SystemExit(1)
setup(name='classtools',
version='0.1',
description='Functools for classes',
author='Toby Davies',
author_email='tobyodavies@gmail.com',
url='https://github.com/tobyodavies/python-classtools/',
packages=['classtools', 'classtools.tests'],
requires=['pytest (>=2.0)'],
cmdclass={'test': RunTestsCommand}
)