3 %bcond_without doc # documentation (uses python2)
4 %bcond_with tests # perform "make test" (broken with \--build-base)
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
11 Summary: Invoke py.test as distutils command with dependency resolution
12 Summary(pl.UTF-8): Wywoływanie py.test jako polecenia distutils z rozwiązywaniem zależności
13 Name: python-pytest-runner
17 Group: Libraries/Python
18 #Source0Download: https://pypi.python.org/pypi/pytest-runner
19 Source0: https://pypi.python.org/packages/source/p/pytest-runner/pytest-runner-%{version}.tar.gz
20 # Source0-md5: 360a09bb80b505a7a093c20aeb4d1994
21 URL: https://bitbucket.org/pytest-dev/pytest-runner
22 BuildRequires: rpm-pythonprov
23 BuildRequires: rpmbuild(macros) >= 1.710
25 BuildRequires: python-modules >= 1:2.6
26 %{?with_tests:BuildRequires: python-pytest >= 2.8}
27 BuildRequires: python-setuptools
28 BuildRequires: python-setuptools_scm >= 1.9
29 %{?with_doc:BuildRequires: sphinx-pdg}
32 BuildRequires: python3-modules >= 1:3.2
33 %{?with_tests:BuildRequires: python3-pytest >= 2.8}
34 BuildRequires: python3-setuptools
35 BuildRequires: python3-setuptools_scm >= 1.9
37 Requires: python-modules
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Setup scripts can use pytest-runner to add setup.py test support for
45 %description -l pl.UTF-8
46 Skrypty setup mogą wykorzystywać moduł pytest-runner do dodawania
47 obsługi testów pytest runnera w setup.py.
49 %package -n python3-pytest-runner
50 Summary: Invoke py.test as distutils command with dependency resolution
51 Summary(pl.UTF-8): Wywoływanie py.test jako polecenia distutils z rozwiązywaniem zależności
52 Group: Libraries/Python
53 Requires: python3-modules
55 %description -n python3-pytest-runner
56 Setup scripts can use pytest-runner to add setup.py test support for
59 %description -n python3-pytest-runner -l pl.UTF-8
60 Skrypty setup mogą wykorzystywać moduł pytest-runner do dodawania
61 obsługi testów pytest runnera w setup.py.
64 Summary: pytest-runner module documentation
65 Summary(pl.UTF-8): Dokumentacja modułu pytest-runner
69 Documentation for pytest-runner module.
71 %description apidocs -l pl.UTF-8
72 Dokumentacja modułu pytest-runner.
75 %setup -q -n pytest-runner-%{version}
79 %py_build %{?with_tests:test}
82 %{__python} setup.py build_sphinx
87 %py3_build %{?with_tests:test}
91 rm -rf $RPM_BUILD_ROOT
104 rm -rf $RPM_BUILD_ROOT
108 %defattr(644,root,root,755)
109 %doc CHANGES.rst README.rst
110 %{py_sitescriptdir}/ptr.py[co]
111 %{py_sitescriptdir}/pytest_runner-%{version}-py*.egg-info
115 %files -n python3-pytest-runner
116 %defattr(644,root,root,755)
117 %doc CHANGES.rst README.rst
118 %{py3_sitescriptdir}/ptr.py
119 %{py3_sitescriptdir}/__pycache__/ptr.cpython-*.py[co]
120 %{py3_sitescriptdir}/pytest_runner-%{version}-py*.egg-info
125 %defattr(644,root,root,755)
126 %doc build/sphinx/html/*