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
|
import re
from io import open
from setuptools import find_packages, setup
# Get the long description from the relevant file
with open("README.rst", encoding="utf-8") as f:
long_description = f.read()
with open("sentinelsat/__init__.py", encoding="utf-8") as f:
version = re.search(r'__version__\s*=\s*"(\S+)"', f.read()).group(1)
setup(
name="sentinelsat",
version=version,
description="Utility to search and download Copernicus Sentinel satellite images",
long_description=long_description,
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Utilities",
],
keywords="copernicus, sentinel, esa, satellite, download, GIS",
author="Kersten Clauss",
author_email="sentinelsat@krstn.eu",
url="https://github.com/sentinelsat/sentinelsat",
license="GPLv3+",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
include_package_data=False,
zip_safe=True,
install_requires=open("requirements.txt").read().splitlines(),
extras_require={
"dev": [
"pandas",
"geopandas",
"shapely",
"pytest >= 3.6.3",
"pytest-vcr",
"pytest-socket",
"requests-mock",
"pyyaml",
"rstcheck < 6",
"sphinx >= 1.3",
"sphinx_rtd_theme",
"flaky",
],
},
entry_points="""
[console_scripts]
sentinelsat=sentinelsat.scripts.cli:cli
""",
)
|