From f3b92aabea69f4a43f64ebbed9ecae60bef15787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Mon, 17 Feb 2025 09:14:47 +0100 Subject: [PATCH 1/2] docs: Add changelog for 0.5.0 --- CHANGELOG.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb4aab3..3341884 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,45 @@ +## Version 0.5.0 + +Date: 2025-02-19 + +This release adds support for the new Dask DataFrame query-planning API. +This also updates the minimum Python version to 3.10 and the minimum Pandas version to 2.0. +It also includes several enhancements and compatibility changes with upstream packages. +Many thanks to @Azaya89 for contributing to this release and to @maximlt and @hoxbro for maintaining the project on an ongoing basis. + +Enhancements + +- Support the new Dask DataFrame query-planning API ([#171](https://github.com/holoviz/spatialpandas/pull/171)) +- Ensure that pandas dtype matches dask when loading data from parquet ([#156](https://github.com/holoviz/spatialpandas/pull/156)) + +Compatibility: + +- Numpy 2.0 ([#140](https://github.com/holoviz/spatialpandas/pull/140), [#141](https://github.com/holoviz/spatialpandas/pull/141)) +- Pandas 2.2 ([#143](https://github.com/holoviz/spatialpandas/pull/143)) +- Geopandas 1.0 ([#148](https://github.com/holoviz/spatialpandas/pull/148)) +- Numba 0.61 and Python 3.13 ([#172](https://github.com/holoviz/spatialpandas/pull/172)) + +Bug fix: + +- Use `importlib.util.find_spec` for `dask` detection ([#163](https://github.com/holoviz/spatialpandas/pull/163)) + +Tests: + +- Allow point comparison ([#149](https://github.com/holoviz/spatialpandas/pull/149)) +- Add example conftest ([#150](https://github.com/holoviz/spatialpandas/pull/150)) +- Fix download data for examples ([#155](https://github.com/holoviz/spatialpandas/pull/155)) +- Update resolution for floats in tests ([#157](https://github.com/holoviz/spatialpandas/pull/157)) +- Don't compare line length of zero size ([#161](https://github.com/holoviz/spatialpandas/pull/161)) + +Infrastructure / CI: + +- Move infrastructure to Pixi, Hatchling, Pre-commit, and Ruff ([#142](https://github.com/holoviz/spatialpandas/pull/142)) +- Enable Ruff rules ([#151](https://github.com/holoviz/spatialpandas/pull/151), [#153](https://github.com/holoviz/spatialpandas/pull/153), [#154](https://github.com/holoviz/spatialpandas/pull/154), [#173](https://github.com/holoviz/spatialpandas/pull/173)) +- Update test to use collector ([#162](https://github.com/holoviz/spatialpandas/pull/162)) +- Small updates to build infrastructure ([#165](https://github.com/holoviz/spatialpandas/pull/165)) +- Modify nighly-lock workflow to exclude forks ([#174](https://github.com/holoviz/spatialpandas/pull/174)) + + ## Version 0.4.10 Date: 2024-01-10 From 0fee6a6919fd22283ea1894d8f20b87a4586f958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Tue, 18 Feb 2025 07:00:17 +0100 Subject: [PATCH 2/2] chore: Spellcheck --- .pre-commit-config.yaml | 14 +++++++------- CHANGELOG.md | 2 +- pyproject.toml | 5 +++++ spatialpandas/tests/tools/test_sjoin.py | 4 ++-- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2bbfaf3..2e787ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,16 +13,16 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.3 + rev: v0.9.6 hooks: - id: ruff files: spatialpandas/ - # - repo: https://github.com/codespell-project/codespell - # rev: v2.3.0 - # hooks: - # - id: codespell - # additional_dependencies: - # - tomli + - repo: https://github.com/codespell-project/codespell + rev: v2.4.1 + hooks: + - id: codespell + additional_dependencies: + - tomli ci: autofix_prs: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 3341884..547e380 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -229,7 +229,7 @@ Bug fixes: - `read_parquet_dask` fails to read from s3 glob ([#34](https://github.com/holoviz/spatialpandas/issues/34)) - Tests failing with `ValueError: Cannot mask with a boolean indexer containing NA values` ([#41](https://github.com/holoviz/spatialpandas/issues/41)) - Tests in `test_parquet` failing with `TypeError: argument of type 'PosixPath' is not iterable` ([#42](https://github.com/holoviz/spatialpandas/issues/42)) - - Create temp directory for partitions explitictly, fixes failure of test `test_pack_partitions_to_parquet` + - Create temp directory for partitions explicitly, fixes failure of test `test_pack_partitions_to_parquet` Compatibility: diff --git a/pyproject.toml b/pyproject.toml index 00ef178..7df7305 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,3 +129,8 @@ extend-unsafe-fixes = [ [tool.ruff.lint.isort] known-first-party = ["spatialpandas"] combine-as-imports = true + +[tool.codespell] +ignore-words-list = "ser,vor,secondy" +skip = "examples/Overview.ipynb" +write-changes = true diff --git a/spatialpandas/tests/tools/test_sjoin.py b/spatialpandas/tests/tools/test_sjoin.py index 6b83742..1257402 100644 --- a/spatialpandas/tests/tools/test_sjoin.py +++ b/spatialpandas/tests/tools/test_sjoin.py @@ -43,10 +43,10 @@ def test_sjoin(how, gp_points, gp_polygons): gp_expected = gp_expected.rename(columns={"v_x": "v_left", "v_y": "v_right"}) if how == "right": gp_expected.index.name = right_gpdf.index.name - gp_expected = gp_expected.rename(columns={"a_left": "index_left", "a_right": "a"}) # geopandas 1.0 compability + gp_expected = gp_expected.rename(columns={"a_left": "index_left", "a_right": "a"}) # geopandas 1.0 compatibility else: gp_expected.index.name = left_gpdf.index.name - gp_expected = gp_expected.rename(columns={"b": "index_right", "a_right": "a"}) # geopandas 1.0 compability + gp_expected = gp_expected.rename(columns={"b": "index_right", "a_right": "a"}) # geopandas 1.0 compatibility # join with spatialpandas left_spdf = GeoDataFrame(left_gpdf)