[Git][debian-gis-team/rio-cogeo][upstream] New upstream version 7.0.2
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Mar 28 18:46:57 GMT 2026
Antonio Valentino pushed to branch upstream 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
- - - - -
9 changed files:
- .github/workflows/ci.yml
- + .github/workflows/release.yml
- CHANGES.md
- 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
=====================================
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/-/commit/0565a570f7fdccbb90eb2dda0e19c0ea05b80933
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/rio-cogeo/-/commit/0565a570f7fdccbb90eb2dda0e19c0ea05b80933
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/d61eebac/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list