14
0

Accepting request 1251868 from devel:languages:python

- python-maturin is not required for running of the package.
- python-six it not required at all.
- 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
  * Removed "upper_is_rtl"
  * Import of ``get_display`` changed to ``from bidi import get_display``
- Add cargo to BuildRequires
- Add rust to BuildRequires
- Disable testsuite for the time being which fails to import bidi.bidi
- Enable vendoring for Rust building dependencies
- Switch build architecture to binary
- 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
  * Update name for dist directory in %files section
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Drop support for older Python versions
- Update BuildRequires and Requires from pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1251868
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-bidi?expand=0&rev=6
This commit is contained in:
2025-03-11 19:44:45 +00:00
committed by Git OBS Bridge
5 changed files with 82 additions and 21 deletions

View File

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

View File

@@ -1,3 +1,59 @@
-------------------------------------------------------------------
Mon Mar 10 18:07:07 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- python-maturin is not required for running of the package.
- python-six it not required at all.
-------------------------------------------------------------------
Mon Mar 10 16:46:05 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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
* Removed "upper_is_rtl"
* Import of ``get_display`` changed to ``from bidi import get_display``
- Add cargo to BuildRequires
- Add rust to BuildRequires
- Disable testsuite for the time being which fails to import bidi.bidi
- Enable vendoring for Rust building dependencies
- Switch build architecture to binary
- 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
* Update name for dist directory in %files section
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Drop support for older Python versions
- Update BuildRequires and Requires from pyproject.toml
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 28 09:31:03 UTC 2021 - pgajdos@suse.com Fri May 28 09:31:03 UTC 2021 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-python-bidi # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,44 +16,45 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons}
Name: python-python-bidi Name: python-python-bidi
Version: 0.4.2 Version: 0.6.6
Release: 0 Release: 0
Summary: BiDi layout algorithm Summary: BiDi layout algorithm
License: LGPL-3.0-only License: LGPL-3.0-only
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/MeirKriheli/python-bidi 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 setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: cargo
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-six BuildRequires: rust
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module six}
# /SECTION
%python_subpackages %python_subpackages
%description %description
A pure python implementation of the BiDi layout algorithm. A pure python implementation of the BiDi layout algorithm.
%prep %prep
%setup -q -n python-bidi-%{version} %autosetup -a1 -p1 -n python_bidi-%{version}
sed -i -e '/^#!\//, 1d' bidi/__init__.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pybidi %python_clone -a %{buildroot}%{_bindir}/pybidi
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check #%%check
%pyunittest discover -v #%%pyunittest_arch -v
#%%pytest
%post %post
%python_install_alternative pybidi %python_install_alternative pybidi
@@ -65,6 +66,7 @@ sed -i -e '/^#!\//, 1d' bidi/__init__.py
%doc AUTHORS.rst CHANGELOG.rst README.rst %doc AUTHORS.rst CHANGELOG.rst README.rst
%license COPYING COPYING.LESSER %license COPYING COPYING.LESSER
%python_alternative %{_bindir}/pybidi %python_alternative %{_bindir}/pybidi
%{python_sitelib}/* %{python_sitearch}/bidi
%{python_sitearch}/python_bidi-%{version}.dist-info
%changelog %changelog

3
python_bidi-0.6.6.tar.gz Normal file
View File

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

3
vendor.tar.gz Normal file
View File

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