3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: pytest plugin that allows multiple failures per test
7 Summary(pl.UTF-8): Wtyczka pytesta pozwalająca na wiele niepowodzeń z jednego testu
8 Name: python-pytest-check
9 # keep 0.2.x for python2 support
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pytest-check/
15 Source0: https://files.pythonhosted.org/packages/source/p/pytest-check/pytest-check-%{version}.tar.gz
16 # Source0-md5: 21297eac5d350062aac1fc4eb1d081e5
17 URL: https://pypi.org/project/pytest-check/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
23 BuildRequires: python3-modules >= 1:3.4
24 BuildRequires: python3-setuptools
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.714
28 Requires: python-modules >= 1:2.7
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 A pytest plugin that allows multiple failures per test.
35 This plugin was a rewrite and a rename of pytest-expect.
37 %description -l pl.UTF-8
38 Wtyczka pytesta pozwalająca na wiele niepowodzeń z jednego testu.
40 Ta wtyczka była przepisaną wtyczką pytest-expect, z nową nazwą.
42 %package -n python3-pytest-check
43 Summary: pytest plugin that allows multiple failures per test
44 Summary(pl.UTF-8): Wtyczka pytesta pozwalająca na wiele niepowodzeń z jednego testu
45 Group: Libraries/Python
46 Requires: python3-modules >= 1:3.4
48 %description -n python3-pytest-check
49 A pytest plugin that allows multiple failures per test.
51 This plugin was a rewrite and a rename of pytest-expect.
53 %description -n python3-pytest-check -l pl.UTF-8
54 Wtyczka pytesta pozwalająca na wiele niepowodzeń z jednego testu.
56 Ta wtyczka była przepisaną wtyczką pytest-expect, z nową nazwą.
59 %setup -q -n pytest-check-%{version}
71 rm -rf $RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
90 %{py_sitescriptdir}/pytest_check
91 %{py_sitescriptdir}/pytest_check-%{version}-py*.egg-info
95 %files -n python3-pytest-check
96 %defattr(644,root,root,755)
98 %{py3_sitescriptdir}/pytest_check
99 %{py3_sitescriptdir}/pytest_check-%{version}-py*.egg-info