|
|
@ -37,29 +37,46 @@ def grep_version():
|
|
|
|
for line in fp:
|
|
|
|
for line in fp:
|
|
|
|
if line.startswith('__version__'):
|
|
|
|
if line.startswith('__version__'):
|
|
|
|
_, _, s = line.partition('=')
|
|
|
|
_, _, s = line.partition('=')
|
|
|
|
return '.'.join(map(str, eval(s)))
|
|
|
|
return '%i.%i.%i%s%i' % eval(s)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def long_description():
|
|
|
|
|
|
|
|
here = os.path.dirname(__file__)
|
|
|
|
|
|
|
|
readme_path = os.path.join(here, 'README.md')
|
|
|
|
|
|
|
|
with open(readme_path) as fp:
|
|
|
|
|
|
|
|
readme = fp.read()
|
|
|
|
|
|
|
|
return readme
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
setup(
|
|
|
|
name = 'mitogen',
|
|
|
|
name = 'mitogen',
|
|
|
|
version = grep_version(),
|
|
|
|
version = grep_version(),
|
|
|
|
description = 'Library for writing distributed self-replicating programs.',
|
|
|
|
description = 'Library for writing distributed self-replicating programs.',
|
|
|
|
|
|
|
|
long_description = long_description(),
|
|
|
|
|
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
author = 'David Wilson',
|
|
|
|
author = 'David Wilson',
|
|
|
|
license = 'New BSD',
|
|
|
|
license = 'New BSD',
|
|
|
|
url = 'https://github.com/dw/mitogen/',
|
|
|
|
url = 'https://github.com/mitogen-hq/mitogen/',
|
|
|
|
packages = find_packages(exclude=['tests', 'examples']),
|
|
|
|
packages = find_packages(exclude=['tests', 'examples']),
|
|
|
|
|
|
|
|
python_requires='>=2.4, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4',
|
|
|
|
zip_safe = False,
|
|
|
|
zip_safe = False,
|
|
|
|
classifiers = [
|
|
|
|
classifiers = [
|
|
|
|
'Environment :: Console',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Intended Audience :: System Administrators',
|
|
|
|
'Intended Audience :: System Administrators',
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
|
|
|
|
'Operating System :: MacOS :: MacOS X',
|
|
|
|
'Operating System :: POSIX',
|
|
|
|
'Operating System :: POSIX',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 2.4',
|
|
|
|
'Programming Language :: Python :: 2.4',
|
|
|
|
'Programming Language :: Python :: 2.5',
|
|
|
|
'Programming Language :: Python :: 2.5',
|
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
|
|
|
|
'Programming Language :: Python :: 3.7',
|
|
|
|
|
|
|
|
'Programming Language :: Python :: 3.8',
|
|
|
|
|
|
|
|
'Programming Language :: Python :: 3.9',
|
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
|
|
'Topic :: System :: Distributed Computing',
|
|
|
|
'Topic :: System :: Distributed Computing',
|
|
|
|
'Topic :: System :: Systems Administration',
|
|
|
|
'Topic :: System :: Systems Administration',
|
|
|
|