-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
46 lines (41 loc) · 1.5 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
43
44
45
46
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
from setuptools import setup, find_packages
import itertools
# Parse the version from the geextract module.
with open('geextract/__init__.py') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'")
continue
#
extra_reqs = {'docs': ['sphinx',
'sphinx-rtd-theme',
'sphinxcontrib-programoutput',
'fiona',
'seaborn',
'matplotlib']}
extra_reqs['all'] = list(set(itertools.chain(*extra_reqs.values())))
with codecs.open('README.rst', encoding='utf-8') as f:
readme = f.read()
setup(name='geextract',
version=version,
description=u"Extract Landsat surface reflectance time-series at given location from google earth engine",
long_description=readme,
classifiers=[],
keywords='Landsat, surface reflectance, google, gee, time-series',
author=u"Loïc Dutrieux",
author_email='[email protected]',
url='https://github.com/loicdtx/landsat-extract-gee.git',
license='GPLv3',
packages=find_packages(),
install_requires=[
'pandas',
'earthengine-api'],
scripts=['geextract/scripts/gee_extract.py',
'geextract/scripts/gee_extract_batch.py'],
test_suite="tests",
extras_require=extra_reqs)