From 31f190ddcd999f5e06c3047f7279badece68519e788b08c09e15285aa7aa1efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 11 Oct 2024 12:10:14 +0000 Subject: [PATCH] Accepting request 1207148 from home:glaubitz:branches:devel:languages:python - Update to version 4.0.3 * Update supported Python versions to 3.8 - 3.12 ("#83":https://github.com/textile/python-textile/issues/83) * Replace html5lib with nh3 for html sanitization * General code cleanup * Bugfixes: ** Wrong HTML output when "bc.." is the very last in the document ("#81":https://github.com/textile/python-textile/issues/81) * Other: ** Use github actions instead of travis for automated testing - Limit Python files matched 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 OBS-URL: https://build.opensuse.org/request/show/1207148 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textile?expand=0&rev=31 --- python-textile.changes | 18 ++++++++++++++++++ python-textile.spec | 28 ++++++++++++++-------------- textile-4.0.2.tar.gz | 3 --- textile-4.0.3.tar.gz | 3 +++ 4 files changed, 35 insertions(+), 17 deletions(-) delete mode 100644 textile-4.0.2.tar.gz create mode 100644 textile-4.0.3.tar.gz diff --git a/python-textile.changes b/python-textile.changes index 56672ec..a1ac139 100644 --- a/python-textile.changes +++ b/python-textile.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Fri Oct 11 11:31:47 UTC 2024 - John Paul Adrian Glaubitz + +- Update to version 4.0.3 + * Update supported Python versions to 3.8 - 3.12 + ("#83":https://github.com/textile/python-textile/issues/83) + * Replace html5lib with nh3 for html sanitization + * General code cleanup + * Bugfixes: + ** Wrong HTML output when "bc.." is the very last in the document + ("#81":https://github.com/textile/python-textile/issues/81) + * Other: + ** Use github actions instead of travis for automated testing +- Limit Python files matched 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 + ------------------------------------------------------------------- Sat Nov 27 10:13:30 UTC 2021 - Sebastian Wagner diff --git a/python-textile.spec b/python-textile.spec index 857a7fd..e467152 100644 --- a/python-textile.spec +++ b/python-textile.spec @@ -1,7 +1,7 @@ # # spec file for package python-textile # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,27 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-textile -Version: 4.0.2 +Version: 4.0.3 Release: 0 Summary: Textile processing for python License: BSD-3-Clause URL: https://github.com/textile/python-textile Source: https://files.pythonhosted.org/packages/source/t/textile/textile-%{version}.tar.gz BuildRequires: %{python_module html5lib >= 1.0.1} +BuildRequires: %{python_module nh3} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module regex >= 1.0} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Pillow -Requires: python-html5lib >= 1.0.1 -Requires: python-six +Requires: python-nh3 +Requires: python-regex Requires(post): update-alternatives -Requires(postun):update-alternatives -Recommends: python-regex +Requires(postun): update-alternatives +BuildArch: noarch %python_subpackages %description @@ -49,17 +49,16 @@ MathML translation, Python code coloring and much more. %prep %setup -q -n textile-%{version} -sed -i -e '/pytest-runner/d' setup.py %build -%python_build +%pyproject_wheel %check rm pytest.ini %pytest %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pytextile %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -71,7 +70,8 @@ rm pytest.ini %files %{python_files} %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/textile +%{python_sitelib}/textile-%{version}.dist-info %python_alternative %{_bindir}/pytextile %changelog diff --git a/textile-4.0.2.tar.gz b/textile-4.0.2.tar.gz deleted file mode 100644 index 04a9547..0000000 --- a/textile-4.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5894d78a321656a8f72414844c04b10477edd1e2e14f5b05aa1307f02cee9777 -size 51157 diff --git a/textile-4.0.3.tar.gz b/textile-4.0.3.tar.gz new file mode 100644 index 0000000..6f1929c --- /dev/null +++ b/textile-4.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2b0fa67769051a406020d2fa4d247d16967080aae407139f888c196eb23de6b +size 56908