This repository has been archived by the owner on Feb 3, 2022. It is now read-only.
forked from Applied-GeoSolutions/multitemporal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (48 loc) · 1.64 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
52
53
54
55
56
import imp
from setuptools import setup, Extension, find_packages
import numpy
from Cython.Build import cythonize
from Cython.Distutils import build_ext
from Cython.Compiler import Options
# in the future may want to port to 3; see:
# https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html#compiler-directives
Options.language_level = 2 # as in python 2; silences a warning
__version__ = imp.load_source('multitemporal.version', 'multitemporal/version.py').__version__
extensions = [
Extension('multitemporal.bin.*',
['multitemporal/bin/*.pyx'],
include_dirs=[numpy.get_include()],)
]
setup(
name='multitemporal',
version=__version__,
description='Efficient, chainable time series processing of raster stacks',
url='https://gitlab.com/rbraswell/multitemporal.git',
author='Bobby H. Braswell',
author_email='rbraswell@ags.io',
# it's not clear what classifiers are appropriate and anyway it only matters for pypi:
#classifiers=[
# 'Programming Language :: Python :: 2.7',
# 'Programming Language :: Cython :: 0.26',
#],
license='GPLv3',
python_requires='>=3',
packages=find_packages(),
install_requires=[
'numpy',
'sharedmem',
],
entry_points={
'console_scripts': [
'multitemporal=multitemporal.mt:main'
]
},
zip_safe=False,
cmdclass = {'build_ext': build_ext},
ext_modules = cythonize(extensions),
setup_requires=['pytest-runner'],
tests_require=['pytest', 'numpy', 'sharedmem'],
package_data={
'multitemporal.test': ['*.json', '*.sh', '*.tgz']
}
)