-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (26 loc) · 1.05 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
"""
Setup script to install suncet_instrument_simulator as a Python package.
Reads the requirements.txt file to get dependencies.
"""
# -----------------------------------------------------------------------------
# IMPORTS
# -----------------------------------------------------------------------------
from setuptools import find_packages, setup
# -----------------------------------------------------------------------------
# RUN setup() FUNCTION
# -----------------------------------------------------------------------------
# Read in dependencies
with open('requirements.txt', 'r') as txt_file:
requirements = [line.strip() for line in txt_file]
with open('version', 'r') as txt_file:
version_string = [line.strip() for line in txt_file][0]
# Run setup()
setup(
name='suncet_instrument_simulator',
version=version_string,
description='Simulate the Sun Coronal Ejection Tracker observations',
url='https://github.com/suncet/suncet_instrument_simulator',
install_requires=requirements,
packages=find_packages(),
zip_safe=False,
)