-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
30 lines (28 loc) · 996 Bytes
/
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
#!/usr/bin/python
from setuptools import setup, find_packages, Command
class PyTest(Command):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import pytest
pytest.main('run_test.py')
setup(name='thread_timeout',
version='1.0',
description='''Decorator to execute functionin in
separate thread with timeout''',
author='George Shuklin',
author_email='[email protected]',
url='https://github.com/amarao/thread_timeout',
packages=find_packages(),
install_requires=['wrapt'],
cmdclass = {'test': PyTest},
license='LGPL',
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Topic :: Software Development :: Libraries"
],
)