!1 fix issue:src-openEuler / python-pytest-benchmark目录为空,需要引入该包
From: @zhangchao13 Reviewed-by: @desert-sailor Signed-off-by: @desert-sailor
This commit is contained in:
commit
d6333d97ac
BIN
pytest-benchmark-4.0.0.tar.gz
Normal file
BIN
pytest-benchmark-4.0.0.tar.gz
Normal file
Binary file not shown.
55
python-pytest-benchmark.spec
Normal file
55
python-pytest-benchmark.spec
Normal file
@ -0,0 +1,55 @@
|
||||
%global srcname pytest-benchmark
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 4.0.0
|
||||
Release: 1
|
||||
Summary: A py.test fixture for benchmarking code
|
||||
License: BSD
|
||||
URL: https://pytest-benchmark.readthedocs.io
|
||||
Source: https://github.com/ionelmc/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%global _description\
|
||||
This plugin provides a benchmark fixture. This fixture is a callable object\
|
||||
that will benchmark any function passed to it.\
|
||||
\
|
||||
Notable features and goals:\
|
||||
\
|
||||
- Sensible defaults and automatic calibration for microbenchmarks\
|
||||
- Good integration with pytest\
|
||||
- Comparison and regression tracking\
|
||||
- Exhausive statistics\
|
||||
- JSON export
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %summary
|
||||
Provides: python3-%{srcname} = %{version}-%{release}
|
||||
Requires: python3-pytest
|
||||
Requires: python3-pycpuinfo
|
||||
|
||||
%description -n python3-%{srcname} %_description
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%doc README.rst CHANGELOG.rst CONTRIBUTING.rst AUTHORS.rst
|
||||
%license LICENSE
|
||||
%{_bindir}/py.test-benchmark
|
||||
%{_bindir}/pytest-benchmark
|
||||
%{python3_sitelib}/pytest_benchmark
|
||||
%{python3_sitelib}/pytest_benchmark-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
* Mon Jun 5 2023 chaozhangm <chaozhangm@isoftstone.com> - 4.0.0-1
|
||||
- Initial RPM release
|
||||
Loading…
x
Reference in New Issue
Block a user