2011-09-01 13:34:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-MarkupSafe
|
|
|
|
#
|
2025-02-20 08:16:30 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-09-01 13:34:27 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-09-01 15:51:21 +00:00
|
|
|
|
2019-01-14 15:25:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-01 13:34:27 +00:00
|
|
|
#
|
|
|
|
|
2011-09-01 15:51:21 +00:00
|
|
|
|
2025-02-20 08:16:30 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -%{flavor}
|
2022-03-27 20:04:17 +00:00
|
|
|
%bcond_without test
|
2025-02-20 08:16:30 +00:00
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2023-04-21 15:05:02 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2025-02-20 08:16:30 +00:00
|
|
|
Name: python-MarkupSafe%{psuffix}
|
Accepting request 1273629 from home:nkrapp:branches:devel:languages:python
- 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
OBS-URL: https://build.opensuse.org/request/show/1273629
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MarkupSafe?expand=0&rev=61
2025-04-30 12:18:26 +00:00
|
|
|
Version: 3.0.2
|
2013-06-17 12:51:56 +00:00
|
|
|
Release: 0
|
2011-09-01 13:34:27 +00:00
|
|
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
2022-03-27 20:04:17 +00:00
|
|
|
URL: https://github.com/pallets/markupsafe
|
Accepting request 1273629 from home:nkrapp:branches:devel:languages:python
- 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
OBS-URL: https://build.opensuse.org/request/show/1273629
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MarkupSafe?expand=0&rev=61
2025-04-30 12:18:26 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/M/MarkupSafe/markupsafe-%{version}.tar.gz
|
2017-03-22 13:30:16 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-06-19 20:14:59 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2025-02-20 08:16:30 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-06-19 20:14:59 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-05 16:47:33 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-22 15:12:33 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-06-09 21:23:00 +00:00
|
|
|
Requires: python-base >= 3.6
|
2022-03-27 20:04:17 +00:00
|
|
|
%if %{with test}
|
2025-02-20 08:16:30 +00:00
|
|
|
BuildRequires: %{python_module MarkupSafe >= %{version}}
|
2022-03-27 20:04:17 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
%endif
|
2017-03-22 13:30:16 +00:00
|
|
|
%python_subpackages
|
2011-09-01 13:34:27 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Implements a unicode subclass that supports HTML strings. This can be used to
|
2011-09-09 07:15:08 +00:00
|
|
|
safely encode strings for dynamically generated web pages.
|
2011-09-01 13:34:27 +00:00
|
|
|
|
|
|
|
%prep
|
Accepting request 1273629 from home:nkrapp:branches:devel:languages:python
- 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
OBS-URL: https://build.opensuse.org/request/show/1273629
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MarkupSafe?expand=0&rev=61
2025-04-30 12:18:26 +00:00
|
|
|
%autosetup -p1 -n markupsafe-%{version}
|
2024-12-04 23:22:45 +00:00
|
|
|
|
|
|
|
# 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
|
2011-09-01 13:34:27 +00:00
|
|
|
|
|
|
|
%build
|
2025-02-20 08:16:30 +00:00
|
|
|
%if !%{with test}
|
2017-03-22 13:30:16 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2023-06-19 20:14:59 +00:00
|
|
|
%pyproject_wheel
|
2025-02-20 08:16:30 +00:00
|
|
|
%endif
|
2011-09-01 13:34:27 +00:00
|
|
|
|
|
|
|
%install
|
2025-02-20 08:16:30 +00:00
|
|
|
%if !%{with test}
|
2023-06-19 20:14:59 +00:00
|
|
|
%pyproject_install
|
2019-03-05 16:47:33 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2017-04-04 15:22:44 +00:00
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c
|
2025-02-20 08:16:30 +00:00
|
|
|
%endif
|
2011-09-01 13:34:27 +00:00
|
|
|
|
2021-04-16 07:30:13 +00:00
|
|
|
%if %{with test}
|
2011-09-01 13:34:27 +00:00
|
|
|
%check
|
2022-03-27 20:04:17 +00:00
|
|
|
%pytest_arch
|
2021-04-16 07:30:13 +00:00
|
|
|
%endif
|
2011-09-01 13:34:27 +00:00
|
|
|
|
2025-02-20 08:16:30 +00:00
|
|
|
%if !%{with test}
|
2019-02-21 22:46:07 +00:00
|
|
|
%files %{python_files}
|
Accepting request 1273629 from home:nkrapp:branches:devel:languages:python
- 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
OBS-URL: https://build.opensuse.org/request/show/1273629
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MarkupSafe?expand=0&rev=61
2025-04-30 12:18:26 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md docs/
|
2012-05-23 07:13:09 +00:00
|
|
|
%{python_sitearch}/markupsafe/
|
2025-04-01 12:30:57 +00:00
|
|
|
%{python_sitearch}/[mM]arkup[sS]afe-%{version}.dist-info
|
2025-02-20 08:16:30 +00:00
|
|
|
%endif
|
2011-09-01 13:34:27 +00:00
|
|
|
|
|
|
|
%changelog
|