3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Run each test in a forked subprocess
8 Summary(pl.UTF-8): Uruchamianie każdego testu w oddzielnym procesie
9 Name: python-pytest-forked
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pytest-forked/
15 Source0: https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest-forked-%{version}.tar.gz
16 # Source0-md5: 7d507e84bf9d59182fd528f48fcae8cc
17 URL: https://github.com/pytest-dev/pytest-forked
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
21 BuildRequires: python-setuptools_scm
23 BuildRequires: python-pytest >= 3.1.0
27 BuildRequires: python3-modules >= 1:3.5
28 BuildRequires: python3-setuptools
29 BuildRequires: python3-setuptools_scm
31 BuildRequires: python3-pytest >= 3.1.0
34 BuildRequires: rpm-pythonprov
35 BuildRequires: rpmbuild(macros) >= 1.714
36 Requires: python-modules >= 1:2.7
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Run each test in a forked subprocess.
43 %description -l pl.UTF-8
44 Uruchamianie każdego testu w oddzielnym procesie.
46 %package -n python3-pytest-forked
47 Summary: Run each test in a forked subprocess
48 Summary(pl.UTF-8): Uruchamianie każdego testu w oddzielnym procesie
49 Group: Libraries/Python
50 Requires: python3-modules >= 1:3.5
52 %description -n python3-pytest-forked
53 Run each test in a forked subprocess.
55 %description -n python3-pytest-forked -l pl.UTF-8
56 Uruchamianie każdego testu w oddzielnym procesie.
59 %setup -q -n pytest-forked-%{version}
66 # pytest-flaky plugin breaks test_functional_boxed_capturing
67 PYTHONPATH=$(pwd)/src \
68 %{__python} -m pytest -p no:flaky testing
76 PYTHONPATH=$(pwd)/src \
77 %{__python3} -m pytest -p no:flaky testing
82 rm -rf $RPM_BUILD_ROOT
95 rm -rf $RPM_BUILD_ROOT
99 %defattr(644,root,root,755)
100 %doc CHANGELOG LICENSE README.rst example/boxed.txt
101 %{py_sitescriptdir}/pytest_forked
102 %{py_sitescriptdir}/pytest_forked-%{version}-py*.egg-info
106 %files -n python3-pytest-forked
107 %defattr(644,root,root,755)
108 %doc CHANGELOG LICENSE README.rst example/boxed.txt
109 %{py3_sitescriptdir}/pytest_forked
110 %{py3_sitescriptdir}/pytest_forked-%{version}-py*.egg-info