3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: py.test plugin to store test expectations and mark tests based on them
7 Summary(pl.UTF-8): Wtyczka py.test do zapisywania oczekiwań testów oraz oznaczania testów w oparciu o nie
8 Name: python-pytest-expect
12 Group: Libraries/Python
13 #Source0Download: https://pypi.python.org/simple/pytest-expect/
14 Source0: https://files.pythonhosted.org/packages/source/p/pytest-expect/pytest-expect-%{version}.tar.gz
15 # Source0-md5: f74155c66f255364bf523d29e9bffe3e
16 URL: https://github.com/tholo/pytest-expect
18 BuildRequires: python-modules >= 1:2.6
19 BuildRequires: python-setuptools
21 BuildRequires: python-pytest
22 BuildRequires: python-six
23 BuildRequires: python-u-msgpack
27 BuildRequires: python3-modules >= 1:3.2
28 BuildRequires: python3-setuptools
30 BuildRequires: python3-pytest
31 BuildRequires: python3-six
32 BuildRequires: python3-u-msgpack
35 BuildRequires: rpm-pythonprov
36 BuildRequires: rpmbuild(macros) >= 1.714
37 Requires: python-modules >= 1:2.6
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 A py.test plugin that stores test expectations by saving the set of
43 failing tests, allowing them to be marked as xfail when running them
44 in future. The tests expectations are stored such that they can be
45 distributed alongside the tests.
47 %description -l pl.UTF-8
48 Wtyczka py.test zapisująca oczekiwania testów poprzez zapis zbioru
49 testów kończących się niepowodzeniem, pozwalając na zaznaczenie ich
50 jako xfail (spodziewane niepowodzenie) przy uruchamianiu w
51 przyszłości. Oczekiwania testów są zapisywane w taki sposób, że mogą
52 być rozprowadzane wraz z testami.
54 %package -n python3-pytest-expect
55 Summary: py.test plugin to store test expectations and mark tests based on them
56 Summary(pl.UTF-8): Wtyczka py.test do zapisywania oczekiwań testów oraz oznaczania testów w oparciu o nie
57 Group: Libraries/Python
58 Requires: python3-modules >= 1:3.2
60 %description -n python3-pytest-expect
61 A py.test plugin that stores test expectations by saving the set of
62 failing tests, allowing them to be marked as xfail when running them
63 in future. The tests expectations are stored such that they can be
64 distributed alongside the tests.
66 %description -n python3-pytest-expect -l pl.UTF-8
67 Wtyczka py.test zapisująca oczekiwania testów poprzez zapis zbioru
68 testów kończących się niepowodzeniem, pozwalając na zaznaczenie ich
69 jako xfail (spodziewane niepowodzenie) przy uruchamianiu w
70 przyszłości. Oczekiwania testów są zapisywane w taki sposób, że mogą
71 być rozprowadzane wraz z testami.
74 %setup -q -n pytest-expect-%{version}
86 rm -rf $RPM_BUILD_ROOT
99 rm -rf $RPM_BUILD_ROOT
103 %defattr(644,root,root,755)
105 %{py_sitescriptdir}/pytest_expect
106 %{py_sitescriptdir}/pytest_expect-%{version}-py*.egg-info
110 %files -n python3-pytest-expect
111 %defattr(644,root,root,755)
113 %{py3_sitescriptdir}/pytest_expect
114 %{py3_sitescriptdir}/pytest_expect-%{version}-py*.egg-info