-
Notifications
You must be signed in to change notification settings - Fork 36
/
setup.py
executable file
·58 lines (46 loc) · 2.21 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
53
54
55
#!/usr/bin/env python
'''
Copyright (c) 2016, 2017 Tim Savannah All Rights Reserved.
This software is licensed under the terms of the Lesser GNU General Public License Version 2.1 (LGPLv2.1)
You should have received a copy of this with the source distribution as LICENSE,
otherwise the most up to date license can be found at
https://github.com/kata198/func_timeout/LICENSE
'''
import os
import sys
from setuptools import setup
if __name__ == '__main__':
dirName = os.path.dirname(__file__)
if dirName and os.getcwd() != dirName:
os.chdir(dirName)
summary = 'Python module which allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads'
try:
with open('README.rst', 'rt') as f:
long_description = f.read()
except Exception as e:
sys.stderr.write('Error reading from README.rst: %s\n' %(str(e),))
log_description = summary
setup(name='func_timeout',
version='4.3.5',
packages=['func_timeout'],
author='Tim Savannah',
author_email='[email protected]',
maintainer='Tim Savannah',
url='https://github.com/kata198/func_timeout',
maintainer_email='[email protected]',
description=summary,
long_description=long_description,
license='LGPLv2',
keywords=['function', 'timeout', 'call', 'terminate', 'runtime', 'max', 'seconds', 'after', 'execution'],
classifiers=['Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)