From ce8d0d9abdc3a4d6021473447bcacbf5e7dfbf2a8d089175045f2d4345c69536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 13 Nov 2025 12:06:07 +0000 Subject: [PATCH] - Update to 3.0.3 * __version__ raises DeprecationWarning instead of UserWarning. #487 * Adopt multi-phase initialization PEP 489 for the C extension. #494 * Build Windows ARM64 wheels. #485 * Build Python 3.14 wheels. #503 * Build riscv64 wheels. #505 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MarkupSafe?expand=0&rev=63 --- .gitattributes | 23 ++++ .gitignore | 1 + _multibuild | 3 + markupsafe-3.0.2.tar.gz | 3 + markupsafe-3.0.3.tar.gz | 3 + python-MarkupSafe.changes | 269 ++++++++++++++++++++++++++++++++++++++ python-MarkupSafe.spec | 85 ++++++++++++ 7 files changed, 387 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 markupsafe-3.0.2.tar.gz create mode 100644 markupsafe-3.0.3.tar.gz create mode 100644 python-MarkupSafe.changes create mode 100644 python-MarkupSafe.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/markupsafe-3.0.2.tar.gz b/markupsafe-3.0.2.tar.gz new file mode 100644 index 0000000..de90e29 --- /dev/null +++ b/markupsafe-3.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0 +size 20537 diff --git a/markupsafe-3.0.3.tar.gz b/markupsafe-3.0.3.tar.gz new file mode 100644 index 0000000..68306c5 --- /dev/null +++ b/markupsafe-3.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698 +size 80313 diff --git a/python-MarkupSafe.changes b/python-MarkupSafe.changes new file mode 100644 index 0000000..13593cd --- /dev/null +++ b/python-MarkupSafe.changes @@ -0,0 +1,269 @@ +------------------------------------------------------------------- +Thu Nov 13 10:20:43 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 3.0.3 + * __version__ raises DeprecationWarning instead of UserWarning. #487 + * Adopt multi-phase initialization PEP 489 for the C extension. #494 + * Build Windows ARM64 wheels. #485 + * Build Python 3.14 wheels. #503 + * Build riscv64 wheels. #505 + +------------------------------------------------------------------- +Wed Apr 30 09:17:07 UTC 2025 - Nico Krapp + +- Update to 3.0.2 + * Fix compatibility when __str__ returns a str subclass. #472 + * Build requires setuptools >= 70.1. #475 +- Update to 3.0.1 + * Address compiler warnings that became errors in GCC 14. #466 + * Fix compatibility with proxy objects. #467 +- Update to 3.0.0 + * Support Python 3.13 and its experimental free-threaded build. #461 + * Drop support for Python 3.7 and 3.8. + * Use modern packaging metadata with pyproject.toml instead + of setup.cfg. #348 + * Change distutils imports to setuptools. #399 + * Use deferred evaluation of annotations. #400 + * Update signatures for Markup methods to match str signatures. + Use positional-only arguments. #400 + * Some str methods on Markup no longer escape their argument: strip, + lstrip, rstrip, removeprefix, removesuffix, partition, and + rpartition; replace only escapes its new argument. These methods + are conceptually linked to search methods such as in, find, and + index, which already do not escape their argument. #401 + * The __version__ attribute is deprecated. Use feature detection, + or importlib.metadata.version("markupsafe"), instead. #402 + * Speed up escaping plain strings by 40%. #434 + * Simplify speedups implementation. #437 + +------------------------------------------------------------------- +Tue Apr 1 12:30:12 UTC 2025 - Markéta Machová + +- Make the dist-info name case-insensitive + +------------------------------------------------------------------- +Tue Mar 25 03:17:06 UTC 2025 - Steve Kowalik + +- Lowercase metadata directory name. + +------------------------------------------------------------------- +Thu Feb 20 08:14:24 UTC 2025 - Dirk Müller + +- split test dependencies into a multibuild to break cycle + with pytest + +------------------------------------------------------------------- +Wed Dec 4 23:21:41 UTC 2024 - Matej Cepl + +- The test suite survives without + ca-certificates-mozilla-prebuilt now, so we can remove BR (and + avoid deadly cycles). + +------------------------------------------------------------------- +Thu Jul 11 14:26:38 UTC 2024 - Dirk Müller + +- add buildignores to break buildcycle over + p11-kit/dbus-1/systemd:mini/python-MarkupSafe + +------------------------------------------------------------------- +Sun Feb 4 10:45:37 UTC 2024 - Dirk Müller + +- update to 2.1.5: + * Fix striptags not collapsing spaces. :issue:`417` + +------------------------------------------------------------------- +Fri Jan 26 21:18:09 UTC 2024 - Dirk Müller + +- update to 2.1.4: + * Don't use regular expressions for striptags, avoiding a + performance issue. :pr:`413` + +------------------------------------------------------------------- +Mon Jun 19 20:10:45 UTC 2023 - Dirk Müller + +- update to 2.1.3: + * Implement ``format_map``, ``casefold``, ``removeprefix``, + and ``removesuffix`` methods. + * Fix static typing for basic ``str`` methods on ``Markup``. + * Use ``Self`` for annotating return types. :pr:`379` + +------------------------------------------------------------------- +Fri Apr 21 12:20:49 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:42:32 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sun Jan 29 18:13:20 UTC 2023 - Dirk Müller + +- update to 2.1.2: + * Fix ``striptags`` not stripping tags containing newlines. + +------------------------------------------------------------------- +Fri Jun 24 02:55:18 UTC 2022 - Manuel Jacob + +- Patch PKG-INFO to avoid pip failing on Python 3.6 with + `ERROR: Package 'MarkupSafe' requires a different Python: + 3.6.15 not in '>=3.7'`. + +------------------------------------------------------------------- +Thu Jun 9 07:59:18 UTC 2022 - Andreas Schneider + +- Require python 3.6. There is no need to require a newer version and + this way it builds on openSUSE Leap >= 15.3 + +------------------------------------------------------------------- +Fri Mar 18 22:31:50 UTC 2022 - Arun Persaud + +- specfile: + * update copyright year + * require python >= 3.7 + +- update to version 2.1.1: + * Avoid ambiguous regex matches in "striptags". :pr:`293` + +- changes from version 2.1.0: + * Drop support for Python 3.6. :pr:`262` + * Remove "soft_unicode", which was previously deprecated. Use + "soft_str" instead. :pr:`261` + * Raise error on missing single placeholder during string + interpolation. :issue:`225` + * Disable speedups module for GraalPython. :issue:`277` + +------------------------------------------------------------------- +Sun Jun 13 14:46:40 UTC 2021 - Michael Ströder + +- skip building for Python 2.x + +------------------------------------------------------------------- +Tue Jun 1 10:23:06 UTC 2021 - Antonio Larrosa + +- Update to v2.0.1 + * Mark top-level names as exported so type checking understands + imports in user projects. + * Fix some types that weren’t available in Python 3.6.0. + +- Update to v2.0.0 + * Drop Python 2.7, 3.4, and 3.5 support. + * Markup.unescape uses html.unescape() to support HTML5 character + references. #117 + * Add type annotations for static typing tools. #149 + +------------------------------------------------------------------- +Fri Apr 16 07:30:01 UTC 2021 - Dirk Müller + +- allow tests to be disabled (still on by default) + +------------------------------------------------------------------- +Tue Mar 5 16:46:50 UTC 2019 - Tomáš Chvátal + +- Update to 1.1.1: + * Fix segfault when __html__ method raises an exception when + using the C speedups. The exception is now propagated + correctly. (#109) + +------------------------------------------------------------------- +Thu Feb 21 16:13:28 UTC 2019 - John Vandenberg + +- Update to v1.1.0 + - Drop support for Python 2.6 and 3.3. + - Build wheels for Linux, Mac, and Windows, allowing systems without + a compiler to take advantage of the C extension speedups + - Use newer CPython API on Python 3, resulting in a 1.5x speedup + - ``escape`` wraps ``__html__`` result in ``Markup``, consistent with + documented behavior +- Switch to using pytest in %check as setup.py test no longer works +- Use more precise URL https://github.com/pallets/markupsafe +- Add docs/ to %doc, including the changelog +- Remove AUTHORS from %doc, removed upstream in 6247e015 + +------------------------------------------------------------------- +Mon Jan 14 16:01:46 CET 2019 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Tue Apr 4 15:13:20 UTC 2017 - jmatejek@suse.com + +- update source url +- fix obs/prov to refer to old python +- drop _speedups.c from installed directory + +------------------------------------------------------------------- +Wed Mar 22 15:11:29 UTC 2017 - tbechtold@suse.com + +- Add missing BuildRequires for python-rpm-macros + +------------------------------------------------------------------- +Wed Mar 22 13:08:44 UTC 2017 - tbechtold@suse.com + +- update to 1.0.0 + + No upstream changelog +- Switch to singlespec approach + +------------------------------------------------------------------- +Tue Jul 15 10:42:00 UTC 2014 - toddrme2178@gmail.com + +- Update to 0.23 + + No upstream changelog + +------------------------------------------------------------------- +Thu May 8 13:51:56 UTC 2014 - toddrme2178@gmail.com + +- Update to 0.21 + + No upstream changelog + + ------------------------------------------------------------------- +Thu Mar 13 14:03:44 UTC 2014 - mcihar@suse.cz + +- update to 0.19: + + Various Python 3.x fixes + +------------------------------------------------------------------- +Thu Oct 24 11:08:17 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Tue Jun 25 11:56:41 UTC 2013 - dmueller@suse.com + +- update to 0.18: + + Fixed interpolation on tuples + + Varios Python 3.x fixes + +------------------------------------------------------------------- +Wed May 23 05:24:01 UTC 2012 - highwaystar.ru@gmail.com + +- python3 package added +- minor spec improvement + +------------------------------------------------------------------- +Thu Sep 8 20:24:51 UTC 2011 - andrea.turrini@gmail.com + +- Fixed typo in description of python-MarkupSafe.spec + +------------------------------------------------------------------- +Thu Sep 1 13:31:24 UTC 2011 - saschpe@suse.de + +- Update to 0.15 +- Changed license to BSD-3-Clause +- Renamed to python-MarkupSafe (from python-markupsafe) + +------------------------------------------------------------------- +Mon Aug 30 16:06:34 UTC 2010 - jfunk@funktronics.ca + +- Update to 0.11 + Since MarkupSafe 0.10 there is now also a separate escape function + called `escape_silent` that returns an empty string for `None` for + consistency with other systems that return empty strings for `None` + when escaping (for instance Pylons' webhelpers). + +------------------------------------------------------------------- +Thu Jul 1 18:08:55 UTC 2010 - jfunk@funktronics.ca + +- Initial release + diff --git a/python-MarkupSafe.spec b/python-MarkupSafe.spec new file mode 100644 index 0000000..44d4c26 --- /dev/null +++ b/python-MarkupSafe.spec @@ -0,0 +1,85 @@ +# +# spec file for package python-MarkupSafe +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -%{flavor} +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%{?sle15_python_module_pythons} +Name: python-MarkupSafe%{psuffix} +Version: 3.0.3 +Release: 0 +Summary: Implements a XML/HTML/XHTML Markup safe string for Python +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/pallets/markupsafe +Source: https://files.pythonhosted.org/packages/source/M/MarkupSafe/markupsafe-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-base >= 3.6 +%if %{with test} +BuildRequires: %{python_module MarkupSafe >= %{version}} +BuildRequires: %{python_module pytest} +%endif +%python_subpackages + +%description +Implements a unicode subclass that supports HTML strings. This can be used to +safely encode strings for dynamically generated web pages. + +%prep +%autosetup -p1 -n markupsafe-%{version} + +# Upstream changed the Python package metadata to require Python 3.7, but the tests pass on Python 3.6. +sed -i -e '/^python_requires =/s/3\.7/3\.6/' setup.cfg + +%build +%if !%{with test} +export CFLAGS="%{optflags}" +%pyproject_wheel +%endif + +%install +%if !%{with test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} +%python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c +%endif + +%if %{with test} +%check +%pytest_arch +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE.txt +%doc README.md docs/ +%{python_sitearch}/markupsafe/ +%{python_sitearch}/[mM]arkup[sS]afe-%{version}.dist-info +%endif + +%changelog