-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
executable file
·36 lines (33 loc) · 1.17 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
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'],
include_package_data=True,
entry_points='''
[console_scripts]
hls_query=nasa_hls.scripts.query:query
hls_download=nasa_hls.scripts.download:download
hls_convert_batch=nasa_hls.scripts.convert:convert_batch
''',
)