Compare commits

8 Commits

Author SHA256 Message Date
8a1ab4a0bf Accepting request 1282361 from devel:languages:python
Forwarded request #1282153 from glaubitz

- Update to 1.4.0
    * Python 3.9+ is now required (#321)
    * Add support for array-based bulk insert with NumPy (#340)
    * Upgrade binary wheels with libspatialindex-2.1.0 (#353)
    * Rename project and other build components to “rtree” (#350)
  - Refresh Rtree-opensuse-noarch.patch

OBS-URL: https://build.opensuse.org/request/show/1282361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Rtree?expand=0&rev=5
2025-06-03 17:10:45 +00:00
6276fdd0ac Accepting request 1282153 from home:glaubitz:branches:devel:languages:python
- Update to 1.4.0
  * Python 3.9+ is now required (#321)
  * Add support for array-based bulk insert with NumPy (#340)
  * Upgrade binary wheels with libspatialindex-2.1.0 (#353)
  * Rename project and other build components to “rtree” (#350)
- Refresh Rtree-opensuse-noarch.patch

OBS-URL: https://build.opensuse.org/request/show/1282153
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Rtree?expand=0&rev=10
2025-06-03 14:02:37 +00:00
53a41d2fe3 Accepting request 1264843 from devel:languages:python
- Normalize metadata directory name.

Requires python-setuptools 78 to build successfully.

OBS-URL: https://build.opensuse.org/request/show/1264843
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Rtree?expand=0&rev=4
2025-04-16 18:38:30 +00:00
a7a2d5ae29 - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Rtree?expand=0&rev=8
2025-03-25 08:02:29 +00:00
1e529a0fc9 Accepting request 1245774 from devel:languages:python
- Switch to pyproject macros.
- Stop using libdir macro, which now doesn't return /usr/lib64.

OBS-URL: https://build.opensuse.org/request/show/1245774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Rtree?expand=0&rev=3
2025-02-14 18:20:56 +00:00
f6997a31a1 - Switch to pyproject macros.
- Stop using libdir macro, which now doesn't return /usr/lib64.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Rtree?expand=0&rev=6
2025-02-14 03:18:09 +00:00
30e8632d2d Accepting request 1201610 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1201610
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Rtree?expand=0&rev=2
2024-09-17 16:20:00 +00:00
60b9ce51e1 Accepting request 1201600 from home:nkrapp:branches:devel:languages:python
- Update to 1.3.0
  * Upgrade binary wheels with libspatialindex-2.0.0 (#316)
  * Fix binary wheels for musllinux (#316)
  * Update code style, replace isort and black with ruff, modern numpy rng (#319)
  * Remove libsidx version testing (#313)
- Update to 1.3.0
  * Upgrade binary wheels with libspatialindex-2.0.0 (#316)
  * Fix binary wheels for musllinux (#316)
  * Update code style, replace isort and black with ruff, modern numpy rng (#319)
  * Remove libsidx version testing (#313)

OBS-URL: https://build.opensuse.org/request/show/1201600
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Rtree?expand=0&rev=4
2024-09-17 12:25:26 +00:00
5 changed files with 82 additions and 81 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be8772ca34699a9ad3fb4cfe2cfb6629854e453c10b3328039301bbfc128ca3e
size 44877

View File

@@ -1,95 +1,64 @@
diff -ur Rtree-0.9.7/setup.py Rtree-0.9.7.p/setup.py
--- Rtree-0.9.7/setup.py 2020-12-24 16:38:19.000000000 +0100
+++ Rtree-0.9.7.p/setup.py 2021-05-18 00:48:04.350602925 +0200
@@ -6,7 +6,6 @@
from setuptools.dist import Distribution
diff -Nru rtree-1.4.0.orig/setup.py rtree-1.4.0/setup.py
--- rtree-1.4.0.orig/setup.py 2025-03-06 00:23:54.000000000 +0100
+++ rtree-1.4.0/setup.py 2025-06-03 09:15:31.930380106 +0200
@@ -4,60 +4,11 @@
from setuptools import setup
from setuptools.command.install import install
from setuptools.dist import Distribution
-from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
# Get text from README.txt
@@ -21,74 +20,6 @@
# current working directory of this setup.py file
_cwd = os.path.abspath(os.path.split(__file__)[0])
_cwd = Path(__file__).resolve().parent
-
-class bdist_wheel(_bdist_wheel):
- def finalize_options(self):
-class bdist_wheel(_bdist_wheel): # type: ignore[misc]
- def finalize_options(self) -> None:
- _bdist_wheel.finalize_options(self)
- self.root_is_pure = False
-
-
-class BinaryDistribution(Distribution):
-class BinaryDistribution(Distribution): # type: ignore[misc]
- """Distribution which always forces a binary package with platform name"""
- def has_ext_modules(foo):
-
- def has_ext_modules(foo) -> bool:
- return True
-
-
-class InstallPlatlib(install):
- def finalize_options(self):
-class InstallPlatlib(install): # type: ignore[misc]
- def finalize_options(self) -> None:
- """
- Copy the shared libraries into the wheel. Note that this
- will *only* check in `rtree/lib` rather than anywhere on
- the system so if you are building a wheel you *must* copy or
- symlink the `.so`/`.dll`/`.dylib` files into `rtree/lib`.
- Copy the shared libraries and header files into the wheel. Note that
- this will *only* check in `rtree/lib` and `include` rather than
- anywhere on the system so if you are building a wheel you *must* copy
- or symlink the `.so`/`.dll`/`.dylib` files into `rtree/lib` and
- `.h` into `rtree/include`.
- """
- # use for checking extension types
- from fnmatch import fnmatch
-
- install.finalize_options(self)
- if self.distribution.has_ext_modules():
- self.install_lib = self.install_platlib
- # now copy over libspatialindex
- # get the location of the shared library on the filesystem
-
- # where we're putting the shared library in the build directory
- target_dir = os.path.join(self.build_lib, 'rtree', 'lib')
- # where are we checking for shared libraries
- source_dir = os.path.join(_cwd, 'rtree', 'lib')
- # source files to copy
- source_dir = _cwd / "rtree"
-
- # what patterns represent shared libraries
- patterns = {'*.so',
- 'libspatialindex*dylib',
- '*.dll'}
- # destination for the files in the build directory
- target_dir = Path(self.build_lib) / "rtree"
-
- if not os.path.isdir(source_dir):
- # no copying of binary parts to library
- # this is so `pip install .` works even
- # if `rtree/lib` isn't populated
- return
- # copy lib tree
- source_lib = source_dir / "lib"
- if source_lib.is_dir():
- target_lib = target_dir / "lib"
- self.copy_tree(str(source_lib), str(target_lib))
-
- for file_name in os.listdir(source_dir):
- # make sure file name is lower case
- check = file_name.lower()
- # use filename pattern matching to see if it is
- # a shared library format file
- if not any(fnmatch(check, p) for p in patterns):
- continue
-
- # if the source isn't a file skip it
- if not os.path.isfile(os.path.join(source_dir, file_name)):
- continue
-
- # make build directory if it doesn't exist yet
- if not os.path.isdir(target_dir):
- os.makedirs(target_dir)
-
- # copy the source file to the target directory
- self.copy_file(
- os.path.join(source_dir, file_name),
- os.path.join(target_dir, file_name))
- # copy include tree
- source_include = source_dir / "include"
- if source_include.is_dir():
- target_include = target_dir / "include"
- self.copy_tree(str(source_include), str(target_include))
-
-
# See pyproject.toml for other project metadata
setup(
name='Rtree',
version=__version__,
@@ -105,8 +36,6 @@
package_data={"rtree": ['lib']},
zip_safe=False,
include_package_data=True,
name="rtree",
- distclass=BinaryDistribution,
- cmdclass={'bdist_wheel': bdist_wheel, 'install': InstallPlatlib},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
- cmdclass={"bdist_wheel": bdist_wheel, "install": InstallPlatlib},
)

View File

@@ -1,3 +1,33 @@
-------------------------------------------------------------------
Tue Jun 3 07:16:33 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.4.0
* Python 3.9+ is now required (#321)
* Add support for array-based bulk insert with NumPy (#340)
* Upgrade binary wheels with libspatialindex-2.1.0 (#353)
* Rename project and other build components to “rtree” (#350)
- Refresh Rtree-opensuse-noarch.patch
-------------------------------------------------------------------
Tue Mar 25 08:01:23 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Lowercase metadata directory name.
-------------------------------------------------------------------
Fri Feb 14 03:17:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Stop using libdir macro, which now doesn't return /usr/lib64.
-------------------------------------------------------------------
Tue Sep 17 11:34:46 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- Update to 1.3.0
* Upgrade binary wheels with libspatialindex-2.0.0 (#316)
* Fix binary wheels for musllinux (#316)
* Update code style, replace isort and black with ruff, modern numpy rng (#319)
* Remove libsidx version testing (#313)
-------------------------------------------------------------------
Wed May 19 10:29:54 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Rtree
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,26 +16,28 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python36 1
%{?sle15_python_module_pythons}
Name: python-Rtree
Version: 0.9.7
Version: 1.4.0
Release: 0
Summary: R-Tree spatial index for Python GIS
License: MIT
URL: https://github.com/Toblerity/rtree
Source: https://files.pythonhosted.org/packages/source/R/Rtree/Rtree-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/R/Rtree/rtree-%{version}.tar.gz
Source99: python-Rtree-rpmlintrc
# PATCH-FIX-OPENSUSE Rtree-opensuse-noarch.patch -- we don't put spatialindex into a wheel so the module is kept pure. <code@bnavigator.de>
Patch0: Rtree-opensuse-noarch.patch
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
# only for the shlib requirement, no headers needed
BuildRequires: spatialindex-devel
BuildRequires: python-rpm-macros
Requires: %(rpm -q --queryformat "%%{NAME}" -f $(readlink -f %{_libdir}/libspatialindex.so))
# Since this is noarch, _libdir doesn't work for 64 bit arches
Requires: %(rpm -q --queryformat "%%{NAME}" -f $(readlink -f /usr/lib*/libspatialindex.so))
Provides: python-rtree = %{version}-%{release}
BuildArch: noarch
%python_subpackages
@@ -55,13 +57,13 @@ spatial indexing features for the spatially curious Python user.
for example)
%prep
%autosetup -p1 -n Rtree-%{version}
%autosetup -p1 -n rtree-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -71,6 +73,6 @@ spatial indexing features for the spatially curious Python user.
%doc README.md
%license LICENSE.txt
%{python_sitelib}/rtree
%{python_sitelib}/Rtree-%{version}*-info
%{python_sitelib}/rtree-%{version}.dist-info
%changelog

3
rtree-1.4.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d97c7c5dcf25f6c0599c76d9933368c6a8d7238f2c1d00e76f1a69369ca82a0
size 50789