3 %bcond_without tests # unit tests [py3 tests fail with sphinx3.x+docutils0.18 combo]
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Utilities for testing Sphinx extensions
8 Summary(pl.UTF-8): Narzędzia do testowania rozszerzeń Sphinksa
9 Name: python-sphinxtesters
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/sphinxtesters/
15 Source0: https://files.pythonhosted.org/packages/source/s/sphinxtesters/sphinxtesters-%{version}.tar.gz
16 # Source0-md5: 3df3720ba757d3d8270fed5aff622852
17 Patch0: %{name}-noconf.patch
18 URL: https://pypi.org/project/sphinxtesters/
20 BuildRequires: python-modules >= 1:2.7
21 BuildRequires: python-setuptools
23 BuildRequires: python-Sphinx >= 1.4
24 BuildRequires: python-pytest
28 BuildRequires: python3-modules >= 1:3.3
29 BuildRequires: python3-setuptools
31 BuildRequires: python3-Sphinx >= 1.4
32 BuildRequires: python3-pytest
35 BuildRequires: rpm-pythonprov
36 BuildRequires: rpmbuild(macros) >= 1.714
37 Requires: python-Sphinx >= 1.4
38 Requires: python-modules >= 1:2.7
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Utilities for testing Sphinx extensions.
45 %description -l pl.UTF-8
46 Narzędzia do testowania rozszerzeń Sphinksa.
48 %package -n python3-sphinxtesters
49 Summary: Utilities for testing Sphinx extensions
50 Summary(pl.UTF-8): Narzędzia do testowania rozszerzeń Sphinksa
51 Group: Libraries/Python
52 Requires: python3-Sphinx >= 1.4
53 Requires: python3-modules >= 1:3.3
55 %description -n python3-sphinxtesters
56 Utilities for testing Sphinx extensions.
58 %description -n python3-sphinxtesters -l pl.UTF-8
59 Narzędzia do testowania rozszerzeń Sphinksa.
62 %setup -q -n sphinxtesters-%{version}
70 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
71 %{__python} -m pytest sphinxtesters/tests
79 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
80 %{__python3} -m pytest sphinxtesters/tests
85 rm -rf $RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
103 %doc LICENSE README.rst
104 %{py_sitescriptdir}/sphinxtesters
105 %{py_sitescriptdir}/sphinxtesters-%{version}-py*.egg-info
109 %files -n python3-sphinxtesters
110 %defattr(644,root,root,755)
111 %doc LICENSE README.rst
112 %{py3_sitescriptdir}/sphinxtesters
113 %{py3_sitescriptdir}/sphinxtesters-%{version}-py*.egg-info