forked from radosuav/pyDMS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
74 lines (67 loc) · 3.01 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env python
#
# This file is part of pyDMS.
# Copyright 2018 Radoslaw Guzinski and contributors listed in the README.md file.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
from setuptools import setup
PROJECT_ROOT = os.path.dirname(__file__)
def read_file(filepath, root=PROJECT_ROOT):
"""
Return the contents of the specified `filepath`.
* `root` is the base path and it defaults to the `PROJECT_ROOT` directory.
* `filepath` should be a relative path, starting from `root`.
"""
try:
# Python 2.x
with open(os.path.join(root, filepath)) as fd:
text = fd.read()
except UnicodeDecodeError:
# Python 3.x
with open(os.path.join(root, filepath), encoding="utf8") as fd:
text = fd.read()
return text
LONG_DESCRIPTION = read_file("README.md")
SHORT_DESCRIPTION = "Python implementation of Data Mining Sharpener (DMS): a decision tree based"+\
" algorithm for sharpening (disaggregation) of low-resolution images using"+\
" high-resolution images."
REQS = ['numpy>=1.10', 'gdal>=3.0', 'scikit-learn', 'scipy', 'numba', 'pyproj>2.2.0']
setup(
name = "pyDMS",
packages = ['pyDMS'],
dependency_links = [],
install_requires = REQS,
version = "1.0",
author = "Radoslaw Guzinski",
author_email = "[email protected]",
maintainer = "Radoslaw Guzinski",
maintainer_email = "[email protected]",
description = SHORT_DESCRIPTION,
license = "GPL",
url = "https://github.com/radosuav/pyDMS/",
long_description = LONG_DESCRIPTION,
classifiers = [
"Development Status :: Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Agricultural Science",
"Topic :: Scientific/Engineering :: Hydrology",
"Topic :: Scientific/Engineering :: Earth Observation"
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 3"],
keywords = ['DMS', 'sata mining sharpener', 'image sharpening', 'disaggregation',
'Remote Sensing'],
zip_safe = False)