Skip to content

Commit

Permalink
update for titiler 0.20 (#62)
Browse files Browse the repository at this point in the history
* update for titiler 0.20

* fix
  • Loading branch information
vincentsarago authored Jan 21, 2025
1 parent 776fb29 commit 87d1fc4
Show file tree
Hide file tree
Showing 11 changed files with 219 additions and 312 deletions.
56 changes: 1 addition & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -88,57 +88,3 @@ jobs:
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m hatch publish
publish-docker:
needs: [tests]
if: github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Github
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set tag version
id: tag
run: |
echo "version=${GITHUB_REF#refs/*/}"
echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
# Push `latest` when commiting to main
- name: Build and push
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v2
with:
# See https://github.com/developmentseed/titiler/discussions/387
platforms: linux/amd64
context: .
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
# Push `{VERSION}` when pushing a new tag
- name: Build and push
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: docker/build-push-action@v2
with:
# See https://github.com/developmentseed/titiler/discussions/387
platforms: linux/amd64
context: .
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ steps.tag.outputs.tag }}
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.13.0 (2025-01-20)

* remove python 3.8 support
* update titiler dependency to `>=0.20,<0.21`
* remove docker image publishing

# 0.12.2 (2024-04-24)

* update titiler dependency to `>=0.16,<0.19`
Expand Down
23 changes: 0 additions & 23 deletions Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,25 +169,6 @@ rio-viz supports Mapbox VectorTiles encoding from a raster array. This feature w

![](https://user-images.githubusercontent.com/10407788/56853984-4713b800-68fd-11e9-86a2-efbb041daeb0.gif)

## Docker

Ready to use docker image can be found on Github registry.

- https://github.com/developmentseed/rio-viz/pkgs/container/rio-viz

```bash
docker run \
--volume "$PWD":/data \
--platform linux/amd64 \
--rm -it -p 8080:8080 ghcr.io/developmentseed/rio-viz:latest \
rio viz --host 0.0.0.0 /data/your-file.tif
```

Notes:
- `--platform linux/amd64` is only needed if you are using latest MacOS M1 machines
- `--volume "$PWD":/data` is needed to mount your local directory to the docker image
- rio-viz's option `--host 0.0.0.0` is required to access the web server

## Contribution & Development

See [CONTRIBUTING.md](https://github.com/developmentseed/rio-viz/blob/main/CONTRIBUTING.md)
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rio-viz"
description = "Visualize Cloud Optimized GeoTIFF in browser"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = {file = "LICENSE"}
authors = [
{name = "Vincent Sarago", email = "[email protected]"},
Expand All @@ -11,26 +11,26 @@ classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: GIS",
]
dynamic = ["version"]
dependencies = [
"braceexpand",
"rio-cogeo>=5.0",
"titiler.core>=0.16.0,<0.19",
"starlette-cramjam>=0.3,<0.4",
"titiler.core>=0.20.0,<0.21",
"starlette-cramjam>=0.4,<0.5",
"uvicorn",
"server-thread>=0.2.0",
]

[project.optional-dependencies]
mvt = [
"rio-tiler-mvt>=0.1,<0.2",
"rio-tiler-mvt>=0.2,<0.3",
]
test = [
"pytest",
Expand Down
Loading

0 comments on commit 87d1fc4

Please sign in to comment.