forked from LSSTDESC/CLMM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (40 loc) · 1.63 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
from setuptools import setup, find_packages
import sys
version = sys.version_info
required_py_version = 3.6
if version[0] < int(required_py_version) or\
(version[0] == int(required_py_version) and\
version[1] < required_py_version-int(required_py_version)):
raise SystemError("Minimum supported python version is %.2f"%required_py_version)
# adapted from pip's definition, https://github.com/pypa/pip/blob/master/setup.py
def get_version(rel_path):
with open(rel_path) as file:
for line in file:
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
version = line.split(delim)[1]
return version
raise RuntimeError("Unable to find version string.")
setup(
name='clmm',
version=get_version('clmm/__init__.py'),
author='The LSST DESC CLMM Contributors',
author_email='avestruz@uchicago.edu',
license='BSD 3-Clause License',
url='https://github.com/LSSTDESC/CLMM',
packages=find_packages(),
description='A comprehensive package for galaxy cluster weak lensing',
long_description=open("README.md").read(),
package_data={"": ["README.md", "LICENSE"]},
include_package_data=True,
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD 3-Clause",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python"
],
install_requires=["astropy>=4.0", "numpy", "scipy"],
python_requires='>'+str(required_py_version)
)