Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-platformdirs for
openSUSE:Factory checked in at 2025-02-07 22:56:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-platformdirs (Old)
and /work/SRC/openSUSE:Factory/.python-platformdirs.new.2316 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-platformdirs"
Fri Feb 7 22:56:58 2025 rev:15 rq:1243366 version:4.3.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-platformdirs/python-platformdirs.changes
2024-11-21 15:13:37.348970532 +0100
+++
/work/SRC/openSUSE:Factory/.python-platformdirs.new.2316/python-platformdirs.changes
2025-02-07 22:59:07.495137397 +0100
@@ -1,0 +2,5 @@
+Wed Feb 5 12:15:54 UTC 2025 - Daniel Garcia <[email protected]>
+
+- Use multibuild for test package
+
+-------------------------------------------------------------------
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-platformdirs.spec ++++++
--- /var/tmp/diff_new_pack.zuIkQM/_old 2025-02-07 22:59:09.467218764 +0100
+++ /var/tmp/diff_new_pack.zuIkQM/_new 2025-02-07 22:59:09.491219754 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-platformdirs
#
-# Copyright (c) 2024 SUSE LLC
+# 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
@@ -16,22 +16,33 @@
#
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
%{?sle15_python_module_pythons}
-Name: python-platformdirs
+Name: python-platformdirs%{psuffix}
Version: 4.3.6
Release: 0
Summary: Module for determining appropriate platform-specific dirs
License: MIT
URL: https://github.com/platformdirs/platformdirs
Source:
https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-%{version}.tar.gz
-BuildRequires: %{python_module appdirs == 1.4.4}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling >= 0.22.0}
BuildRequires: %{python_module pip}
+%if %{with test}
+BuildRequires: %{python_module appdirs == 1.4.4}
+BuildRequires: %{python_module platformdirs = %{version}}
BuildRequires: %{python_module pytest >= 7.4}
BuildRequires: %{python_module pytest-cov >= 4.1}
BuildRequires: %{python_module pytest-mock >= 3.11.1}
+%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -44,18 +55,26 @@
%autosetup -p1 -n platformdirs-%{version}
%build
+%if !%{with test}
%pyproject_wheel
+%endif
%install
+%if !%{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
%check
+%if %{with test}
%pytest
+%endif
+%if !%{with test}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/platformdirs
%{python_sitelib}/platformdirs-%{version}.dist-info
+%endif
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>