forked from lenstronomy/lenstronomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (78 loc) · 2.09 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
import os
import sys
from setuptools import find_packages
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
readme = open("README.rst").read()
doclink = """
Documentation
-------------
The full documentation can be generated with Sphinx"""
history = open("HISTORY.rst").read().replace(".. :changelog:", "")
desc = open("README.rst").read()
requires = [
"numpy>=1.13",
"scipy>=0.19.1",
"configparser",
"astropy",
"mpmath",
"matplotlib",
"scikit-learn",
"numba>=0.43.1",
"corner>=2.2.1",
"scikit-image",
"pyyaml",
"h5py",
"pyxdg",
"schwimmbad",
"multiprocess>=0.70.8",
]
tests_require = [
"pytest>=2.3",
"mock",
"colossus==1.3.0",
"slitronomy==0.3.2",
"emcee>=3.0.0",
"dynesty",
"nestcheck",
"pymultinest",
"zeus-mcmc>=2.4.0",
"nautilus-sampler>=0.2.1",
"coolest",
"starred-astro>=1.4.3",
]
PACKAGE_PATH = os.path.abspath(os.path.join(__file__, os.pardir))
setup(
name="lenstronomy",
version="1.12.0",
description="Strong lens modeling package.",
long_description=desc,
author="lenstronomy developers",
author_email="lenstronomy-dev@googlegroups.com",
url="https://github.com/lenstronomy/lenstronomy",
download_url="https://github.com/lenstronomy/lenstronomy/archive/1.12.0.tar.gz",
packages=find_packages(PACKAGE_PATH, "test"),
package_dir={"lenstronomy": "lenstronomy"},
include_package_data=True,
# setup_requires=requires,
install_requires=requires,
license="BSD-3",
zip_safe=False,
keywords="lenstronomy",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.11",
],
tests_require=tests_require,
)