3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
6 Summary: Automated testing for the examples in your documentation
7 Summary(pl.UTF-8): Automatyczne testowanie dla przykładów w dokumentacji
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/sybil/
14 Source0: https://files.pythonhosted.org/packages/source/s/sybil/sybil-%{version}.tar.gz
15 # Source0-md5: fd8e33c2691eb042a16dfc179687592b
16 URL: https://pypi.org/project/sybil/
17 BuildRequires: python3-modules >= 1:3.6
18 BuildRequires: python3-setuptools
20 BuildRequires: python3-pytest >= 6.2.0
21 BuildRequires: python3-pytest-cov
23 BuildRequires: rpm-pythonprov
24 BuildRequires: rpmbuild(macros) >= 1.714
26 BuildRequires: python3-furo
27 BuildRequires: sphinx-pdg-3
29 Requires: python3-modules >= 1:3.6
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 This library provides a way to test examples in your documentation by
35 parsing them from the documentation source and evaluating the parsed
36 examples as part of your normal test run. Integration is provided for
37 the main Python test runners.
39 %description -l pl.UTF-8
40 Ta biblioteka pozwala na testowanie przykładów w dokumentacji poprzez
41 ich analizę ze źródeł dokumentacji i wykonywanie jako części
42 normalnego uruchamiania testów. Zapewniona jest integracja z głównymi
43 sposobami uruchamiania testów w Pythonie.
46 Summary: API documentation for Python sybil module
47 Summary(pl.UTF-8): Dokumentacja API modułu Pythona sybil
51 API documentation for Python sybil module.
53 %description apidocs -l pl.UTF-8
54 Dokumentacja API modułu Pythona sybil.
57 %setup -q -n sybil-%{version}
63 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
64 %{__python3} -m pytest tests
69 %{__make} -C docs html \
70 SPHINXBUILD=sphinx-build-3
74 rm -rf $RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
84 %{py3_sitescriptdir}/sybil
85 %{py3_sitescriptdir}/sybil-%{version}-py*.egg-info
89 %defattr(644,root,root,755)
90 %doc docs/_build/html/{_static,*.html,*.js}