Skip to content

Commit 778f52f

Browse files
authored
Release 1.4.0 (#354)
* Add a pytest report header to show the version of NumPy and libspatialindex * Tidy a few other "Rtree" -> "rtree" instances * Add docs for intersection_v and nearest_v
1 parent 1854d27 commit 778f52f

File tree

7 files changed

+27
-7
lines changed

7 files changed

+27
-7
lines changed

CHANGES.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
1.4.0: 2025-03-06
2+
=================
3+
4+
- Python 3.9+ is now required (:PR:`321`)
5+
- Add support for array-based bulk insert with NumPy (:PR:`340` by :user:`FreddieWitherden`)
6+
- Upgrade binary wheels with libspatialindex-2.1.0 (:PR:`353`)
7+
- Rename project and other build components to "rtree" (:PR:`350`)
8+
19
1.3.0: 2024-07-10
210
=================
311

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Rtree: Spatial indexing for Python
22

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

66

77
Rtree is a [ctypes](https://docs.python.org/3/library/ctypes.html) Python wrapper of [libspatialindex](https://libspatialindex.org/) that provides a

docs/source/class.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Class Documentation
44
------------------------------------------------------------------------------
55

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

99
.. autoclass:: rtree.index.Property
1010
:members:

docs/source/install.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ensure that applications can find it at startup time.
2222

2323
Rtree can be easily installed via pip::
2424

25-
$ pip install Rtree
25+
$ pip install rtree
2626

2727
or by running in a local source directory::
2828

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

42-
pip install Rtree
42+
pip install rtree
4343

4444

45-
.. _`PyPI`: https://pypi.org/project/Rtree/
45+
.. _`PyPI`: https://pypi.org/project/rtree/
4646
.. _`libspatialindex`: https://libspatialindex.org

rtree/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
from __future__ import annotations
99

10-
__version__ = "1.3.0"
10+
__version__ = "1.4.0"
1111

1212
from .index import Index, Rtree # noqa

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def finalize_options(self) -> None:
5757

5858
# See pyproject.toml for other project metadata
5959
setup(
60-
name="Rtree",
60+
name="rtree",
6161
distclass=BinaryDistribution,
6262
cmdclass={"bdist_wheel": bdist_wheel, "install": InstallPlatlib},
6363
)

tests/conftest.py

+12
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
import shutil
55
from collections.abc import Iterator
66

7+
import numpy
78
import py
89
import pytest
910

11+
import rtree
12+
1013
data_files = ["boxes_15x15.data"]
1114

1215

@@ -17,3 +20,12 @@ def temporary_working_directory(tmpdir: py.path.local) -> Iterator[None]:
1720
shutil.copy(filename, str(tmpdir))
1821
with tmpdir.as_cwd():
1922
yield
23+
24+
25+
def pytest_report_header(config):
26+
"""Header for pytest."""
27+
vers = [
28+
f"SIDX version: {rtree.core.rt.SIDX_Version().decode()}",
29+
f"NumPy version: {numpy.__version__}",
30+
]
31+
return "\n".join(vers)

0 commit comments

Comments
 (0)