#1145845 morecantile: FTBFS: E assert BoundingBox(l...5429547980198) == (-17.58287765...5429547980198)

#1145845#5
Date:
2026-08-27 09:54:36 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:morecantile, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
=================================== FAILURES ===================================
_ test_tiles_when_tms_bounds_and_provided_bounds_cross_antimeridian[bounds1-4-32632-tms_bbox1] _

bounds = (11.700978, 52.056474, 11.711114, 52.062706), expected = 4, crs = 32632
tms_bbox = (-17.582877658817317, 0.0, 95.87417095917766, 83.95429547980198)

    @pytest.mark.parametrize(
        ("bounds", "expected", "crs", "tms_bbox"),
        [
            # case where east tms bbox crosses antimeridian
            (
                (119.1, -32.86, 119.2, -32.82),
                6,
                32750,
                (100.23646734667152, -79.99407435445299, -158.6052850376368, 0.0),
            ),
            # case where west tms bbox crosses antimeridian
            (
                (11.700978, 52.056474, 11.711114, 52.062706),
                4,
                32632,
                (-17.582877658817317, 0.0, 95.87417095917766, 83.95429547980198),
            ),
        ],
    )
    def test_tiles_when_tms_bounds_and_provided_bounds_cross_antimeridian(
        bounds: tuple, expected: int, crs: int, tms_bbox: tuple
    ):
        utm = CRS.from_epsg(crs)
        rs_extent = utm.area_of_use.bounds
        tms = morecantile.TileMatrixSet.custom(
            crs=utm, extent_crs=CRS.from_epsg(4326), extent=list(rs_extent)
        )
        # tms.tiles needs to be aware if tms bounds and input bounds crosses the
        # antimeridian e.g. min(119.2, -158.605) clamps to much larger area. Now
        # that we check to see if lons contain antimeridian, we build tiles that
        # actually overlap the provided bounds to tiles.

tests/test_morecantile.py:455: AssertionError
=============================== warnings summary ===============================
tests/test_morecantile.py::test_is_valid_overzoom
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_morecantile/build/morecantile/models.py:842: UserWarning: TileMatrix not found for level: 25 - Creating values from TMS Scale.
    warnings.warn(