Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch/update from maint 0.18 #970

Merged
merged 6 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
siege -C

- name: Start containers
run: docker-compose -f "docker-compose.yml" up -d --build benchmark
run: docker compose -f "docker-compose.yml" up -d --build benchmark

# Let's wait a bit to make sure the docker are up
- name: Sleep for 10 seconds
Expand All @@ -49,7 +49,7 @@ jobs:

- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down
run: docker compose -f "docker-compose.yml" down

- name: Merge Outputs
run: |
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

* Use `.as_dict()` method when passing option to rio-tiler Reader's methods to avoid parameter conflicts when using custom Readers.

## 0.18.6 (2024-08-27)

* Switch back to `fastapi` instead of `fastapi-slim` and use `>=0.109.0` version

## 0.18.5 (2024-07-03)

* Set version requirement for FastAPI to `>=0.111.0`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ docker run --name titiler \
git clone https://github.com/developmentseed/titiler.git
cd titiler

docker-compose up --build titiler # or titiler-uvicorn
docker compose up --build titiler # or titiler-uvicorn
```

Some options can be set via environment variables, see: https://github.com/tiangolo/uvicorn-gunicorn-docker#advanced-usage
Expand Down
8 changes: 7 additions & 1 deletion deployment/aws/lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:${PYTHON_VERSION}

WORKDIR /tmp

# Install system dependencies to compile (numexpr)
RUN yum install -y gcc-c++

RUN python -m pip install pip -U
RUN python -m pip install "titiler.application==0.18.5" "mangum>=0.10.0" "numexpr==2.10.0" -t /asset --no-binary pydantic
RUN python -m pip install "titiler.application==0.18.6" "mangum>=0.10.0" -t /asset --no-binary pydantic

# Reduce package size and remove useless files
RUN cd /asset && find . -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\///' | sed 's/.cpython-[0-9]*//'); cp $f $n; done;
Expand All @@ -14,6 +17,9 @@ RUN cd /asset && find . -type f -a -name '*.py' -print0 | xargs -0 rm -f
RUN find /asset -type d -a -name 'tests' -print0 | xargs -0 rm -rf
RUN rm -rdf /asset/numpy/doc/ /asset/boto3* /asset/botocore* /asset/bin /asset/geos_license /asset/Misc

# Remove system dependencies
RUN yum remove -y gcc-c++

COPY lambda/handler.py /asset/handler.py

CMD ["echo", "hello world"]
4 changes: 2 additions & 2 deletions deployment/k8s/charts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: 0.18.5
appVersion: 0.18.6
description: A dynamic Web Map tile server
name: titiler
version: 1.1.2
version: 1.1.3
icon: https://raw.githubusercontent.com/developmentseed/titiler/main/docs/logos/TiTiler_logo_small.png
maintainers:
- name: emmanuelmathot # Emmanuel Mathot
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: GIS",
]
version="0.18.5"
version="0.18.6"
dependencies = [
"titiler.core==0.18.5",
"titiler.extensions==0.18.5",
"titiler.mosaic==0.18.5",
"titiler.application==0.18.5",
"titiler.core==0.18.6",
"titiler.extensions==0.18.6",
"titiler.mosaic==0.18.6",
"titiler.application==0.18.6",
]

[project.urls]
Expand Down Expand Up @@ -126,7 +126,7 @@ filterwarnings = [
bypass-selection = true

[tool.bumpversion]
current_version = "0.18.5"
current_version = "0.18.6"
parse = """(?x)
(?P<major>\\d+)\\.
(?P<minor>\\d+)\\.
Expand Down
6 changes: 3 additions & 3 deletions src/titiler/application/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"titiler.core==0.18.5",
"titiler.extensions[cogeo,stac]==0.18.5",
"titiler.mosaic==0.18.5",
"titiler.core==0.18.6",
"titiler.extensions[cogeo,stac]==0.18.6",
"titiler.mosaic==0.18.6",
"starlette-cramjam>=0.3,<0.4",
"pydantic-settings~=2.0",
]
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/application/titiler/application/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""titiler.application"""

__version__ = "0.18.5"
__version__ = "0.18.6"
2 changes: 1 addition & 1 deletion src/titiler/core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"fastapi-slim>=0.111.0",
"fastapi>=0.108.0",
"geojson-pydantic>=1.0,<2.0",
"jinja2>=2.11.2,<4.0.0",
"numpy",
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/core/titiler/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""titiler.core"""

__version__ = "0.18.5"
__version__ = "0.18.6"

from . import dependencies, errors, factory, routing # noqa
from .factory import ( # noqa
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/extensions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"titiler.core==0.18.5"
"titiler.core==0.18.6"
]

[project.optional-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/extensions/titiler/extensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""titiler.extensions"""

__version__ = "0.18.5"
__version__ = "0.18.6"

from .cogeo import cogValidateExtension # noqa
from .stac import stacExtension # noqa
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/mosaic/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"titiler.core==0.18.5",
"titiler.core==0.18.6",
"cogeo-mosaic>=7.0,<8.0",
]

Expand Down
2 changes: 1 addition & 1 deletion src/titiler/mosaic/titiler/mosaic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""titiler.mosaic"""

__version__ = "0.18.5"
__version__ = "0.18.6"

from . import errors, factory # noqa
from .factory import MosaicTilerFactory # noqa
Loading