conda-forge / rasterio-feedstock

A conda-smithy repository for rasterio.
BSD 3-Clause "New" or "Revised" License
42 stars 22 forks source link

Rebuild for proj920 #264

Closed regro-cf-autotick-bot closed 1 year ago

regro-cf-autotick-bot commented 1 year ago

This PR has been triggered in an effort to update proj920.

Notes and instructions for merging this PR:

  1. Please merge the PR only after the tests have passed.
  2. Feel free to push to the bot's branch to update this PR if needed.

Please note that if you close this PR we presume that the feedstock has been rebuilt, so if you are going to perform the rebuild yourself don't close this PR until the your rebuild has been merged.

If this PR was opened in error or needs to be updated please add the bot-rerun label to this PR. The bot will close this PR and schedule another one. If you do not have permissions to add this label, you can use the phrase code>@<space/conda-forge-admin, please rerun bot in a PR comment to have the conda-forge-admin add it for you.

This PR was created by the regro-cf-autotick-bot. The regro-cf-autotick-bot is a service to automatically track the dependency graph, migrate packages, and propose package version updates for conda-forge. Feel free to drop us a line if there are any issues! This PR was generated by https://github.com/regro/cf-scripts/actions/runs/4462038712, please use this URL for debugging.

conda-forge-webservices[bot] commented 1 year ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

github-actions[bot] commented 1 year ago

Hi! This is the friendly conda-forge automerge bot!

I considered the following status checks when analyzing this PR:

Thus the PR was not passing and not merged.

weiji14 commented 1 year ago

@conda-forge-admin, please restart ci

weiji14 commented 1 year ago

Two tests failing on the builds, e.g. at https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=699144&view=logs&j=9a864fd9-6c8f-52ca-79ce-2aa6dca1a1de&t=10fc5aa2-324e-5982-4c88-6b31fcab16b3&l=3420

=================================== FAILURES ===================================
__________________ test_transform_bounds_densify[0-expected0] __________________

density = 0
expected = (-1688721.99764, -350040.3688, 1688799.61159, 2236495.86829)

    @pytest.mark.parametrize(
        "density,expected",
        [
            (0, (-1688721.99764, -350040.36880, 1688799.61159, 2236495.86829)),
            (100, (-1688721.99764, -555239.84875, 1688799.61159, 2236495.86829)),
        ],
    )
    def test_transform_bounds_densify(density, expected):
        # This transform is non-linear along the edges, so densification produces
        # a different result than otherwise
        src_crs = CRS.from_epsg(4326)
        dst_crs = CRS.from_epsg(2163)
        with rasterio.Env(OSR_USE_NON_DEPRECATED="NO"):
>           assert np.allclose(
                expected,
                transform_bounds(src_crs, dst_crs, -120, 40, -80, 64, densify_pts=density),
            )
E           assert False
E            +  where False = <function allclose at 0x7fa02b8e42c0>((-1688721.99764, -350040.3688, 1688799.61159, 2236495.86829), (-1684561.6168259005, -350367.54499933677, 1684639.0517846213, 2234508.8625524812))
E            +    where <function allclose at 0x7fa02b8e42c0> = np.allclose
E            +    and   (-1684561.6168259005, -350367.54499933677, 1684639.0517846213, 2234508.8625524812) = transform_bounds(CRS.from_epsg(4326), CRS.from_epsg(2163), -120, 40, -80, 64, densify_pts=0)

tests/test_warp.py:298: AssertionError
------------------------------ Captured log call -------------------------------
DEBUG    rasterio._env:env.py:326 GDAL_DATA found in environment.
DEBUG    rasterio._env:env.py:326 PROJ_DATA found in environment.
DEBUG    rasterio._env:env.py:326 Started GDALEnv: self=<rasterio._env.GDALEnv object at 0x7fa01f7c4c70>.
DEBUG    rasterio._env:env.py:362 Stopped GDALEnv <rasterio._env.GDALEnv object at 0x7fa01f7c4c70>.
_________________ test_transform_bounds_densify[100-expected1] _________________

density = 100
expected = (-1688721.99764, -555239.84875, 1688799.61159, 2236495.86829)

    @pytest.mark.parametrize(
        "density,expected",
        [
            (0, (-1688721.99764, -350040.36880, 1688799.61159, 2236495.86829)),
            (100, (-1688721.99764, -555239.84875, 1688799.61159, 2236495.86829)),
E            +    where <function allclose at 0x7fa02b8e42c0> = np.allclose
E            +    and   (-1684561.6168259005, -555778.3896555257, 1684639.0517846213, 2234508.8625524812) = transform_bounds(CRS.from_epsg(4326), CRS.from_epsg(2163), -120, 40, -80, 64, densify_pts=100)

tests/test_warp.py:298: AssertionError

Appears to be due to PROJ 9.1.1 -> 9.2.0 update, same reported upstream at https://github.com/rasterio/rasterio/issues/2789 and fixed at https://github.com/rasterio/rasterio/pull/2804. Do we skip those tests?

snowman2 commented 1 year ago

Do we skip those tests?

🚀

github-actions[bot] commented 1 year ago

Hi! This is the friendly conda-forge automerge bot!

Commits were made to this PR after the automerge label was added. For security reasons, I have disabled automerge by removing the automerge label. Please add the automerge label again (or ask a maintainer to do so) if you'd like to enable automerge again!

weiji14 commented 1 year ago

@conda-forge-admin, please rerender