[Git][debian-gis-team/rio-cogeo][master] 5 commits: New upstream version 7.0.2
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Mar 28 18:46:53 GMT 2026
Antonio Valentino pushed to branch master at Debian GIS Project / rio-cogeo
Commits:
0565a570 by Antonio Valentino at 2026-03-28T18:34:05+00:00
New upstream version 7.0.2
- - - - -
a1aecd84 by Antonio Valentino at 2026-03-28T18:35:33+00:00
Update upstream source from tag 'upstream/7.0.2'
Update to upstream version '7.0.2'
with Debian dir b990674ff98f732300e8206eb7c0cdc1e220915e
- - - - -
2dd00db1 by Antonio Valentino at 2026-03-28T18:37:33+00:00
New upstream release
- - - - -
6bfedae3 by Antonio Valentino at 2026-03-28T18:42:47+00:00
Drop patches applied upstream
- - - - -
54c031b6 by Antonio Valentino at 2026-03-28T18:43:11+00:00
Set distribution to unstable
- - - - -
12 changed files:
- .github/workflows/ci.yml
- + .github/workflows/release.yml
- CHANGES.md
- debian/changelog
- − debian/patches/0001-Fix-test_cog_translate_valiEnv.patch
- − debian/patches/series
- pyproject.toml
- rio_cogeo/__init__.py
- rio_cogeo/cogeo.py
- rio_cogeo/scripts/cli.py
- tests/test_cogeo.py
- uv.lock
Changes:
=====================================
.github/workflows/ci.yml
=====================================
@@ -48,41 +48,3 @@ jobs:
flags: unittests
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
-
- publish:
- needs: [tests]
- runs-on: ubuntu-latest
- if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
- steps:
- - uses: actions/checkout at v5
-
- - name: Install uv
- uses: astral-sh/setup-uv at v7
- with:
- version: "0.9.*"
- enable-cache: true
- python-version: ${{ env.LATEST_PY_VERSION }}
-
- - name: Install dependencies
- run: |
- uv sync --group deploy
-
- - name: Set tag version
- id: tag
- run: |
- echo "version=${GITHUB_REF#refs/*/}"
- echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
-
- - name: Set module version
- id: module
- run: |
- echo "version=$(uv run hatch --quiet version)" >> $GITHUB_OUTPUT
-
- - name: Build and publish
- if: ${{ steps.tag.outputs.version }} == ${{ steps.module.outputs.version}}
- env:
- HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }}
- HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
- run: |
- uv run hatch build
- uv run hatch publish
\ No newline at end of file
=====================================
.github/workflows/release.yml
=====================================
@@ -0,0 +1,72 @@
+name: Release
+
+on:
+ push:
+ tags:
+ - '*'
+env:
+ LATEST_PY_VERSION: '3.14'
+
+jobs:
+ build:
+ name: Build dist
+ runs-on: ubuntu-latest
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
+ steps:
+ - uses: actions/checkout at v6
+
+ - name: Install uv
+ uses: astral-sh/setup-uv at v7
+ with:
+ version: "0.9.*"
+ enable-cache: true
+ python-version: ${{ env.LATEST_PY_VERSION }}
+
+ - name: Install dependencies
+ run: |
+ uv sync --group deploy
+
+ - name: Set tag version
+ id: tag
+ run: |
+ echo "version=${GITHUB_REF#refs/*/}"
+ echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
+
+ - name: Set module version
+ id: module
+ run: |
+ echo "version=$(uv run hatch --quiet version)" >> $GITHUB_OUTPUT
+
+ - name: Check version match
+ run: |
+ if [ "${{ steps.tag.outputs.version }}" != "${{ steps.module.outputs.version }}" ]; then
+ echo "Tag version (${{ steps.tag.outputs.version }}) does not match module version (${{ steps.module.outputs.version }})"
+ exit 1
+ fi
+
+ - name: Build
+ run: |
+ uv run hatch build
+
+ - uses: actions/upload-artifact at v7
+ with:
+ path: ./dist/
+
+ upload_pypi:
+ name: Upload release to PyPI
+ needs: [build]
+ runs-on: ubuntu-latest
+ environment:
+ # Note: this environment must be configured in the repo settings
+ name: pypi-release
+ permissions:
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
+ steps:
+ - uses: actions/download-artifact at v8
+ with:
+ name: artifact
+ path: dist
+ merge-multiple: true
+
+ - name: Publish package distributions to PyPI
+ uses: pypa/gh-action-pypi-publish at release/v1
=====================================
CHANGES.md
=====================================
@@ -1,5 +1,10 @@
# Release Notes
+## 7.0.2 (2026-03-27)
+
+* fix: add data_offsets initialization in cog_validate function (author @benboothby, https://github.com/cogeotiff/rio-cogeo/pull/318)
+* fix: remove trailing whitespace in Info CLI
+
## 7.0.1 (2025-12-15)
* add python 3.14 support
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+rio-cogeo (7.0.2-1) unstable; urgency=medium
+
+ * New upstream release.
+ * debian/patches:
+ - Drop 0001-Fix-test_cog_translate_valiEnv.patch,
+ applied upstream.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Sat, 28 Mar 2026 18:42:53 +0000
+
rio-cogeo (7.0.1-2) unstable; urgency=medium
* Team upload.
=====================================
debian/patches/0001-Fix-test_cog_translate_valiEnv.patch deleted
=====================================
@@ -1,28 +0,0 @@
-From: Antonio Valentino <antonio.valentino at tiscali.it>
-Date: Mon, 29 Dec 2025 18:20:53 +0000
-Subject: Fix test_cog_translate_valiEnv
-
-Forwarded: https://github.com/cogeotiff/rio-cogeo/issues/314
----
- tests/test_cogeo.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/tests/test_cogeo.py b/tests/test_cogeo.py
-index 81000ee..8ce1708 100644
---- a/tests/test_cogeo.py
-+++ b/tests/test_cogeo.py
-@@ -268,11 +268,13 @@ def test_cog_translate_validOverviews(runner):
- def test_cog_translate_valiEnv(runner):
- """Should work as expected (create cogeo file)."""
- with runner.isolated_filesystem():
-+ new_jpeg_profile = dict(jpeg_profile)
-+ new_jpeg_profile.update({"blockxsize": 512, "blockysize": 512})
- config = {"GDAL_TIFF_INTERNAL_MASK": False}
- cog_translate(
- raster_path_rgba,
- "cogeo_env.tif",
-- jpeg_profile,
-+ new_jpeg_profile,
- indexes=[1, 2, 3],
- add_mask=True,
- config=config,
=====================================
debian/patches/series deleted
=====================================
@@ -1 +0,0 @@
-0001-Fix-test_cog_translate_valiEnv.patch
=====================================
pyproject.toml
=====================================
@@ -99,7 +99,7 @@ ignore = [
]
[tool.bumpversion]
-current_version = "7.0.1"
+current_version = "7.0.2"
search = "{current_version}"
replace = "{new_version}"
tag = true
=====================================
rio_cogeo/__init__.py
=====================================
@@ -1,6 +1,6 @@
"""rio_cogeo: Cloud Optimized GeoTIFF creation and validation plugin for rasterio."""
-__version__ = "7.0.1"
+__version__ = "7.0.2"
from .cogeo import cog_info, cog_translate, cog_validate # noqa
from .profiles import cog_profiles # noqa
=====================================
rio_cogeo/cogeo.py
=====================================
@@ -614,6 +614,9 @@ def cog_validate( # noqa: C901
yblocks = (src.height + block_size[1] - 1) // block_size[1]
xblocks = (src.width + block_size[0] - 1) // block_size[0]
+ data_offsets = []
+ details["data_offsets"] = {}
+
# Find the first block with a valid block_offset
for y in range(yblocks):
for x in range(xblocks):
=====================================
rio_cogeo/scripts/cli.py
=====================================
@@ -461,7 +461,7 @@ def info(input, to_json, config): # noqa: C901
click.echo(
f"""
{click.style('IFD', bold=True)}
- {click.style('Id', underline=True, bold=True):<20}{click.style('Size', underline=True, bold=True):<27}{click.style('BlockSize', underline=True, bold=True):<26}{click.style('Decimation', underline=True, bold=True):<33}"""
+ {click.style('Id', underline=True, bold=True):<20}{click.style('Size', underline=True, bold=True):<27}{click.style('BlockSize', underline=True, bold=True):<26}{click.style('Decimation', underline=True, bold=True)}"""
)
for ifd in metadata.IFD:
=====================================
tests/test_cogeo.py
=====================================
@@ -269,10 +269,12 @@ def test_cog_translate_valiEnv(runner):
"""Should work as expected (create cogeo file)."""
with runner.isolated_filesystem():
config = {"GDAL_TIFF_INTERNAL_MASK": False}
+ profile = jpeg_profile.copy()
+ profile.update({"blockxsize": 512, "blockysize": 512})
cog_translate(
raster_path_rgba,
"cogeo_env.tif",
- jpeg_profile,
+ profile,
indexes=[1, 2, 3],
add_mask=True,
config=config,
=====================================
uv.lock
=====================================
The diff for this file was not included because it is too large.
View it on GitLab: https://salsa.debian.org/debian-gis-team/rio-cogeo/-/compare/bc0ed0e7a9e80a0f1ae189e00a9e058eb5c7eb67...54c031b657f21f73fbf038d5d782901fe15ccf7b
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/rio-cogeo/-/compare/bc0ed0e7a9e80a0f1ae189e00a9e058eb5c7eb67...54c031b657f21f73fbf038d5d782901fe15ccf7b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20260328/cde5a6b8/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list