setup.py 1.56 KiB
# -*- coding: utf-8 -*-
import setuptools

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

with open("scenes/__init__.py", "r", encoding="utf-8") as fh:
    for line in fh.readlines():
        if "__version__" in line:
            version = line.split('"')[1]
assert version, "Unable to find __version__ in `scenes/__init__.py` (missing? single quotes used?)"

setuptools.setup(
    name="scenes",
    version=version,
    author="Rémi Cresson",
    author_email="remi.cresson@inrae.fr",
    description="Library to ease the processing of local remote sensing products",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://gitlab.irstea.fr/remi.cresson/scenes",
    classifiers=[
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Topic :: Scientific/Engineering :: GIS",
        "Topic :: Scientific/Engineering :: Image Processing",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
    ],
    packages=setuptools.find_packages(),
    python_requires=">=3.6",
    install_requires=["rtree", "pyotb>=1.5.2", "requests", "tqdm", "pystac-client", "appdirs"],
    keywords=["remote sensing", "otb", "orfeotoolbox", "orfeo", "pyotb", "stac"],
    scripts=["apps/drs_spot67_import.py", "apps/s2_download.py", "apps/s2_import.py", "apps/search.py"]
)