-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
47 lines (42 loc) · 1.66 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
from setuptools import setup, find_packages
import pathlib
import re
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (here / 'README.md').read_text(encoding='utf-8')
# Only uses numpy and multiprocessing
dependencies = ['numpy']
# Read in the version from mockmpi/_version.py
# cf. http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
version_file = (here / 'mockmpi' / '_version.py')
verstrline = version_file.read_text(encoding='utf-8')
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
version = mo.group(1)
print('mockmpi version is %s'%(version))
setup(
name='MockMPI',
version=version,
description='A tool for mocking mpi4py for testing',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/rmjarvis/MockMPI',
download_url='https://github.com/rmjarvis/MockMPI/releases/tag/v%s.zip'%version,
author='Mike Jarvis and collaborators',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
],
keywords='MPI, development, unittesting',
packages=['mockmpi'],
python_requires='>=3.5',
install_requires=dependencies,
)