-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
28 lines (26 loc) · 1008 Bytes
/
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
from setuptools import setup
def find_version(path):
import re
# path shall be a plain ascii text file.
s = open(path, 'rt').read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
s, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Version not found")
setup(
name="runtests",
version=find_version("runtests/version.py"),
author="Yu Feng, Nick Hand",
author_email="rainwoodman@gmail.com",
url="http://github.com/rainwoodman/runtests",
description="Simple testing of fresh package builds using pytest, with optional mpi4py support",
zip_safe = False,
package_dir = {'runtests': 'runtests'},
install_requires=['pytest', 'coverage'],
license='BSD-2-Clause',
packages= ['runtests', 'runtests.mpi'],
requires=['pytest', 'coverage'],
package_data = {'runtests' : ['tests/*.py', 'mpi/tests/*.py']},
extras_require={'full':['mpi4py'], 'mpi':['mpi4py']}
)