From 838b0e1a25149a4c414b896b4c95a7a9b6e10ed6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:13:09 +1200 Subject: [PATCH 1/2] Build(deps): Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2 (#3454) Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.10.1 to 1.10.2. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.10.1...v1.10.2) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/publish-to-pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 03777be4b44..edc73395a4c 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -75,10 +75,10 @@ jobs: ls -lh dist/ - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@v1.10.1 + uses: pypa/gh-action-pypi-publish@v1.10.2 with: repository-url: https://test.pypi.org/legacy/ - name: Publish to PyPI if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@v1.10.1 + uses: pypa/gh-action-pypi-publish@v1.10.2 From 9045f46e2a537eed51fdc47e2309ee6d645c4bfc Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 26 Sep 2024 10:47:48 +0800 Subject: [PATCH 2/2] GeoPandas: Explicitly convert columns with overflow integers avoid OverflowError with fiona 1.10 (#3455) --- pygmt/helpers/tempfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pygmt/helpers/tempfile.py b/pygmt/helpers/tempfile.py index 0177f17d435..57a1e370fbf 100644 --- a/pygmt/helpers/tempfile.py +++ b/pygmt/helpers/tempfile.py @@ -153,6 +153,7 @@ def tempfile_from_geojson(geojson): if dtype in {"int", "int64"}: overflow = geojson[col].abs().max() > 2**31 - 1 schema["properties"][col] = "float" if overflow else "int32" + geojson[col] = geojson[col].astype(schema["properties"][col]) ogrgmt_kwargs["schema"] = schema else: # GeoPandas v1.x. # The default engine "pyogrio" doesn't support the 'schema' parameter