1
|
|
|
#!/usr/bin/env python |
2
|
|
|
# -*- encoding: utf-8 -*- |
3
|
|
|
from __future__ import absolute_import |
4
|
|
|
from __future__ import print_function |
5
|
|
|
|
6
|
|
|
import io |
7
|
|
|
import re |
8
|
|
|
from glob import glob |
9
|
|
|
from os.path import basename |
10
|
|
|
from os.path import dirname |
11
|
|
|
from os.path import join |
12
|
|
|
from os.path import splitext |
13
|
|
|
|
14
|
|
|
from setuptools import find_packages |
15
|
|
|
from setuptools import setup |
16
|
|
|
|
17
|
|
|
|
18
|
|
|
def read(*names, **kwargs): |
19
|
|
|
with io.open( |
20
|
|
|
join(dirname(__file__), *names), |
21
|
|
|
encoding=kwargs.get('encoding', 'utf8') |
22
|
|
|
) as fh: |
23
|
|
|
return fh.read() |
24
|
|
|
|
25
|
|
|
|
26
|
|
|
setup( |
27
|
|
|
name='map-parallel', |
28
|
|
|
version='0.2.0', |
29
|
|
|
license='BSD-3-Clause', |
30
|
|
|
description='A drop-in replacement of map/starmap but in parallel with different backends.', |
31
|
|
|
long_description='%s\n%s' % ( |
32
|
|
|
re.compile('^.. start-badges.*^.. end-badges', re.M | re.S).sub('', read('README.rst')), |
33
|
|
|
re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst')) |
34
|
|
|
), |
35
|
|
|
author='Kolen Cheung', |
36
|
|
|
author_email='[email protected]', |
37
|
|
|
url='https://github.com/ickc/python-map_parallel', |
38
|
|
|
packages=find_packages('src'), |
39
|
|
|
package_dir={'': 'src'}, |
40
|
|
|
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], |
41
|
|
|
include_package_data=True, |
42
|
|
|
zip_safe=False, |
43
|
|
|
classifiers=[ |
44
|
|
|
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers |
45
|
|
|
'Development Status :: 5 - Production/Stable', |
46
|
|
|
'Intended Audience :: Developers', |
47
|
|
|
'License :: OSI Approved :: BSD License', |
48
|
|
|
'Operating System :: Unix', |
49
|
|
|
'Operating System :: POSIX', |
50
|
|
|
'Operating System :: Microsoft :: Windows', |
51
|
|
|
'Programming Language :: Python', |
52
|
|
|
'Programming Language :: Python :: 3', |
53
|
|
|
'Programming Language :: Python :: 3.6', |
54
|
|
|
'Programming Language :: Python :: 3.7', |
55
|
|
|
'Programming Language :: Python :: 3.8', |
56
|
|
|
'Programming Language :: Python :: 3.9', |
57
|
|
|
'Programming Language :: Python :: Implementation :: CPython', |
58
|
|
|
'Programming Language :: Python :: Implementation :: PyPy', |
59
|
|
|
# uncomment if you test on these interpreters: |
60
|
|
|
# 'Programming Language :: Python :: Implementation :: IronPython', |
61
|
|
|
# 'Programming Language :: Python :: Implementation :: Jython', |
62
|
|
|
# 'Programming Language :: Python :: Implementation :: Stackless', |
63
|
|
|
'Topic :: Utilities', |
64
|
|
|
], |
65
|
|
|
project_urls={ |
66
|
|
|
'Documentation': 'https://python-map_parallel.readthedocs.io/', |
67
|
|
|
'Changelog': 'https://python-map_parallel.readthedocs.io/en/latest/changelog.html', |
68
|
|
|
'Issue Tracker': 'https://github.com/ickc/python-map_parallel/issues', |
69
|
|
|
}, |
70
|
|
|
keywords=[ |
71
|
|
|
# eg: 'keyword1', 'keyword2', 'keyword3', |
72
|
|
|
], |
73
|
|
|
python_requires='>=3.6', |
74
|
|
|
install_requires=[ |
75
|
|
|
# eg: 'aspectlib==1.1.1', 'six>=1.7', |
76
|
|
|
], |
77
|
|
|
extras_require={ |
78
|
|
|
# eg: |
79
|
|
|
# 'rst': ['docutils>=0.11'], |
80
|
|
|
# ':python_version=="2.6"': ['argparse'], |
81
|
|
|
}, |
82
|
|
|
) |
83
|
|
|
|