Skip to content

Commit 87d1fc4

Browse files
update for titiler 0.20 (#62)
* update for titiler 0.20 * fix
1 parent 776fb29 commit 87d1fc4

File tree

11 files changed

+219
-312
lines changed

11 files changed

+219
-312
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
strategy:
1717
matrix:
1818
python-version:
19-
- '3.8'
2019
- '3.9'
2120
- '3.10'
2221
- '3.11'
2322
- '3.12'
23+
- '3.13'
2424

2525
steps:
2626
- uses: actions/checkout@v4
@@ -88,57 +88,3 @@ jobs:
8888
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
8989
run: |
9090
python -m hatch publish
91-
92-
93-
publish-docker:
94-
needs: [tests]
95-
if: github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
96-
runs-on: ubuntu-latest
97-
steps:
98-
- name: Checkout
99-
uses: actions/checkout@v2
100-
101-
- name: Set up QEMU
102-
uses: docker/setup-qemu-action@v1
103-
104-
- name: Set up Docker Buildx
105-
uses: docker/setup-buildx-action@v1
106-
107-
- name: Login to Github
108-
uses: docker/login-action@v1
109-
with:
110-
registry: ghcr.io
111-
username: ${{ github.actor }}
112-
password: ${{ secrets.GITHUB_TOKEN }}
113-
114-
- name: Set tag version
115-
id: tag
116-
run: |
117-
echo "version=${GITHUB_REF#refs/*/}"
118-
echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
119-
120-
# Push `latest` when commiting to main
121-
- name: Build and push
122-
if: github.ref == 'refs/heads/main'
123-
uses: docker/build-push-action@v2
124-
with:
125-
# See https://github.com/developmentseed/titiler/discussions/387
126-
platforms: linux/amd64
127-
context: .
128-
file: Dockerfile
129-
push: true
130-
tags: |
131-
ghcr.io/${{ github.repository }}:latest
132-
133-
# Push `{VERSION}` when pushing a new tag
134-
- name: Build and push
135-
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
136-
uses: docker/build-push-action@v2
137-
with:
138-
# See https://github.com/developmentseed/titiler/discussions/387
139-
platforms: linux/amd64
140-
context: .
141-
file: Dockerfile
142-
push: true
143-
tags: |
144-
ghcr.io/${{ github.repository }}:${{ steps.tag.outputs.tag }}

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.13.0 (2025-01-20)
2+
3+
* remove python 3.8 support
4+
* update titiler dependency to `>=0.20,<0.21`
5+
* remove docker image publishing
6+
17
# 0.12.2 (2024-04-24)
28

39
* update titiler dependency to `>=0.16,<0.19`

Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -169,25 +169,6 @@ rio-viz supports Mapbox VectorTiles encoding from a raster array. This feature w
169169

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

172-
## Docker
173-
174-
Ready to use docker image can be found on Github registry.
175-
176-
- https://github.com/developmentseed/rio-viz/pkgs/container/rio-viz
177-
178-
```bash
179-
docker run \
180-
--volume "$PWD":/data \
181-
--platform linux/amd64 \
182-
--rm -it -p 8080:8080 ghcr.io/developmentseed/rio-viz:latest \
183-
rio viz --host 0.0.0.0 /data/your-file.tif
184-
```
185-
186-
Notes:
187-
- `--platform linux/amd64` is only needed if you are using latest MacOS M1 machines
188-
- `--volume "$PWD":/data` is needed to mount your local directory to the docker image
189-
- rio-viz's option `--host 0.0.0.0` is required to access the web server
190-
191172
## Contribution & Development
192173

193174
See [CONTRIBUTING.md](https://github.com/developmentseed/rio-viz/blob/main/CONTRIBUTING.md)

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rio-viz"
33
description = "Visualize Cloud Optimized GeoTIFF in browser"
44
readme = "README.md"
5-
requires-python = ">=3.8"
5+
requires-python = ">=3.9"
66
license = {file = "LICENSE"}
77
authors = [
88
{name = "Vincent Sarago", email = "[email protected]"},
@@ -11,26 +11,26 @@ classifiers = [
1111
"Intended Audience :: Information Technology",
1212
"Intended Audience :: Science/Research",
1313
"License :: OSI Approved :: BSD License",
14-
"Programming Language :: Python :: 3.8",
1514
"Programming Language :: Python :: 3.9",
1615
"Programming Language :: Python :: 3.10",
1716
"Programming Language :: Python :: 3.11",
1817
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13",
1919
"Topic :: Scientific/Engineering :: GIS",
2020
]
2121
dynamic = ["version"]
2222
dependencies = [
2323
"braceexpand",
2424
"rio-cogeo>=5.0",
25-
"titiler.core>=0.16.0,<0.19",
26-
"starlette-cramjam>=0.3,<0.4",
25+
"titiler.core>=0.20.0,<0.21",
26+
"starlette-cramjam>=0.4,<0.5",
2727
"uvicorn",
2828
"server-thread>=0.2.0",
2929
]
3030

3131
[project.optional-dependencies]
3232
mvt = [
33-
"rio-tiler-mvt>=0.1,<0.2",
33+
"rio-tiler-mvt>=0.2,<0.3",
3434
]
3535
test = [
3636
"pytest",

0 commit comments

Comments
 (0)