14
0
forked from pool/python-psutil
Files
python-psutil/python-psutil.spec
Markéta Machová a045c642a1 - Update to 7.1.0
* 2581_, [Windows]: publish ARM64 wheels.  (patch by Matthieu Darbois)
  * 2571_, [FreeBSD]: Dropped support for FreeBSD 8 and earlier. FreeBSD 8 was
    maintained from 2009 to 2013.
  * 2575_: introduced `dprint` CLI tool to format .yml and .md files.
  * 2473_, [macOS]: Fix build issue on macOS 11 and lower.
  * 2494_, [Windows]: All APIs dealing with paths, such as
    `Process.memory_maps()`_, `Process.exe()`_ and `Process.open_files()`_ does
    not properly handle UNC paths. Paths such as ``\\??\\C:\\Windows\\Temp`` and
    ``'\\Device\\HarddiskVolume1\\Windows\\Temp'`` are now converted to
    ``C:\\Windows\\Temp``.  (patch by Ben Peddell)
  * 2506_, [Windows]: Windows service APIs had issues with unicode services using
    special characters in their name.
  * 2514_, [Linux]: `Process.cwd()`_ sometimes fail with `FileNotFoundError` due
    to a race condition.
  * 2526_, [Linux]: `Process.create_time()`_, which is used to univocally
    identify a process over time, is subject to system clock updates, and as such
    can lead to `Process.is_running()`_ returning a wrong result. A monotonic
    creation time is now used instead.  (patch by Jonathan Kohler)
  * 2528_, [Linux]: `Process.children()`_ may raise ``PermissionError``. It will
    now raise `AccessDenied`_ instead.
  * 2540_, [macOS]: `boot_time()`_ is off by 45 seconds (C precision issue).
  * 2541_, 2570_, 2578_ [Linux], [macOS], [NetBSD]: `Process.create_time()`_ does
    not reflect system clock updates.
  * 2542_: if system clock is updated `Process.children()`_ and
    `Process.parent()`_ may not be able to return the right information.
  * 2545_: [Illumos]: Fix handling of MIB2_UDP_ENTRY in `net_connections()`_.
  * 2552_, [Windows]: `boot_time()`_ didn't take into account the time spent
    during suspend / hibernation.
  * 2560_, [Linux]: `Process.memory_maps()`_ may crash with `IndexError` on

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=181
2025-09-26 08:53:38 +00:00

89 lines
2.6 KiB
RPMSpec

#
# spec file for package python-psutil
#
# 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/
#
%ifarch x86_64 %{ix86}
%bcond_without test
%else
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-psutil
Version: 7.1.0
Release: 0
Summary: A process utilities module for Python
License: BSD-3-Clause
URL: https://github.com/giampaolo/psutil
Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{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: procps
BuildRequires: pkgconfig(libsystemd)
%if %{with test}
%if 0%{?suse_version} > 1500
BuildRequires: /usr/bin/who
%endif
BuildRequires: net-tools
BuildRequires: procps
%endif
%python_subpackages
%description
A graphical interface that lets you easily analyze and introspect unaltered running Python processes.
%prep
%autosetup -p1 -n psutil-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%{python_expand mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-psutil
cp -r scripts %{buildroot}%{_docdir}/%{$python_prefix}-psutil/
find %{buildroot}%{_docdir}/%{$python_prefix}-psutil/scripts/ -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python.*|#!%{__$python}|" {} \;
%fdupes %{buildroot}%{_docdir}/%{$python_prefix}-psutil/
%fdupes %{buildroot}%{$python_sitearch}
}
%if %{with test}
%check
export LANG=en_US.UTF-8
export PSUTIL_TESTING=1
export PSUTIL_DEBUG=1
export PYTHONDONTRWRITEBYTECODE=1
mkdir testd
pushd testd
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -Wa -m psutil.tests
popd
%endif
%files %{python_files}
%license LICENSE
%doc CREDITS HISTORY.rst README.rst
%{_docdir}/%{python_prefix}-psutil/scripts/
%{python_sitearch}/psutil/
%exclude %{python_sitearch}/psutil/tests
%{python_sitearch}/psutil-%{version}.dist-info
%changelog