forked from ec-jrc/nrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (45 loc) · 1.52 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
47
48
49
50
51
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
from setuptools import setup, find_packages
import os
# Parse the version from the main __init__.py
with open('nrt/__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
with codecs.open('README.rst', encoding='utf-8') as f:
readme = f.read()
extra_reqs = {'tests': ['pytest'],
'docs': ['sphinx', 'sphinx_rtd_theme']}
setup(name='nrt',
version=version,
description=u"Online monitoring with xarray",
long_description_content_type="text/x-rst",
long_description=readme,
keywords='sentinel2, xarray, datacube, monitoring, change',
author=u"Loic Dutrieux, Jonas Viehweger, Chris Holden",
author_email='[email protected]',
url='https://jeodpp.jrc.ec.europa.eu/apps/gitlab/use_cases/canhemon/nrt.git',
license='EUPL-v1.2',
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
packages=find_packages(),
package_data={'nrt': ['data/*.nc', 'data/*.tif', 'data/*.json']},
install_requires=[
'numpy',
'scipy',
'xarray',
'rasterio',
'netCDF4',
'numba',
'pandas',
'affine'
],
extras_require=extra_reqs)