public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Adam Williamson <awilliam@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-zope-schema] epel10: fix up sphinx doc generation and python3 test running
Date: Thu, 19 Nov 2026 00:36:50 GMT [thread overview]
Message-ID: <179504861029.1.15655604959464962826.rpms-python-zope-schema-fb60488a1e9f@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-19 0:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179504861029.1.15655604959464962826.rpms-python-zope-schema-fb60488a1e9f@fedoraproject.org \
--to=awilliam@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox