Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-readthedocs-sphinx-ext for
openSUSE:Factory checked in at 2023-09-08 21:15:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-readthedocs-sphinx-ext (Old)
and /work/SRC/openSUSE:Factory/.python-readthedocs-sphinx-ext.new.1766
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-readthedocs-sphinx-ext"
Fri Sep 8 21:15:08 2023 rev:14 rq:1109531 version:2.2.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-readthedocs-sphinx-ext/python-readthedocs-sphinx-ext.changes
2023-04-22 21:59:43.676953693 +0200
+++
/work/SRC/openSUSE:Factory/.python-readthedocs-sphinx-ext.new.1766/python-readthedocs-sphinx-ext.changes
2023-09-08 21:15:30.778410418 +0200
@@ -1,0 +2,7 @@
+Thu Sep 7 11:41:01 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 2.2.2:
+ * Remove build-time and commit field to avoid changing all pages
+ * Stop creating readthedocs-sphinx-domain-names.json
+
+-------------------------------------------------------------------
Old:
----
readthedocs-sphinx-ext-2.2.0.tar.gz
New:
----
readthedocs-sphinx-ext-2.2.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-readthedocs-sphinx-ext.spec ++++++
--- /var/tmp/diff_new_pack.e7cRRE/_old 2023-09-08 21:15:31.782446301 +0200
+++ /var/tmp/diff_new_pack.e7cRRE/_new 2023-09-08 21:15:31.782446301 +0200
@@ -16,10 +16,9 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-readthedocs-sphinx-ext
-Version: 2.2.0
+Version: 2.2.2
Release: 0
Summary: Sphinx extension for Read the Docs overrides
License: MIT
++++++ readthedocs-sphinx-ext-2.2.0.tar.gz ->
readthedocs-sphinx-ext-2.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/readthedocs-sphinx-ext-2.2.0/PKG-INFO
new/readthedocs-sphinx-ext-2.2.2/PKG-INFO
--- old/readthedocs-sphinx-ext-2.2.0/PKG-INFO 2022-10-25 17:59:36.479261900
+0200
+++ new/readthedocs-sphinx-ext-2.2.2/PKG-INFO 2023-06-29 22:31:36.956331300
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: readthedocs-sphinx-ext
-Version: 2.2.0
+Version: 2.2.2
Summary: Sphinx extension for Read the Docs overrides
Home-page: http://github.com/readthedocs/readthedocs-sphinx-ext
Author: Read the Docs, Inc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/readthedocs-sphinx-ext-2.2.0/readthedocs_ext/readthedocs.py
new/readthedocs-sphinx-ext-2.2.2/readthedocs_ext/readthedocs.py
--- old/readthedocs-sphinx-ext-2.2.0/readthedocs_ext/readthedocs.py
2022-10-25 17:53:21.000000000 +0200
+++ new/readthedocs-sphinx-ext-2.2.2/readthedocs_ext/readthedocs.py
2023-06-29 22:27:57.000000000 +0200
@@ -7,11 +7,9 @@
import os
import re
import types
-from datetime import datetime
from packaging.version import Version
import sphinx
-from sphinx import package_dir
from sphinx.util.console import bold
@@ -157,9 +155,7 @@
'source_suffix': ctx.get('source_suffix', ''),
'page': ctx.get('pagename', ''),
'api_host': ctx.get('api_host', ''),
- 'commit': ctx.get('commit', ''),
'ad_free': ctx.get('ad_free', ''),
- 'build_date': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),
'global_analytics_code': ctx.get('global_analytics_code'),
'user_analytics_code': ctx.get('user_analytics_code'),
'subprojects': dict(ctx.get('subprojects', [])),
@@ -277,67 +273,6 @@
log.warning('Missing searchtools: {}'.format(searchtools_file))
-def dump_sphinx_data(app, exception):
- """
- Dump data that is only in memory during Sphinx build.
- This is mostly used for search indexing.
-
- This includes:
-
- * `paths`: A mapping of HTML Filename -> RST file
- * `pages`: A mapping of HTML Filename -> Sphinx Page name
- * `titles`: A mapping of HTML Filename -> Page Title
- * `types`: A mapping of Sphinx Domain type slugs -> human-readable name
for that type
-
- """
- if app.builder.name not in JSON_BUILDERS or exception:
- return
- try:
- types = {}
- titles = {}
- paths = {}
- pages = {}
-
- for domain_name, domain_obj in app.env.domains.items():
- for type_name, type_obj in domain_obj.object_types.items():
- key = "{}:{}".format(domain_name, type_name)
- types[key] = str(type_obj.lname)
-
- for page, title in app.env.titles.items():
- page_uri = app.builder.get_target_uri(page)
- titles[page_uri] = title.astext()
- paths[page_uri] = app.env.doc2path(page, base=None)
- pages[page_uri] = page
-
- to_dump = {
- 'types': types,
- 'titles': titles,
- 'paths': paths,
- 'pages': pages,
- }
-
- # We need to get the output directory where the docs are built
- # _build/json.
- build_json = os.path.abspath(
- os.path.join(app.outdir, '..', 'json')
- )
- outjson = os.path.join(build_json,
'readthedocs-sphinx-domain-names.json')
- with open(outjson, 'w+') as json_file:
- json.dump(to_dump, json_file, indent=4)
- except TypeError:
- log.exception(
- 'Fail to encode JSON for object names'
- )
- except IOError:
- log.exception(
- 'Fail to save JSON for object names'
- )
- except Exception:
- log.exception(
- 'Failure in JSON search dump for object names'
- )
-
-
def dump_telemetry(app, config):
# We need to get the output directory where the docs are built
# _build/json.
@@ -417,7 +352,6 @@
app.connect('html-page-context', update_body)
app.connect('html-page-context', generate_json_artifacts)
app.connect('build-finished', remove_search_init)
- app.connect('build-finished', dump_sphinx_data)
if sphinx.version_info >= (1, 8, 0):
# `config-inited` event was introduced in Sphinx 1.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/readthedocs-sphinx-ext-2.2.0/readthedocs_sphinx_ext.egg-info/PKG-INFO
new/readthedocs-sphinx-ext-2.2.2/readthedocs_sphinx_ext.egg-info/PKG-INFO
--- old/readthedocs-sphinx-ext-2.2.0/readthedocs_sphinx_ext.egg-info/PKG-INFO
2022-10-25 17:59:36.000000000 +0200
+++ new/readthedocs-sphinx-ext-2.2.2/readthedocs_sphinx_ext.egg-info/PKG-INFO
2023-06-29 22:31:36.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: readthedocs-sphinx-ext
-Version: 2.2.0
+Version: 2.2.2
Summary: Sphinx extension for Read the Docs overrides
Home-page: http://github.com/readthedocs/readthedocs-sphinx-ext
Author: Read the Docs, Inc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/readthedocs-sphinx-ext-2.2.0/setup.py
new/readthedocs-sphinx-ext-2.2.2/setup.py
--- old/readthedocs-sphinx-ext-2.2.0/setup.py 2022-10-25 17:58:44.000000000
+0200
+++ new/readthedocs-sphinx-ext-2.2.2/setup.py 2023-06-29 22:30:52.000000000
+0200
@@ -4,7 +4,7 @@
setup(
name='readthedocs-sphinx-ext',
- version='2.2.0',
+ version='2.2.2',
author='Read the Docs, Inc',
author_email='[email protected]',
url='http://github.com/readthedocs/readthedocs-sphinx-ext',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/readthedocs-sphinx-ext-2.2.0/tests/test_integration.py
new/readthedocs-sphinx-ext-2.2.2/tests/test_integration.py
--- old/readthedocs-sphinx-ext-2.2.0/tests/test_integration.py 2022-10-25
17:53:21.000000000 +0200
+++ new/readthedocs-sphinx-ext-2.2.2/tests/test_integration.py 2023-06-29
22:27:57.000000000 +0200
@@ -72,22 +72,6 @@
],
)
- def test_generate_json_domain_artifacts(self):
- self._run_test(
- 'pyexample-json',
- '_build/json/readthedocs-sphinx-domain-names.json',
- [
- # types
- '"js:class": "class"',
- # pages
- '"index.html": "index"',
- # paths
- '"index.html": "index.rst"',
- # titles
- '"index.html": "Welcome to pyexample',
- ],
- )
-
def test_escape_js_vars(self):
with build_output('pyexample', '_build/html/escape\' this js.html',
builder='html') as data: