Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-psutil for openSUSE:Factory checked in at 2026-05-24 19:34:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-psutil (Old) and /work/SRC/openSUSE:Factory/.python-psutil.new.2084 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-psutil" Sun May 24 19:34:25 2026 rev:92 rq:1354420 version:7.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-psutil/python-psutil.changes 2026-03-10 17:46:55.599729648 +0100 +++ /work/SRC/openSUSE:Factory/.python-psutil.new.2084/python-psutil.changes 2026-05-24 19:34:38.224781418 +0200 @@ -1,0 +2,7 @@ +Wed May 20 19:44:40 UTC 2026 - Matej Cepl <[email protected]> + +- %check phase should run aside from %builddir to use extension + from the main binary package (don't build during the %check + phase). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-psutil.spec ++++++ --- /var/tmp/diff_new_pack.M6wxgj/_old 2026-05-24 19:34:39.032814480 +0200 +++ /var/tmp/diff_new_pack.M6wxgj/_new 2026-05-24 19:34:39.036814643 +0200 @@ -50,7 +50,6 @@ %endif BuildRequires: %{python_module psutil = %{version}} BuildRequires: %{python_module pytest-subtests if %python-pytest < 9} -BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: net-tools %endif @@ -61,16 +60,18 @@ %prep %autosetup -p1 -n psutil-%{version} -# do not require pytest-instafail -sed -i '/instafail/d' pyproject.toml +# do not require pytest-instafail and python-pytest-xdist +sed -i -e '/instafail/d' \ + -e '/-p xdist",/d' \ + pyproject.toml %build -%if !%{with test} +%if %{without test} %pyproject_wheel %endif %install -%if !%{with test} +%if %{without test} %pyproject_install %{python_expand mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-psutil @@ -87,8 +88,13 @@ export PSUTIL_TESTING=1 export PSUTIL_DEBUG=1 export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 -# needs to be built with extensions to run scripts -%python_expand PYTHON=$python make build +export GITHUB_ACTIONS=1 +export PSUTIL_ROOT_DIR="%{builddir}/psutil-%{version}" +export PYTHONDONTWRITEBYTECODE=1 +tmp_tests=$(mktemp -d) +cp -a %{_builddir}/psutil-%{version}/tests "$tmp_tests/" +cd "$tmp_tests" +export PYTEST_ADDOPTS="--ignore=tests/test_memleaks.py --ignore=tests/test_sudo.py" # test_who, test_users - need running session SKIPTEST="(test_who and Scripts) or (test_users and TestMiscAPIs)" # test_import_all - pulls in too many dependencies @@ -99,11 +105,10 @@ SKIPTEST="$SKIPTEST or (test_multi_sockets_procs and TestSystemWideConnections)" # test_disk_partitions -- can not determine root fs SKIPTEST="$SKIPTEST or test_disk_partitions" -export GITHUB_ACTIONS=1 -%pytest_arch -n auto --ignore=tests/test_memleaks.py --ignore=tests/test_sudo.py -k "not ($SKIPTEST)" +%python_expand pytest-%{$python_bin_suffix} -v -k "not ($SKIPTEST)" tests %endif -%if !%{with test} +%if %{without test} %files %{python_files} %license LICENSE %doc CREDITS HISTORY.rst README.rst
