public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zope-schema] epel10: fix up sphinx doc generation and python3 test running
@ 2026-11-19  0:36 Adam Williamson
  0 siblings, 0 replies; only message in thread
From: Adam Williamson @ 2026-11-19  0:36 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-zope-schema
Branch : epel10
Commit : fb60488a1e9f22821f98331a8d95545784c934a1
Author : Adam Williamson <awilliam@redhat.com>
Date   : 2016-12-22T11:06:46-08:00
Stats  : +11/-17 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-zope-schema/c/fb60488a1e9f22821f98331a8d95545784c934a1?branch=epel10

Log:
fix up sphinx doc generation and python3 test running

---
diff --git a/python-zope-schema.spec b/python-zope-schema.spec
index 742c47d..1c8e33d 100644
--- a/python-zope-schema.spec
+++ b/python-zope-schema.spec
@@ -76,22 +76,8 @@ rm -rf %{modname}.egg-info
 %endif
 
 # build Sphinx documents
-COPYRIGHT=`grep Author: PKG-INFO |sed -e 's/Author: //'`
-cat >src/zope/schema/conf.py <<END
-templates_path = ['_templates']
-source_suffix = '.txt'
-master_doc = 'index'
-project = '%{modname}'
-copyright = '$COPYRIGHT'
-version = '%{version}'
-release = '%{version}'
-pygments_style = 'sphinx'
-html_static_path = ['_static']
-extensions = []
-END
-
-sphinx-build -b html src/zope/schema/ html
-
+sphinx-build -b html docs/ build/sphinx/html
+cp -pr build/sphinx/html .
 rm -fr html/{.buildinfo,.doctrees}
 
 %install
@@ -103,6 +89,10 @@ rm -fr html/{.buildinfo,.doctrees}
 %check
 %{__python2} setup.py test
 %if 0%{?with_python3}
+# the test setup and runner are rather, ahem, 'special' (see setup.py
+# all_tests). This silly hack makes it fly on recent Python 3.
+ln -s %{python3_sitelib}/zope/* src/zope
+ln -s %{python3_sitearch}/zope/* src/zope
 %{__python3} setup.py test
 %endif
 
@@ -130,7 +120,11 @@ rm -fr html/{.buildinfo,.doctrees}
 
 
 %changelog
-* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.4.2-6
+* Thu Dec 22 2016 Adam Williamson <awilliam@redhat.com> - 4.4.2-6
+- Fix Sphinx doc generation
+- Fix (in a stupid way, but it works) test running on recent Python 3
+
+* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com>
 - Rebuild for Python 3.6
 
 * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.2-5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19  0:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  0:36 [rpms/python-zope-schema] epel10: fix up sphinx doc generation and python3 test running Adam Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox