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: 133167c9c56c9121c80852f9cd702140
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 >= 2.6.0
27 BuildRequires: python3-modules >= 1:3.5
28 BuildRequires: python3-setuptools
29 BuildRequires: python3-setuptools_scm
31 BuildRequires: python3-pytest >= 2.6.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}
61 # kill precompiled objects
62 %{__rm} -r testing/*.pyc testing/__pycache__
69 PYTHONPATH=$(pwd)/src \
70 %{__python} -m pytest testing
78 PYTHONPATH=$(pwd)/src \
79 %{__python3} -m pytest testing
84 rm -rf $RPM_BUILD_ROOT
97 rm -rf $RPM_BUILD_ROOT
101 %defattr(644,root,root,755)
102 %doc CHANGELOG LICENSE README.rst example/boxed.txt
103 %{py_sitescriptdir}/pytest_forked
104 %{py_sitescriptdir}/pytest_forked-%{version}-py*.egg-info
108 %files -n python3-pytest-forked
109 %defattr(644,root,root,755)
110 %doc CHANGELOG LICENSE README.rst example/boxed.txt
111 %{py3_sitescriptdir}/pytest_forked
112 %{py3_sitescriptdir}/pytest_forked-%{version}-py*.egg-info