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}.zip
20 # Source0-md5: 2eef117c2f9db55d6639f5ef733575a6
21 URL: https://bitbucket.org/pytest-dev/pytest-runner
22 BuildRequires: rpm-pythonprov
23 BuildRequires: rpmbuild(macros) >= 1.616
25 BuildRequires: python-modules >= 1:2.6
26 BuildRequires: python-setuptools
27 BuildRequires: python-setuptools_scm
28 %{?with_doc:BuildRequires: sphinx-pdg}
31 BuildRequires: python3-modules >= 1:3.2
32 BuildRequires: python3-setuptools
33 BuildRequires: python3-setuptools_scm
35 Requires: python-modules
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Setup scripts can use pytest-runner to add setup.py test support for
43 %description -l pl.UTF-8
44 Skrypty setup mogą wykorzystywać moduł pytest-runner do dodawania
45 obsługi testów pytest runnera w setup.py.
47 %package -n python3-pytest-runner
48 Summary: Invoke py.test as distutils command with dependency resolution
49 Summary(pl.UTF-8): Wywoływanie py.test jako polecenia distutils z rozwiązywaniem zależności
50 Group: Libraries/Python
51 Requires: python3-modules
53 %description -n python3-pytest-runner
54 Setup scripts can use pytest-runner to add setup.py test support for
57 %description -n python3-pytest-runner -l pl.UTF-8
58 Skrypty setup mogą wykorzystywać moduł pytest-runner do dodawania
59 obsługi testów pytest runnera w setup.py.
62 Summary: pytest-runner module documentation
63 Summary(pl.UTF-8): Dokumentacja modułu pytest-runner
67 Documentation for pytest-runner module.
69 %description apidocs -l pl.UTF-8
70 Dokumentacja modułu pytest-runner.
73 %setup -q -n pytest-runner-%{version}
77 %py_build %{?with_tests:test}
80 %{__python} setup.py build_sphinx
85 %py3_build %{?with_tests:test}
89 rm -rf $RPM_BUILD_ROOT
102 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
107 %doc CHANGES.txt README.txt
108 %{py_sitescriptdir}/ptr.py[co]
109 %{py_sitescriptdir}/pytest_runner-%{version}-py*.egg-info
113 %files -n python3-pytest-runner
114 %defattr(644,root,root,755)
115 %doc CHANGES.txt README.txt
116 %{py3_sitescriptdir}/ptr.py
117 %{py3_sitescriptdir}/__pycache__/ptr.cpython-*.py[co]
118 %{py3_sitescriptdir}/pytest_runner-%{version}-py*.egg-info
123 %defattr(644,root,root,755)
124 %doc build/sphinx/html/*