3.7.2rc0
#1518
Replies: 2 comments 2 replies
-
|
The Debian package fails to build due to 14522ad (#1512): Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
return _build_backend().build_wheel(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
wheel_directory, config_settings, metadata_directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 435, in build_wheel
return _build(['bdist_wheel'])
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 426, in _build
return self._build_with_temp_dir(
~~~~~~~~~~~~~~~~~~~~~~~~~^
cmd,
^^^^
...<3 lines>...
self._arbitrary_args(config_settings),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
self.run_setup()
~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 246, in <module>
File "<string>", line 200, in get_extension_modules
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line 1006, in cythonize
c_options = CompilationOptions(**options)
File "/usr/lib/python3/dist-packages/Cython/Compiler/Options.py", line 655, in __init__
raise ValueError(message)
ValueError: got unknown compiler directive: freethreading_compatible
ERROR Backend subprocess exited when trying to invoke build_wheelDebian has cython 3.0.11. Removing the directive from =================================== FAILURES ===================================
_____________________ test_transform_bounds__antimeridian ______________________
def test_transform_bounds__antimeridian():
crs = CRS("EPSG:3851")
transformer = Transformer.from_crs(crs.geodetic_crs, crs)
minx, miny, maxx, maxy = crs.area_of_use.bounds
transformed_bounds = transformer.transform_bounds(miny, minx, maxy, maxx)
> assert_almost_equal(
transformed_bounds,
(5228058.6143420935, 1722483.900174921, 8692574.544944234, 4624385.494808555),
)
E AssertionError:
E Arrays are not almost equal to 7 decimals
E
E Mismatched elements: 2 / 4 (50%)
E Max absolute difference among violations: 2428698.45097674
E Max relative difference among violations: 0.52519377
E ACTUAL: array([4695514.1225398, 1722483.9001749, 8692574.5449442, 7053083.9457853])
E DESIRED: array([5228058.6143421, 1722483.9001749, 8692574.5449442, 4624385.4948086])
test/test_transformer.py:1268: AssertionError
___________________ test_transform_bounds__antimeridian__xy ____________________
def test_transform_bounds__antimeridian__xy():
crs = CRS("EPSG:3851")
transformer = Transformer.from_crs(
crs.geodetic_crs,
crs,
always_xy=True,
)
transformed_bounds = transformer.transform_bounds(*crs.area_of_use.bounds)
> assert_almost_equal(
transformed_bounds,
(1722483.900174921, 5228058.6143420935, 4624385.494808555, 8692574.544944234),
)
E AssertionError:
E Arrays are not almost equal to 7 decimals
E
E Mismatched elements: 2 / 4 (50%)
E Max absolute difference among violations: 2471214.48099142
E Max relative difference among violations: 0.53438765
E ACTUAL: array([1722483.9001749, 4795714.1718161, 7095599.9758 , 8692574.5449442])
E DESIRED: array([1722483.9001749, 5228058.6143421, 4624385.4948086, 8692574.5449442])
test/test_transformer.py:1289: AssertionError
_ test_transform_bounds__ignore_inf[ESRI:102036-input_bounds0-expected_bounds0] _
input_crs = 'ESRI:102036', input_bounds = (-180.0, -90.0, 180.0, 1.3)
expected_bounds = (0, -116576599, 0, 0)
@pytest.mark.parametrize(
"input_crs,input_bounds,expected_bounds",
[
(
"ESRI:102036",
(-180.0, -90.0, 180.0, 1.3),
(0, -116576599, 0, 0),
),
("ESRI:54026", (-180.0, -90.0, 180.0, 90.0), (0, -179545824, 0, 179545824)),
],
)
def test_transform_bounds__ignore_inf(input_crs, input_bounds, expected_bounds):
crs = CRS(input_crs)
transformer = Transformer.from_crs(crs.geodetic_crs, crs, always_xy=True)
> assert_almost_equal(
transformer.transform_bounds(*input_bounds),
expected_bounds,
decimal=0,
)
E AssertionError:
E Arrays are not almost equal to 0 decimals
E
E Mismatched elements: 3 / 4 (75%)
E Max absolute difference among violations: 50132027.16623252
E Max relative difference among violations: inf
E ACTUAL: array([-5.e+07, -1.e+08, 5.e+07, 5.e+07])
E DESIRED: array([ 0, -116576599, 0, 0])
test/test_transformer.py:1327: AssertionError
_ test_transform_bounds__ignore_inf[ESRI:54026-input_bounds1-expected_bounds1] _
input_crs = 'ESRI:54026', input_bounds = (-180.0, -90.0, 180.0, 90.0)
expected_bounds = (0, -179545824, 0, 179545824)
@pytest.mark.parametrize(
"input_crs,input_bounds,expected_bounds",
[
(
"ESRI:102036",
(-180.0, -90.0, 180.0, 1.3),
(0, -116576599, 0, 0),
),
("ESRI:54026", (-180.0, -90.0, 180.0, 90.0), (0, -179545824, 0, 179545824)),
],
)
def test_transform_bounds__ignore_inf(input_crs, input_bounds, expected_bounds):
crs = CRS(input_crs)
transformer = Transformer.from_crs(crs.geodetic_crs, crs, always_xy=True)
> assert_almost_equal(
transformer.transform_bounds(*input_bounds),
expected_bounds,
decimal=0,
)
E AssertionError:
E Arrays are not almost equal to 0 decimals
E
E Mismatched elements: 2 / 4 (50%)
E Max absolute difference among violations: 88721834.46860172
E Max relative difference among violations: inf
E ACTUAL: array([-9.e+07, -2.e+08, 9.e+07, 2.e+08])
E DESIRED: array([ 0, -179545824, 0, 179545824])
test/test_transformer.py:1327: AssertionError |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Closing in favor of #1523 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion was created from the release 3.7.2rc0.
Release Candidate 0 Status:
I'm trying to learn the release workflow so this discussion was created to hopefully track downstream package builds. Thanks for any testing you can do.
Beta Was this translation helpful? Give feedback.
All reactions