forked from benmack/nasa_hls
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·29 lines (26 loc) · 947 Bytes
/
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
import os
from setuptools import setup, find_packages
def get_version():
for line in open(os.path.join(os.path.dirname(__file__), 'nasa_hls', '__init__.py')):
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"').strip("'")
return version
def parse_requirements(file):
return sorted(set(
line.partition('#')[0].strip()
for line in open(os.path.join(os.path.dirname(__file__), file))
) - set(''))
setup(
name='nasa_hls',
version=get_version(),
url='https://github.com/benmack/nasa_hls',
license='MIT',
author='Benjamin Mack',
author_email='[email protected]',
description='Download data from NASA\'s Harmonized Landsat and Sentinel-2 project.',
packages=find_packages(),
install_requires=parse_requirements("requirements.txt"),
setup_requires=["pytest-runner"],
tests_require=['pytest'],
)