https://github.com/JoeMcEwen/FAST-PT
Revision bec690c74a7a908879961afb5e6e93c7b9e2f79d authored by Jonathan Blazek on 21 November 2019, 23:30:58 UTC, committed by Jonathan Blazek on 21 November 2019, 23:30:58 UTC
1 parent bc706a4
Raw File
Tip revision: bec690c74a7a908879961afb5e6e93c7b9e2f79d authored by Jonathan Blazek on 21 November 2019, 23:30:58 UTC
update version to 3.0.0
Tip revision: bec690c
setup.py
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 (blazek@berkeley.edu)",
    author_email="blazek@berkeley.edu",
    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,
    
)
back to top