-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsetup.py
31 lines (28 loc) · 1.16 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
import os, re
from setuptools import setup, find_packages
# Read in the fastpt version from fastpt/info.py
# cf. http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
version_file=os.path.join('fastpt','info.py')
verstrline = open(version_file, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
fastpt_version = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (version_file,))
print('FASTPT version is %s'%(fastpt_version))
setup(
name='fast-pt',
description=(
"FAST-PT is a code to calculate quantities in cosmological "
"perturbation theory at 1-loop (including, e.g., corrections to the "
"matter power spectrum)."),
author="Joseph E. McEwen, Xiao Fang, and Jonathan Blazek ([email protected])",
author_email="[email protected]",
packages=find_packages(),
install_requires=['numpy', 'scipy', 'matplotlib'],
version=fastpt_version,
license="MIT license",
url="https://github.com/JoeMcEwen/FAST-PT",
download_url="https://github.com/JoeMcEwen/FAST-PT/archive/v%s.zip"%fastpt_version,
)