Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.4.0 #354

Merged
merged 3 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
1.4.0: 2025-03-06
=================

- Python 3.9+ is now required (:PR:`321`)
- Add support for array-based bulk insert with NumPy (:PR:`340` by :user:`FreddieWitherden`)
- Upgrade binary wheels with libspatialindex-2.1.0 (:PR:`353`)
- Rename project and other build components to "rtree" (:PR:`350`)

1.3.0: 2024-07-10
=================

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Rtree: Spatial indexing for Python

![Build](https://github.com/Toblerity/rtree/workflows/Build/badge.svg)
[![PyPI version](https://badge.fury.io/py/Rtree.svg)](https://badge.fury.io/py/Rtree)
[![PyPI version](https://badge.fury.io/py/rtree.svg)](https://badge.fury.io/py/rtree)


Rtree is a [ctypes](https://docs.python.org/3/library/ctypes.html) Python wrapper of [libspatialindex](https://libspatialindex.org/) that provides a
Expand Down
2 changes: 1 addition & 1 deletion docs/source/class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class Documentation
------------------------------------------------------------------------------

.. autoclass:: rtree.index.Index
:members: __init__, insert, intersection, nearest, delete, bounds, count, close, dumps, loads
:members: __init__, insert, intersection, intersection_v, nearest, nearest_v, delete, bounds, count, close, dumps, loads

.. autoclass:: rtree.index.Property
:members:
Expand Down
6 changes: 3 additions & 3 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ensure that applications can find it at startup time.

Rtree can be easily installed via pip::

$ pip install Rtree
$ pip install rtree

or by running in a local source directory::

Expand All @@ -39,8 +39,8 @@ The Windows DLLs of `libspatialindex`_ are pre-compiled in
windows installers that are available from `PyPI`_. Installation on Windows
is as easy as::

pip install Rtree
pip install rtree


.. _`PyPI`: https://pypi.org/project/Rtree/
.. _`PyPI`: https://pypi.org/project/rtree/
.. _`libspatialindex`: https://libspatialindex.org
2 changes: 1 addition & 1 deletion rtree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

from __future__ import annotations

__version__ = "1.3.0"
__version__ = "1.4.0"

from .index import Index, Rtree # noqa
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def finalize_options(self) -> None:

# See pyproject.toml for other project metadata
setup(
name="Rtree",
name="rtree",
distclass=BinaryDistribution,
cmdclass={"bdist_wheel": bdist_wheel, "install": InstallPlatlib},
)
12 changes: 12 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
import shutil
from collections.abc import Iterator

import numpy
import py
import pytest

import rtree

data_files = ["boxes_15x15.data"]


Expand All @@ -17,3 +20,12 @@ def temporary_working_directory(tmpdir: py.path.local) -> Iterator[None]:
shutil.copy(filename, str(tmpdir))
with tmpdir.as_cwd():
yield


def pytest_report_header(config):
"""Header for pytest."""
vers = [
f"SIDX version: {rtree.core.rt.SIDX_Version().decode()}",
f"NumPy version: {numpy.__version__}",
]
return "\n".join(vers)
Loading