2020-12-28 17:10:55 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: python-yappi
|
2024-03-05 11:41:55 +08:00
|
|
|
Version: 1.6.0
|
2022-10-11 16:34:15 +08:00
|
|
|
Release: 1
|
2020-12-28 17:10:55 +08:00
|
|
|
Summary: Yet Another Python Profiler
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/sumerc/yappi
|
2024-03-05 11:41:55 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/21/73/edfceb363d73be11701a50b003f12acb01d7fefc6a22859f3fd030686e50/yappi-1.6.0.tar.gz
|
2020-12-28 17:10:55 +08:00
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Yappi, Yet Another Python Profiler, provides multithreading and cpu-time
|
|
|
|
|
support to profile python programs.
|
|
|
|
|
|
|
|
|
|
%package -n python3-yappi
|
|
|
|
|
Summary: Yet Another Python Profiler, supports Multithread/CPU time profiling.
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-gevent
|
|
|
|
|
|
|
|
|
|
%description -n python3-yappi
|
|
|
|
|
Yappi, Yet Another Python Profiler, provides multithreading and cpu-time
|
|
|
|
|
support to profile python programs.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-07-30 23:32:00 +08:00
|
|
|
%autosetup -n yappi-%{version} -p1
|
2020-12-28 17:10:55 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
mv %{buildroot}%{_bindir}/yappi %{buildroot}%{_bindir}/yappi-%{python3_version}
|
|
|
|
|
ln -s yappi-%{python3_version} %{buildroot}%{_bindir}/yappi-3
|
|
|
|
|
ln -s yappi-3 %{buildroot}%{_bindir}/yappi
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export PATH=$PATH:%{buildroot}/usr/bin
|
|
|
|
|
export PYTHONPATH=%{buildroot}/%{python3_sitearch}
|
|
|
|
|
%{__python3} tests/test_functionality.py
|
|
|
|
|
%{__python3} tests/test_hooks.py
|
|
|
|
|
|
|
|
|
|
%files -n python3-yappi
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{python3_sitearch}/yappi.py*
|
|
|
|
|
%{python3_sitearch}/_yappi*.so
|
|
|
|
|
%{python3_sitearch}/__pycache__/yappi*
|
|
|
|
|
%{python3_sitearch}/yappi-*.egg-info
|
|
|
|
|
%{_bindir}/yappi
|
|
|
|
|
%{_bindir}/yappi-3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-03-05 11:41:55 +08:00
|
|
|
* Tue Mar 05 2024 yueyuankun <yueyuankun@kylinos.cn> - 1.6.0-1
|
|
|
|
|
- Update package to version 1.6.0
|
|
|
|
|
|
2022-12-07 11:29:59 +08:00
|
|
|
* Wed Dec 07 2022 dingdingaaaaa <dingziwei@kylinos.cn> - 1.4.0-1
|
|
|
|
|
- Upgrade version to 1.4.0
|
|
|
|
|
|
2022-10-11 16:34:15 +08:00
|
|
|
* Tue Oct 11 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.3.6-1
|
|
|
|
|
- Update version to 1.3.6
|
|
|
|
|
|
2022-05-07 17:10:52 +08:00
|
|
|
* Sat May 07 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 1.3.2-3
|
|
|
|
|
- Included patch to support python3.10
|
|
|
|
|
|
2021-07-30 23:32:00 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.3.2-2
|
|
|
|
|
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2020-12-28 17:10:55 +08:00
|
|
|
* Thu Dec 31 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
|
|
|
- Package Spec generated
|
|
|
|
|
|