6 Commits
f29 ... epel8

Author SHA1 Message Date
Troy Dawson
273305d077 remove package.cfg per new epel-playground policy 2020-09-24 16:36:00 +00:00
Stephen Smoogen
feca160259 Downgrade to 3.1.1 because EL8 comes with earlier version we can't replace 2019-07-23 17:33:37 +00:00
Mohan Boddu
3e594f995a "Adding package.cfg file" 2019-07-18 16:07:32 -04:00
Miro Hrončok
529bcbafdd Update to 3.2.2 for pytest 4 compatibility 2019-04-04 13:27:03 +02:00
Zbigniew Jędrzejewski-Szmek
e76f18b39e Subpackage python2-pytest-benchmark has been removed
FTBFS after
568d663a9e.
2019-03-03 16:55:47 +01:00
Fedora Release Engineering
71b29fb06e - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 08:48:29 +00:00
2 changed files with 13 additions and 34 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
/pytest-benchmark-3.1.1.tar.gz
/pytest-benchmark-3.2.2.tar.gz

View File

@@ -2,25 +2,15 @@
Name: python-%{srcname}
Version: 3.1.1
Release: 6%{?dist}
Release: 8%{?dist}
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: python2-devel
BuildRequires: python3-devel
# Tests BR
BuildRequires: python2-cpuinfo
BuildRequires: python3-cpuinfo
BuildRequires: python2-pytest
BuildRequires: python3-pytest
BuildRequires: python2-statistics
%if 0%{?fedora} >= 28
BuildRequires: python2-pathlib
%else
BuildRequires: python-pathlib
%endif
%global _description\
This plugin provides a benchmark fixture. This fixture is a callable object\
@@ -36,20 +26,6 @@ Notable features and goals:\
%description %_description
%package -n python2-%{srcname}
Summary: %summary
%{?python_provide:%python_provide python2-%{srcname}}
Requires: python2-pytest
Requires: python2-cpuinfo
Requires: python2-statistics
%if 0%{?fedora} >= 28
Requires: python2-pathlib
%else
Requires: python-pathlib
%endif
%description -n python2-%{srcname} %_description
%package -n python3-%{srcname}
Summary: %summary
%{?python_provide:%python_provide python3-%{srcname}}
@@ -62,23 +38,14 @@ Requires: python3-cpuinfo
%autosetup -n %{srcname}-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-%{srcname}
%doc README.rst CHANGELOG.rst CONTRIBUTING.rst AUTHORS.rst
%license LICENSE
%{python2_sitelib}/pytest_benchmark
%{python2_sitelib}/pytest_benchmark-%{version}-py*.egg-info
%files -n python3-%{srcname}
%doc README.rst CHANGELOG.rst CONTRIBUTING.rst AUTHORS.rst
%license LICENSE
@@ -88,6 +55,17 @@ Requires: python3-cpuinfo
%{python3_sitelib}/pytest_benchmark-%{version}-py*.egg-info
%changelog
* Tue Jul 23 2019 Stephen Smoogen <smooge@fedoraproject.org> - 3.1.1-8
- Downgrade to 3.1.1 because EL8 comes with earlier version we can't replace
* Sun Mar 03 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1.1-8
- Subpackage python2-pytest-benchmark has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
- Fix FTBFS caused by removal of python2-cpuinfo (#1675780)
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild