-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (55 loc) · 2.15 KB
/
setup.py
File metadata and controls
57 lines (55 loc) · 2.15 KB
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Stack Composed
#
# Copyright (C) 2016-2025 Xavier C. Llano, SMBYC
# Email: xavier.corredor.llano@gmail.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'stack_composed', '__init__.py'), encoding='utf-8') as fp:
version = re.search("__version__ = '([^']+)'", fp.read()).group(1)
try:
import pypandoc
# convert md to rst for PyPi
long_description = pypandoc.convert(os.path.join(here, 'README.md'), 'rst')
except(IOError, ImportError):
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='stack-composed',
version=version,
description='Compute and generate the composed of a raster images stack',
long_description=long_description,
author='Xavier C. Llano, SMBYC',
author_email='xavier.corredor.llano@gmail.com',
url='https://github.com/SMByC/StackComposed',
license='GPLv3',
packages=find_packages(),
install_requires=[line.strip() for line in open('requirements.txt').readlines()],
scripts=['bin/stack-composed'],
platforms=['Any'],
keywords='stack composed statistics landsat raster gis',
classifiers=[
"Topic :: Scientific/Engineering :: GIS",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"],
)