14
0

Accepting request 1251852 from home:glaubitz:branches:devel:languages:python

- Update to 0.6.6
  * Upgraded to macos-13 runner (as 12 is not available anymore).
- from version 0.6.5
  * Revert "Added pypy3.11 to build"
- from version 0.6.4
  * Added pypy3.11 to build
  * Removed pypy3.8 from build, not suppurted
  * Bumped pyo3 to 0.23.3, drops pypy3.7 and pypy3.8
  * Bumped unicode-bidi to 0.3.18  closes #28
- from version 0.6.3
  * Updated pyo3 to 0.22.4
  * Python 3.13 wheels are finally working
- from version 0.6.2
  * Added check-latest to the build
- from version 0.6.1
  * Bumped to build Python 3.13 wheels
- from version 0.6.0
  * Added implemention selection (Python or Rust) to pybidi cli,
    respecting backward comapt
  * Restored older algorithm, supports both implementations closes #25
  * Modernize and simplify Python code (Thanks Christian Clauss)
- from version 0.5.2
  * Added get_base_level backward compat
  * docstring cleanup
- from version 0.5.1
  * Added compat for older import, closes #23
  * Updated copyrights
- from version 0.5.0
  * Switched to using Rust based unicode-bidi using PyO3
  * Dropped Python < 3.9 support

OBS-URL: https://build.opensuse.org/request/show/1251852
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-bidi?expand=0&rev=13
This commit is contained in:
2025-03-10 18:02:14 +00:00
committed by Git OBS Bridge
parent 35e5607821
commit 80327feb9e
5 changed files with 77 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-bidi
#
# 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,22 +16,28 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-python-bidi
Version: 0.4.2
Version: 0.6.6
Release: 0
Summary: BiDi layout algorithm
License: LGPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/MeirKriheli/python-bidi
Source: https://files.pythonhosted.org/packages/source/p/python-bidi/python-bidi-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/p/python_bidi/python_bidi-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: %{python_module maturin > 1}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: cargo
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: rust
Requires: python-maturin > 1
Requires: python-six
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
Requires(postun): update-alternatives
# SECTION test requirements
BuildRequires: %{python_module six}
# /SECTION
@@ -41,19 +47,19 @@ BuildRequires: %{python_module six}
A pure python implementation of the BiDi layout algorithm.
%prep
%setup -q -n python-bidi-%{version}
sed -i -e '/^#!\//, 1d' bidi/__init__.py
%autosetup -a1 -p1 -n python_bidi-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pybidi
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pyunittest discover -v
#%%check
#%%pyunittest_arch -v
#%%pytest
%post
%python_install_alternative pybidi
@@ -65,6 +71,7 @@ sed -i -e '/^#!\//, 1d' bidi/__init__.py
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license COPYING COPYING.LESSER
%python_alternative %{_bindir}/pybidi
%{python_sitelib}/*
%{python_sitearch}/bidi
%{python_sitearch}/python_bidi-%{version}.dist-info
%changelog