47 строки
1.1 KiB
Python
47 строки
1.1 KiB
Python
"""Setup for pctiler."""
|
|
|
|
from typing import List
|
|
from setuptools import find_packages, setup
|
|
|
|
# Runtime requirements, see environment.yaml
|
|
inst_reqs: List[str] = [
|
|
"fastapi-slim==0.111.0",
|
|
"geojson-pydantic==1.1.0",
|
|
"jinja2==3.1.4",
|
|
"pystac==1.10.1",
|
|
"planetary-computer==1.0.0",
|
|
"rasterio==1.3.10",
|
|
"titiler.core==0.18.3",
|
|
"titiler.mosaic==0.18.3",
|
|
"pillow==10.3.0",
|
|
"pydantic>=2.7,<2.8",
|
|
"idna>=3.7.0",
|
|
"requests==2.32.3",
|
|
# titiler-pgstac
|
|
"psycopg[binary,pool]",
|
|
"titiler.pgstac==1.3.0",
|
|
# colormap dependencies
|
|
"matplotlib==3.9.0",
|
|
"orjson==3.10.4",
|
|
"importlib_resources>=1.1.0;python_version<'3.9'",
|
|
]
|
|
|
|
extra_reqs = {
|
|
"dev": ["types-requests"],
|
|
"server": [
|
|
"uvicorn[standard]==0.30.1",
|
|
],
|
|
}
|
|
|
|
setup(
|
|
name="pctiler",
|
|
python_requires=">=3.7",
|
|
description="Planetary Computer API - Tiler.",
|
|
packages=find_packages(exclude=["tests"]),
|
|
package_data={"pctiler": ["endpoints/templates/*.html"]},
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
install_requires=inst_reqs,
|
|
extras_require=extra_reqs,
|
|
)
|