1
0
forked from pool/python-datrie

Compare commits

2 Commits

Author SHA256 Message Date
d1fd93219a Accepting request 1307316 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1307316
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-datrie?expand=0&rev=13
2025-09-26 20:25:13 +00:00
c1408757a3 - Update to 0.8.3
* pytest-runner is not needed for building the package
  * Fix AlphaMap definition in cdatrie.pxd
  * BLD: update identifiers
- Drop 99.patch, merged upstream
- Remove sed expression to strip pytest-runner dependency
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-datrie?expand=0&rev=26
2025-09-26 08:45:30 +00:00
5 changed files with 16 additions and 32 deletions

View File

@@ -1,23 +0,0 @@
From 12ffaa89e589a47d0b29b32997cb3623d231d920 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Thu, 1 Feb 2024 15:14:00 -0500
Subject: [PATCH] Fix AlphaMap definition in cdatrie.pxd
Fixes failure to compile on GCC with `-Werror=incompatible-pointer-types`.
---
src/cdatrie.pxd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cdatrie.pxd b/src/cdatrie.pxd
index b80ce99..e609d1c 100644
--- a/src/cdatrie.pxd
+++ b/src/cdatrie.pxd
@@ -9,7 +9,7 @@ cdef extern from "../libdatrie/datrie/triedefs.h":
cdef extern from "../libdatrie/datrie/alpha-map.h":
- struct AlphaMap:
+ ctypedef struct AlphaMap:
pass
AlphaMap * alpha_map_new()

View File

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

3
datrie-0.8.3.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Sep 26 06:36:03 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.8.3
* pytest-runner is not needed for building the package
* Fix AlphaMap definition in cdatrie.pxd
* BLD: update identifiers
- Drop 99.patch, merged upstream
- Remove sed expression to strip pytest-runner dependency
- Use Python 3.11 on SLE-15 by default
-------------------------------------------------------------------
Tue May 28 08:57:59 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -15,17 +15,15 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-datrie
Version: 0.8.2
Version: 0.8.3
Release: 0
Summary: Trie data structure for Python
License: LGPL-2.1-or-later
URL: https://github.com/kmike/datrie
Source: https://files.pythonhosted.org/packages/source/d/datrie/datrie-%{version}.tar.gz
Patch0: datrie-bigendian.patch
# PATCH-FIX-UPSTREAM - Fix AlphaMap definition in cdatrie.pxd
Patch1: https://github.com/pytries/datrie/pull/99.patch
BuildRequires: %{python_module Cython >= 0.26.1}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module hypothesis}
@@ -42,8 +40,6 @@ A trie data structure for Python (2.x and 3.x). Uses libdatrie.
%prep
%autosetup -p1 -n datrie-%{version}
# https://github.com/pytries/datrie/pull/89
sed -i 's:pytest-runner::' setup.py
%build
pushd src