Your message dated Tue, 19 Dec 2023 15:07:02 +0000
with message-id <[email protected]>
and subject line Bug#1025610: fixed in mapproxy 2.0.0+dfsg-1
has caused the Debian Bug report #1025610,
regarding mapproxy: Test failures with Shapely 2.0
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1025610: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025610
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: mapproxy
Version: 1.15.1-2
Severity: important
Tags: upstream
User: [email protected]
Usertags: shapely-2.0
Control: forwarded -1 https://github.com/mapproxy/mapproxy/issues/611

Dear Maintainer,

Your package has test failure with Shapely 2.0:

 mapproxy/test/unit/test_geom.py:169: 
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
 
 datasource = '/tmp/tmp9u365ato'
 
     def load_geojson(datasource):
         with open(datasource) as f:
             geojson = json.load(f)
             t = geojson.get('type')
             if not t:
                 raise CoverageReadError("not a GeoJSON")
             geometries = []
             if t == 'FeatureCollection':
                 for f in geojson.get('features'):
                     geom = f.get('geometry')
                     if geom:
                         geometries.append(geom)
             elif t == 'Feature':
                 if 'geometry' in geojson:
                     geometries.append(geojson['geometry'])
             elif t in ('Polygon', 'MultiPolygon'):
                 geometries.append(geojson)
             else:
                 log_config.warning('skipping feature of type %s from %s: not a 
Polygon/MultiPolygon',
                             t, datasource)
     
         polygons = []
         for geom in geometries:
 >           geom = shapely.geometry.asShape(geom)
 E           AttributeError: module 'shapely.geometry' has no attribute 
'asShape'
 
 mapproxy/util/geom.py:147: AttributeError
 _ TestGeoJSONLoading.test_geojson[{"type": "MultiPolygon", "coordinates": 
[[[[0, 0], [10, 0], [10, 10], [0, 0]]], [[[20, 0], [30, 0], [20, 10], [20, 
0]]]]}-geometry1] _
 
 self = <mapproxy.test.unit.test_geom.TestGeoJSONLoading object at 
0x7fc1d8d7af80>
 geojson = '{"type": "MultiPolygon", "coordinates": [[[[0, 0], [10, 0], [10, 
10], [0, 0]]], [[[20, 0], [30, 0], [20, 10], [20, 0]]]]}'
 geometry = <MULTIPOLYGON (((0 0, 10 0, 10 10, 0 0)), ((20 0, 30 0, 20 10, 20 
0)))>
 
     @pytest.mark.parametrize('geojson,geometry', [
         [ '''{"type": "Polygon", "coordinates": [[[0, 0], [10, 0], [10, 10], 
[0, 0]]]}''',
             shapely.geometry.Polygon([[0, 0], [10, 0], [10, 10], [0, 0]]), ],
         [ '''{"type": "MultiPolygon", "coordinates": [[[[0, 0], [10, 0], [10, 
10], [0, 0]]], [[[20, 0], [30, 0], [20, 10], [20, 0]]]]}''',
             shapely.geometry.Polygon([[0, 0], [10, 0], [10, 10], [0, 
0]]).union(shapely.geometry.Polygon([[20, 0], [30, 0], [20, 10], [20, 0]])), ],
         [ '''{"type": "Feature", "geometry": {"type": "Polygon", 
"coordinates": [[[0, 0], [10, 0], [10, 10], [0, 0]]]}}''',
             shapely.geometry.Polygon([[0, 0], [10, 0], [10, 10], [0, 0]]), ],
         [ '''{"type": "FeatureCollection", "features": [{"type": "Feature", 
"geometry": {"type": "Polygon", "coordinates": [[[0, 0], [10, 0], [10, 10], [0, 
0]]]}}]}''',
             shapely.geometry.Polygon([[0, 0], [10, 0], [10, 10], [0, 0]]), ],
     ])
     def test_geojson(self, geojson, geometry):
         with TempFile() as fname:
             with open(fname, 'w') as f:
                 f.write(geojson)
 >           polygon = load_geojson(fname)
 
 ____________________ TestTransform.test_multipolygon_transf 
____________________
 
 self = <mapproxy.test.unit.test_geom.TestTransform object at 0x7fc1d8d7a860>
 
     def test_multipolygon_transf(self):
         p1 = shapely.geometry.Polygon([(0, 0), (10, 0), (10, 10), (0, 10)])
         p2 = shapely.geometry.Polygon([(20, 20), (30, 20), (30, 30), (20, 30)])
         mp1 = shapely.geometry.MultiPolygon([p1, p2])
     
 >       mp2 = transform_geometry(SRS(4326), SRS(900913), mp1)
 
 mapproxy/test/unit/test_geom.py:191: 
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
 mapproxy/util/geom.py:222: in transform_geometry
     result = transform_multipolygon(transf, geometry)
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
 
 transf = functools.partial(<function transform_xy at 0x7fc1da670d30>, 
SRS('EPSG:4326'), SRS('EPSG:900913'))
 multipolygon = <MULTIPOLYGON (((0 0, 10 0, 10 10, 0 10, 0 0)), ((20 20, 30 20, 
30 30, 20 30...>
 
     def transform_multipolygon(transf, multipolygon):
         transformed_polygons = []
 >       for polygon in multipolygon:
 E       TypeError: 'MultiPolygon' object is not iterable
 
 mapproxy/util/geom.py:237: TypeError

The build does not fail because test failures are ignored.

Kind Regards,

Bas

--- End Message ---
--- Begin Message ---
Source: mapproxy
Source-Version: 2.0.0+dfsg-1
Done: Bas Couwenberg <[email protected]>

We believe that the bug you reported is fixed in the latest version of
mapproxy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bas Couwenberg <[email protected]> (supplier of updated mapproxy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 19 Dec 2023 15:12:02 +0100
Source: mapproxy
Architecture: source
Version: 2.0.0+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Closes: 1025610 1047807
Changes:
 mapproxy (2.0.0+dfsg-1) unstable; urgency=medium
 .
   * New upstream release.
     (closes: #1025610)
   * Bump debhelper compat to 13.
   * Don't set environment variables in dh_auto_install override.
   * Remove generated files in clean target.
     (closes: #1047807)
   * Use execute_{before,after} instead of override in rules file.
   * Enable Salsa CI.
   * Switch to dh-sequence-*.
   * Update copyright file.
   * Drop reproducible-build.patch, applied upstream.
   * Update lintian overrides.
Checksums-Sha1:
 d6ca99a42ec13f1afa267b90adc25b0b2fde19fc 2418 mapproxy_2.0.0+dfsg-1.dsc
 b42394ace1b28c3721ce2e0b7631bbcbe2b37140 1204260 
mapproxy_2.0.0+dfsg.orig.tar.xz
 698b9a66ed2df83a8fc031e7ecbc1ae43357b7c0 17436 
mapproxy_2.0.0+dfsg-1.debian.tar.xz
 a166442c6e7b81c4aac794b11222147496019841 16893 
mapproxy_2.0.0+dfsg-1_amd64.buildinfo
Checksums-Sha256:
 51bfe4e27d377e83aa2bc210083a4b59f54d10aeb121a7e0c4f75e7211bad182 2418 
mapproxy_2.0.0+dfsg-1.dsc
 9943d039d100aa2b5fdb30728627e2636154085d85e60d8db89442d629d104f4 1204260 
mapproxy_2.0.0+dfsg.orig.tar.xz
 864ba7160a27b27456ed0519bb4617f874f4617946ad13aec5231fcb45fb8bee 17436 
mapproxy_2.0.0+dfsg-1.debian.tar.xz
 67b6889c6bfd448b7cfd21457db87bac2f5e82b26ba2fb72b701e4d214793b05 16893 
mapproxy_2.0.0+dfsg-1_amd64.buildinfo
Files:
 d4132738aef436d4b3e8208121a36edd 2418 python optional mapproxy_2.0.0+dfsg-1.dsc
 ed8126d70dd4d2b54315d2608ed4a2cf 1204260 python optional 
mapproxy_2.0.0+dfsg.orig.tar.xz
 3bd44cf5ec4edb0f3e241171bf429391 17436 python optional 
mapproxy_2.0.0+dfsg-1.debian.tar.xz
 5dcc6f714bea79c3c47792cab810a086 16893 python optional 
mapproxy_2.0.0+dfsg-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgYLeQXBWQI1hRlDRZ1DxCuiNSvEFAmWBprYACgkQZ1DxCuiN
SvElDw//Vz8zOAVbbHW91OLWCGWRLvjcqaTPqAdrVrRrLrZNdQz2qaHJy0fZ2p3o
lx/sxN26fbf0wrBUTLQzOd3lK9I/uyEXGkcWdkbxvqUv3J6HQxL4cvgUw4Zdi8Ha
InSkf9EdS6BsFzj73P23c4U1CzYWP8bdGkz56TpZh1Mn65IlCgNphFF7XXpD1D6y
aXpO701h/bjTwfuEow9cWZftkkxeDrugXm0vBvg3V8fUrX4osqT1oj/d/U9EXtg6
Kt7W3sjvbr6A1Gdn+maPCAPJSmRSIKXYqhwbKnLYDfNy7yz1e/u1oS3sx6J3vIL3
hkyfbPoSs3MEa2d/g+PvM+Fz0GEF/IeYoJ4mR5EXyA6Xqc4cgrQlplFt/I0s+rti
cRABJLSDQ6ZyLfxbTwxpHn0SLD5v+x3mK9tPcb3y+AFey3uH2nQPVuNNqL9YJkVZ
/4CIdBxQf4S89cZ442IxKWAC9DjSbUfkAoJb+zbkYlgvzLXUiidTVbGkTaKURHui
rx5ajoC2LVq0tlwJd5QHU58UtoumG0l8rJPk+gmjezpZDEVS3W2s7h9kDC6PMeXn
0+oQTURf4v//UeNb6CTDG465yJvmyVtzYZrIoX/ea35PQUhrLMmaEmhsPjSCG8+d
heuIoi2FGwLI2qoSdD9DGgOrlaWanwya7gmSrIyoaovyHjOql0I=
=jayb
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to