From 5bd43974403c4d0e2d0e2da1d24e1e43b56d26c4 Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Mon, 4 Apr 2022 16:43:52 -0500 Subject: [PATCH] get ready for 1.0.0 (#240) --- CREDITS.txt | 7 ++++++- README.md | 37 ++++++++++++++++++++++++++++++++++--- rtree/__init__.py | 2 +- setup.cfg | 3 ++- 4 files changed, 43 insertions(+), 6 deletions(-) diff --git a/CREDITS.txt b/CREDITS.txt index 30b4c011..1f4c5af6 100644 --- a/CREDITS.txt +++ b/CREDITS.txt @@ -13,7 +13,7 @@ Howard Butler * .count() and .intersection() methods * Windows support * Node fetching -* Index property access +* Index property access Brent Pedersen @@ -26,3 +26,8 @@ Matthias * Custom storage API (both Rtree and libspatialindex) + +Adam Stewart + +* intersection/union support +* __len__ method diff --git a/README.md b/README.md index f16a45bb..28b469e6 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,42 @@ -Rtree -===== +# 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) -RTree is a Python package with bindings for [libspatialindex](https://github.com/libspatialindex/libspatialindex). Wheels are available for most major platforms, and `rtree` with bundled `libspatialindex` can be installed via pip: + +Rtree`_ is a [ctypes](http://docs.python.org/library/ctypes.html) Python wrapper of [libspatialindex](https://libspatialindex.org/) that provides a +number of advanced spatial indexing features for the spatially curious Python +user. These features include: + +* Nearest neighbor search +* Intersection search +* Multi-dimensional indexes +* Clustered indexes (store Python pickles directly with index entries) +* Bulk loading +* Deletion +* Disk serialization +* Custom storage implementation (to implement spatial indexing in ZODB, for example) + + +Wheels are available for most major platforms, and `rtree` with bundled `libspatialindex` can be installed via pip: + ``` pip install rtree ``` +# Changes + +## 1.0.0 + + +* Python 3.7+ is now required (#212) (thanks @adamjstewart!) +* Type hints (#215 and others) (thanks @adamjstewart!) +* Python 3.10 wheels, including osx-arm64 #224 +* Clean up libspatialindex C API mismatches #222 (thanks @musicinmybrain!) +* Many doc updates, fixes, and type hints (thanks @adamjstewart!) #212 #221 #217 #215 +* __len__ method for index #194 +* Prevent get_coordinate_pointers from mutating inputs #205 (thanks @sjones94549!) +* linux-aarch64 wheels #183 (thanks @odidev!) +* black (#218) and flake8 (#145) linting + +https://github.com/Toblerity/rtree/releases/1.0.0 diff --git a/rtree/__init__.py b/rtree/__init__.py index 3351766b..9a304479 100644 --- a/rtree/__init__.py +++ b/rtree/__init__.py @@ -4,6 +4,6 @@ Rtree provides Python bindings to libspatialindex for quick hyperrectangular intersection queries. """ -__version__ = "0.9.7" +__version__ = "1.0.0" from .index import Index, Rtree # noqa diff --git a/setup.cfg b/setup.cfg index efbaacbd..f3edbd7d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,7 +23,8 @@ classifiers = Topic :: Database license = MIT description = R-Tree spatial index for Python GIS -long_description = file: docs/source/README.txt +long_description = file: README.md +long_description_content_type = text/markdown keywords = gis, spatial, index, r-tree [options]