58 lines
2.2 KiB
Python
Executable File
58 lines
2.2 KiB
Python
Executable File
#!/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.2.0',
|
|
packages=['func_timeout'],
|
|
author='Tim Savannah',
|
|
author_email='kata198@gmail.com',
|
|
maintainer='Tim Savannah',
|
|
url='https://github.com/kata198/func_timeout',
|
|
maintainer_email='kata198@gmail.com',
|
|
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',
|
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
|
]
|
|
)
|
|
|
|
|
|
|