Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Authlib for openSUSE:Factory checked in at 2026-06-22 17:36:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Authlib (Old) and /work/SRC/openSUSE:Factory/.python-Authlib.new.1956 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Authlib" Mon Jun 22 17:36:14 2026 rev:33 rq:1360987 version:1.7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Authlib/python-Authlib.changes 2026-05-28 17:29:20.437683245 +0200 +++ /work/SRC/openSUSE:Factory/.python-Authlib.new.1956/python-Authlib.changes 2026-06-22 17:36:46.373170277 +0200 @@ -1,0 +2,6 @@ +Thu Jun 18 10:50:41 UTC 2026 - Jordi Massaguer <[email protected]> + +- Split test package and use multibuild, so it can be excluded from + the build. + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Authlib.spec ++++++ --- /var/tmp/diff_new_pack.SvK14r/_old 2026-06-22 17:36:47.281201978 +0200 +++ /var/tmp/diff_new_pack.SvK14r/_new 2026-06-22 17:36:47.281201978 +0200 @@ -16,9 +16,20 @@ # +### MULTIBUILD FLAVOR HANDLING ### +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +################################## + %define modname authlib %{?sle15_python_module_pythons} -Name: python-Authlib +Name: python-Authlib%{psuffix} Version: 1.7.2 Release: 0 Summary: Python library for building OAuth and OpenID Connect servers @@ -30,13 +41,16 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros + # SECTION test requirements -BuildRequires: %{python_module anyio} +%if %{with test} +BuildRequires: %{python_module Authlib = %{version}} BuildRequires: %{python_module Django} BuildRequires: %{python_module Flask-SQLAlchemy} BuildRequires: %{python_module Flask} BuildRequires: %{python_module SQLAlchemy} BuildRequires: %{python_module Werkzeug} +BuildRequires: %{python_module anyio} BuildRequires: %{python_module cachelib} BuildRequires: %{python_module cryptography} BuildRequires: %{python_module httpx} @@ -47,7 +61,9 @@ BuildRequires: %{python_module python-multipart} BuildRequires: %{python_module requests} BuildRequires: %{python_module starlette} +%endif # /SECTION + BuildRequires: fdupes Requires: python-cryptography Requires: python-joserfc >= 1.6.0 @@ -66,12 +82,20 @@ rm COMMERCIAL-LICENSE %build +# Only build the wheel if we are not in the test flavor +%if !%{with test} %pyproject_wheel +%endif %install +# Only install site-packages if we are not in the test flavor +%if !%{with test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif +# Check block is only executed during the test flavor run +%if %{with test} %check %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1 $python -mpytest tests/core @@ -83,10 +107,13 @@ $python -mpytest tests/clients $python -mpytest tests/django } +%endif +%if !%{with test} %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/%{modname} %{python_sitelib}/[Aa]uthlib-%{version}.dist-info +%endif ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
