Compare commits

..

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
201c2fc25d
!33 [sync] PR-32: [sync] PR-30: fix repr(Error): PID was not shown if PID == 0
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-11-28 11:16:03 +00:00
zhang-liang-pengkun
567b51cad4 fix repr(Error): PID was not shown if PID == 0
Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
(cherry picked from commit e91c59d7faa590573b0ec0648340d8a6c1a95c89)
(cherry picked from commit 60d09981220e318efe7ea1a0ca0318087b913bac)
2023-11-27 14:21:07 +08:00
openeuler-ci-bot
9d7dae12c9
!20 [sync] PR-19: Update package psutil of version 5.9.0
From: @openeuler-sync-bot 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2022-10-19 01:10:41 +00:00
A_L_I_E_Z
cf7ee1f182 Update package psutil of version 5.9.0
(cherry picked from commit dba6098ab1b270ef1770fc613c344ccb4f929192)
2022-10-18 17:33:42 +08:00
openeuler-ci-bot
6ec42e9a4f !7 [sync] PR-6: udpate psutil version to 5.8.0
From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-08-23 03:27:43 +00:00
FFrog
55c3efabed update version to 5.8.0
(cherry picked from commit 427ec7247cdfc2c2f4d975595496d5f04d10178d)
2021-08-20 09:48:05 +08:00
openeuler-ci-bot
93b5d29d16 !4 Remove python2-psutil subpackage
Merge pull request !4 from ultra_planet/master
2020-08-05 15:01:22 +08:00
lingsheng
d5294ab2c6 Remove python2-psutil subpackage 2020-08-05 14:50:46 +08:00
openeuler-ci-bot
09334626bd !3 Fix yaml file error
Merge pull request !3 from lyn/master
2020-07-17 15:11:44 +08:00
lyn1001
d3bc5a28b9 fix yaml file error 2020-07-17 15:06:12 +08:00
openeuler-ci-bot
846cb2fbdb !2 Fix yaml file error
Merge pull request !2 from lyn/master
2020-07-17 14:43:02 +08:00
5 changed files with 43 additions and 24 deletions

View File

@ -0,0 +1,26 @@
From d135e2c3a99bfd1bd01d1158ec31dbc8dc1c910f Mon Sep 17 00:00:00 2001
From: Giampaolo Rodola <g.rodola@gmail.com>
Date: Sat, 15 Jan 2022 22:21:39 +0100
Subject: [PATCH] fix repr(Error): PID was not shown if PID == 0
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
---
psutil/_common.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/psutil/_common.py b/psutil/_common.py
index 1e33699c..c94a8378 100644
--- a/psutil/_common.py
+++ b/psutil/_common.py
@@ -289,7 +289,7 @@ class Error(Exception):
info = {} # Python 2.6
for name in attrs:
value = getattr(self, name, None)
- if value:
+ if value is not None:
info[name] = value
return info
--
2.39.0.windows.2

Binary file not shown.

BIN
psutil-5.9.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,13 @@
Name: python-psutil Name: python-psutil
Version: 5.4.3 Version: 5.9.0
Release: 7 Release: 2
Summary: A library for retrieving information on running processes and system utilization in Python Summary: A library for retrieving information on running processes and system utilization in Python
License: BSD License: BSD
URL: https://github.com/giampaolo/psutil URL: https://github.com/giampaolo/psutil
Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz#/psutil-%{version}.tar.gz Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz#/psutil-%{version}.tar.gz
Patch0001: 0001-fix-repr-Error-PID-was-not-shown-if-PID-0.patch
BuildRequires: gcc python2-devel python3-devel procps-ng python2-mock python3-mock python2-ipaddress BuildRequires: gcc python3-devel procps-ng python3-mock
%description %description
psutil (process and system utilities) is a cross-platform library for retrieving information psutil (process and system utilities) is a cross-platform library for retrieving information
@ -15,18 +16,6 @@ It is useful mainly for system monitoring, profiling and limiting process resour
management of running processes.It implements many functionalities offered by classic UNIX management of running processes.It implements many functionalities offered by classic UNIX
command line tools such as ps, top, iotop, lsof, netstat, ifconfig, free and others. command line tools such as ps, top, iotop, lsof, netstat, ifconfig, free and others.
%package -n python2-psutil
Summary: A library for retrieving information on running processes and system utilization in Python2
%{?python_provide:%python_provide python2-psutil}
Obsoletes: python-psutil < 3.1.1-3
%description -n python2-psutil
psutil (process and system utilities) is a cross-platform library for retrieving information
on running processes and system utilization (CPU, memory, disks, network, sensors) in Python2.
It is useful mainly for system monitoring, profiling and limiting process resources and
management of running processes.It implements many functionalities offered by classic UNIX
command line tools such as ps, top, iotop, lsof, netstat, ifconfig, free and others.
%package -n python3-psutil %package -n python3-psutil
Summary: A library for retrieving information on running processes and system utilization in Python3 Summary: A library for retrieving information on running processes and system utilization in Python3
%{?python_provide:%python_provide python3-psutil} %{?python_provide:%python_provide python3-psutil}
@ -48,19 +37,11 @@ find psutil -name \*.py | while read file; do
done done
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%files -n python2-psutil
%license LICENSE
%doc CREDITS HISTORY.rst README.rst
%{python2_sitearch}/psutil/
%{python2_sitearch}/*.egg-info
%files -n python3-psutil %files -n python3-psutil
%license LICENSE %license LICENSE
%doc CREDITS HISTORY.rst README.rst %doc CREDITS HISTORY.rst README.rst
@ -68,5 +49,17 @@ done
%{python3_sitearch}/*.egg-info %{python3_sitearch}/*.egg-info
%changelog %changelog
* Thu Oct 19 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 5.9.0-2
- fix repr(Error): PID was not shown if PID == 0
* Mon Jun 13 2022 OpenStack_SIG <openstack@openeuler.org> - 5.9.0-1
- Update version to 5.9.0
* Thu Jul 15 2021 OpenStack_SIG <openstack@openeuler.org> - 5.8.0-1
- Update version to 5.8.0
* Wed Aug 05 2020 lingsheng <lingsheng@huawei.com> - 5.4.3-8
- Remove python2-psutil subpackage
* Sat Nov 23 2019 zhouyihang <zhouyihang1@huawei.com> - 5.4.3-7 * Sat Nov 23 2019 zhouyihang <zhouyihang1@huawei.com> - 5.4.3-7
- Package init - Package init

View File

@ -1,5 +1,5 @@
git_url: https://github.com/giampaolo/psutil.git git_url: https://github.com/giampaolo/psutil.git
version_control: github version_control: github
src_repo: giampaolo/psutil src_repo: giampaolo/psutil
tag_prefix: "resease-" tag_prefix: "release-"
seperator: "." seperator: "."