-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (34 loc) · 1.35 KB
/
setup.py
File metadata and controls
43 lines (34 loc) · 1.35 KB
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
from setuptools import setup, find_packages
import os
import re
with open("README.md", "r") as fh:
long_description = fh.read()
# auto-updating version code stolen from RadVel
def get_version():
with open(os.path.join("ForMoSA", "__init__.py"), "r") as f:
for line in f:
match = re.search(r"__version__ = ['\"](.+)['\"]", line)
if match:
return match.group(1)
raise RuntimeError("Unable to find version string.")
def get_requires():
reqs = []
for line in open('requirements.txt', 'r').readlines():
reqs.append(line)
return reqs
description = '''Welcome to ForMoSA, an open-source Python package.
We designed this tool to model exoplanetary atmospheres with a forward modeling approach.
We encourage the community to exploit its capabilities!'''
setup(name='ForMoSA',
version=get_version(),
description='ForMoSA: Forward Modeling Tool for Spectral Analysis',
long_description=description,
url='https://github.com/exoAtmospheres/ForMoSA',
author='P. Palma-Bifani, S. Petrus, M. Ravet, A. Denis, M. Bonnefoy, G. Chauvin, A. Vigan',
author_email='paulina.palma-bifani@oca.eu',
license='BSD 3-Clause License',
packages=find_packages(exclude=["tests"]),
install_requires=get_requires(),
include_package_data = True,
zip_safe=False
)