[packages/python-zope.schema] - updated docs (it seems that _modules dir is not created with Sphinx 4.5), fixed tests
qboosh
qboosh at pld-linux.org
Tue Apr 26 22:14:55 CEST 2022
commit cdff60b9fe430248222e26bade5ed9c84a87398a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Apr 26 22:15:11 2022 +0200
- updated docs (it seems that _modules dir is not created with Sphinx 4.5), fixed tests
python-zope.schema.spec | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/python-zope.schema.spec b/python-zope.schema.spec
index 9363a03..4c5bd41 100644
--- a/python-zope.schema.spec
+++ b/python-zope.schema.spec
@@ -84,11 +84,21 @@ Dokumentacja API modułu Pythona zope.schema.
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd)/src \
+zope-testrunner-2 --test-path=src -v
+%endif
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd)/src \
+zope-testrunner-3 --test-path=src -v
+%endif
%endif
%if %{with doc}
@@ -121,8 +131,8 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%{py_sitescriptdir}/zope/schema
-%{py_sitescriptdir}/zope.schema-*.egg-info
-%{py_sitescriptdir}/zope.schema-*-nspkg.pth
+%{py_sitescriptdir}/zope.schema-%{version}-py*.egg-info
+%{py_sitescriptdir}/zope.schema-%{version}-py*-nspkg.pth
%endif
%if %{with python3}
@@ -130,12 +140,12 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%{py3_sitescriptdir}/zope/schema
-%{py3_sitescriptdir}/zope.schema-*.egg-info
-%{py3_sitescriptdir}/zope.schema-*-nspkg.pth
+%{py3_sitescriptdir}/zope.schema-%{version}-py*.egg-info
+%{py3_sitescriptdir}/zope.schema-%{version}-py*-nspkg.pth
%endif
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
-%doc docs/_build/html/{_modules,_static,*.html,*.js}
+%doc docs/_build/html/{_static,*.html,*.js}
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-zope.schema.git/commitdiff/cdff60b9fe430248222e26bade5ed9c84a87398a
More information about the pld-cvs-commit
mailing list