-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
43 lines (37 loc) · 1.41 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
#!/usr/bin/env python
from setuptools import setup, find_packages
with open("README.md", "r") as f:
long_description = f.read()
# Get common version number (https://stackoverflow.com/a/7071358)
import re
VERSIONFILE="cosipy/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup(name='cosipy',
version = verstr,
author='COSI Team',
author_email='[email protected]',
url='https://github.com/cositools/cosipy',
packages = find_packages(include=["cosipy", "cosipy.*"]),
install_requires = ["histpy",
"mhealpy",
"scoords",
'astromodels>=2.4.2',
'threeml>=2.1.2',
'matplotlib<=3.8.3',
'numba',
'yayc',
'awscli',
'scipy<=1.13.0'],
description = "High-level analysis for the COSI telescope data",
entry_points={"console_scripts":[
"cosi-response = cosipy.response.FullDetectorResponse:cosi_response",
]},
long_description = long_description,
long_description_content_type="text/markdown",
)