14
0

Compare commits

5 Commits

Author SHA256 Message Date
94f35ada79 Accepting request 1291584 from devel:languages:python
- Update to 2.2.0:
  * Support python 3.13
  * Fix use of bool keyword in C23
  * Fix iter long fix leak
  * Drop python3.8 support

OBS-URL: https://build.opensuse.org/request/show/1291584
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyahocorasick?expand=0&rev=5
2025-07-10 20:12:08 +00:00
a811dff1d1 - Update to 2.2.0:
* Support python 3.13
  * Fix use of bool keyword in C23
  * Fix iter long fix leak
  * Drop python3.8 support

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyahocorasick?expand=0&rev=13
2025-07-10 05:26:40 +00:00
cc9e5e5fb4 Accepting request 1245040 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1245040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyahocorasick?expand=0&rev=4
2025-02-11 20:29:35 +00:00
eb9ab5e364 - Enable %build section for test flavor
- Limit Python files matched in %files section

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyahocorasick?expand=0&rev=11
2025-02-11 09:14:20 +00:00
7d3f5bebd0 - Update to version 2.1.0
* Drop support for Python 3.6 and 3.7. Use older version for
    pre-built wheels. Note that it may work on these older version,
    we are just no longer supporting and testing these Python versions.
  * Add support for Python 3.12
- from version 2.0.0
  * Drop support for Python 2
  * Drop support for 32 bits OSes
  * Re-organize code such that sources are under src/, utilities
    under etc/ and tests are under tests/
  * Use pytest for testing and streamline tests to use a more conventional
    Python approach
  * Build more compatible Linux wheels using "ci-build-wheel"
- Restrict package to 64-bit architectures as 32-bit architectures
  are no longer supported upstream and the testsuite fails on these
- Split off tests into separate -test package
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Drop support for older Python versions
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyahocorasick?expand=0&rev=10
2025-02-10 14:24:44 +00:00
5 changed files with 81 additions and 18 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

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

View File

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

View File

@@ -1,3 +1,45 @@
-------------------------------------------------------------------
Thu Jul 10 05:26:05 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.2.0:
* Support python 3.13
* Fix use of bool keyword in C23
* Fix iter long fix leak
* Drop python3.8 support
-------------------------------------------------------------------
Mon Feb 10 21:36:03 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Enable %build section for test flavor
- Limit Python files matched in %files section
-------------------------------------------------------------------
Mon Feb 10 09:01:02 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.1.0
* Drop support for Python 3.6 and 3.7. Use older version for
pre-built wheels. Note that it may work on these older version,
we are just no longer supporting and testing these Python versions.
* Add support for Python 3.12
- from version 2.0.0
* Drop support for Python 2
* Drop support for 32 bits OSes
* Re-organize code such that sources are under src/, utilities
under etc/ and tests are under tests/
* Use pytest for testing and streamline tests to use a more conventional
Python approach
* Build more compatible Linux wheels using "ci-build-wheel"
- Restrict package to 64-bit architectures as 32-bit architectures
are no longer supported upstream and the testsuite fails on these
- Split off tests into separate -test package
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Drop support for older Python versions
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
-------------------------------------------------------------------
Tue Oct 4 23:50:59 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyahocorasick
#
# Copyright (c) 2022 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,21 +16,36 @@
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyahocorasick
Version: 1.4.4
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-pyahocorasick%{?psuffix}
Version: 2.2.0
Release: 0
Summary: Library for exact or approximate multi-pattern string search
License: BSD-3-Clause
URL: https://github.com/WojciechMula/pyahocorasick
Source: https://files.pythonhosted.org/packages/source/p/pyahocorasick/pyahocorasick-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
%if %{with test}
BuildRequires: %{python_module pyahocorasick = %{version}}
%endif
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: python-rpm-macros
ExclusiveArch: aarch64 loongarch64 ppc64 ppc64le riscv64 s390x x86_64
%python_subpackages
%description
@@ -47,23 +62,26 @@ It is implemented in C.
%autosetup -p1 -n pyahocorasick-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%if !%{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
skip_tests=""
# gh#WojciechMula/pyahocorasick#142
%ifarch ppc64 s390x armv7l
skip_tests+="not (test_iter2 or test_iter3)"
%endif
%pytest_arch -k "${skip_tests}" unittests.py
%if %{with test}
%check
%pytest
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitearch}/*
%{python_sitearch}/ahocorasick*.so
%{python_sitearch}/pyahocorasick-%{version}.dist-info
%endif
%changelog