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-12-17 21:28:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-readthedocs-sphinx-ext (Old)
 and      /work/SRC/openSUSE:Factory/.python-readthedocs-sphinx-ext.new.25432 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-readthedocs-sphinx-ext"

Sun Dec 17 21:28:51 2023 rev:15 rq:1133554 version:2.2.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-readthedocs-sphinx-ext/python-readthedocs-sphinx-ext.changes
      2023-09-08 21:15:30.778410418 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-readthedocs-sphinx-ext.new.25432/python-readthedocs-sphinx-ext.changes
   2023-12-17 21:28:55.126162419 +0100
@@ -1,0 +2,7 @@
+Fri Dec 15 22:48:43 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 2.2.4:
+  * Reduce loglevel to info
+  * Keep default Search.init behavior if addons injected
+
+-------------------------------------------------------------------

Old:
----
  readthedocs-sphinx-ext-2.2.2.tar.gz

New:
----
  readthedocs-sphinx-ext-2.2.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-readthedocs-sphinx-ext.spec ++++++
--- /var/tmp/diff_new_pack.b1QZ22/_old  2023-12-17 21:28:56.946228510 +0100
+++ /var/tmp/diff_new_pack.b1QZ22/_new  2023-12-17 21:28:56.958228945 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-readthedocs-sphinx-ext
-Version:        2.2.2
+Version:        2.2.4
 Release:        0
 Summary:        Sphinx extension for Read the Docs overrides
 License:        MIT

++++++ readthedocs-sphinx-ext-2.2.2.tar.gz -> 
readthedocs-sphinx-ext-2.2.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/readthedocs-sphinx-ext-2.2.2/PKG-INFO 
new/readthedocs-sphinx-ext-2.2.4/PKG-INFO
--- old/readthedocs-sphinx-ext-2.2.2/PKG-INFO   2023-06-29 22:31:36.956331300 
+0200
+++ new/readthedocs-sphinx-ext-2.2.4/PKG-INFO   2023-12-13 09:44:55.705289800 
+0100
@@ -1,12 +1,15 @@
 Metadata-Version: 2.1
 Name: readthedocs-sphinx-ext
-Version: 2.2.2
+Version: 2.2.4
 Summary: Sphinx extension for Read the Docs overrides
 Home-page: http://github.com/readthedocs/readthedocs-sphinx-ext
 Author: Read the Docs, Inc
 Author-email: [email protected]
 License: MIT
 License-File: LICENSE
+Requires-Dist: requests
+Requires-Dist: Jinja2>=2.9
+Requires-Dist: packaging
 
 Read the Docs Sphinx Extensions
 ===============================
@@ -41,4 +44,4 @@
         $ python -m pip install --upgrade pip build twine
         $ rm -rf dist/
         $ python -m build --sdist --wheel
-        $ twine upload --sign --identity [email protected] dist/*
+        $ twine upload --username=__token__ --password=$PYPI_TOKEN dist/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/readthedocs-sphinx-ext-2.2.2/README.rst 
new/readthedocs-sphinx-ext-2.2.4/README.rst
--- old/readthedocs-sphinx-ext-2.2.2/README.rst 2023-01-04 19:52:06.000000000 
+0100
+++ new/readthedocs-sphinx-ext-2.2.4/README.rst 2023-08-17 12:53:51.000000000 
+0200
@@ -31,4 +31,4 @@
         $ python -m pip install --upgrade pip build twine
         $ rm -rf dist/
         $ python -m build --sdist --wheel
-        $ twine upload --sign --identity [email protected] dist/*
+        $ twine upload --username=__token__ --password=$PYPI_TOKEN dist/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/readthedocs-sphinx-ext-2.2.2/readthedocs_ext/readthedocs.py 
new/readthedocs-sphinx-ext-2.2.4/readthedocs_ext/readthedocs.py
--- old/readthedocs-sphinx-ext-2.2.2/readthedocs_ext/readthedocs.py     
2023-06-29 22:27:57.000000000 +0200
+++ new/readthedocs-sphinx-ext-2.2.4/readthedocs_ext/readthedocs.py     
2023-12-13 09:34:44.000000000 +0100
@@ -250,7 +250,21 @@
     )
 
     if os.path.exists(searchtools_file):
-        replacement_text = '/* Search initialization removed for Read the Docs 
*/'
+        replacement_text = r"""
+/* Search initialization manipulated by Read the Docs */
+/* See https://github.com/readthedocs/addons/issues/213 for more information */
+
+function triggerSearch() {
+  const addonsInjected = document.querySelector(
+          'script[src="/_/static/javascript/readthedocs-addons.js"]'
+          );
+  if (addonsInjected) {
+    Search.init();
+  }
+}
+
+_ready(triggerSearch);
+"""
         replacement_regex = re.compile(
             r'''
             ^(\$\(document\).ready\(function\s*\(\)\s*{(?:\n|\r\n?)
@@ -270,7 +284,7 @@
             data = replacement_regex.sub(replacement_text, data)
             outfile.write(data)
     else:
-        log.warning('Missing searchtools: {}'.format(searchtools_file))
+        log.info('Missing searchtools: {}'.format(searchtools_file))
 
 
 def dump_telemetry(app, config):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/readthedocs-sphinx-ext-2.2.2/readthedocs_sphinx_ext.egg-info/PKG-INFO 
new/readthedocs-sphinx-ext-2.2.4/readthedocs_sphinx_ext.egg-info/PKG-INFO
--- old/readthedocs-sphinx-ext-2.2.2/readthedocs_sphinx_ext.egg-info/PKG-INFO   
2023-06-29 22:31:36.000000000 +0200
+++ new/readthedocs-sphinx-ext-2.2.4/readthedocs_sphinx_ext.egg-info/PKG-INFO   
2023-12-13 09:44:55.000000000 +0100
@@ -1,12 +1,15 @@
 Metadata-Version: 2.1
 Name: readthedocs-sphinx-ext
-Version: 2.2.2
+Version: 2.2.4
 Summary: Sphinx extension for Read the Docs overrides
 Home-page: http://github.com/readthedocs/readthedocs-sphinx-ext
 Author: Read the Docs, Inc
 Author-email: [email protected]
 License: MIT
 License-File: LICENSE
+Requires-Dist: requests
+Requires-Dist: Jinja2>=2.9
+Requires-Dist: packaging
 
 Read the Docs Sphinx Extensions
 ===============================
@@ -41,4 +44,4 @@
         $ python -m pip install --upgrade pip build twine
         $ rm -rf dist/
         $ python -m build --sdist --wheel
-        $ twine upload --sign --identity [email protected] dist/*
+        $ twine upload --username=__token__ --password=$PYPI_TOKEN dist/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/readthedocs-sphinx-ext-2.2.2/readthedocs_sphinx_ext.egg-info/SOURCES.txt 
new/readthedocs-sphinx-ext-2.2.4/readthedocs_sphinx_ext.egg-info/SOURCES.txt
--- 
old/readthedocs-sphinx-ext-2.2.2/readthedocs_sphinx_ext.egg-info/SOURCES.txt    
    2023-06-29 22:31:36.000000000 +0200
+++ 
new/readthedocs-sphinx-ext-2.2.4/readthedocs_sphinx_ext.egg-info/SOURCES.txt    
    2023-12-13 09:44:55.000000000 +0100
@@ -10,6 +10,9 @@
 ./readthedocs_ext/template-meta.py
 ./readthedocs_ext/versionwarning.py
 ./readthedocs_ext/_templates/readthedocs-insert.html.tmpl
+./tests/__init__.py
+./tests/test_integration.py
+./tests/util.py
 readthedocs_ext/_templates/readthedocs-insert.html.tmpl
 readthedocs_sphinx_ext.egg-info/PKG-INFO
 readthedocs_sphinx_ext.egg-info/SOURCES.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/readthedocs-sphinx-ext-2.2.2/setup.py 
new/readthedocs-sphinx-ext-2.2.4/setup.py
--- old/readthedocs-sphinx-ext-2.2.2/setup.py   2023-06-29 22:30:52.000000000 
+0200
+++ new/readthedocs-sphinx-ext-2.2.4/setup.py   2023-12-13 09:40:35.000000000 
+0100
@@ -4,7 +4,7 @@
 
 setup(
     name='readthedocs-sphinx-ext',
-    version='2.2.2',
+    version='2.2.4',
     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.2/tests/test_integration.py 
new/readthedocs-sphinx-ext-2.2.4/tests/test_integration.py
--- old/readthedocs-sphinx-ext-2.2.2/tests/test_integration.py  2023-06-29 
22:27:57.000000000 +0200
+++ new/readthedocs-sphinx-ext-2.2.4/tests/test_integration.py  2023-12-13 
09:34:44.000000000 +0100
@@ -59,8 +59,12 @@
     def test_searchtools_is_patched(self):
         with build_output('pyexample', '_build/html/_static/searchtools.js',
                           builder='html') as data:
-            self.assertNotIn('Search.init();', data)
-            self.assertIn('Search initialization removed for Read the Docs', 
data)
+            search_content = "if (addonsInjected)"
+            self.assertIn(search_content, data)
+            search_content = "Search.init();"
+            self.assertIn(search_content, data)
+            search_content = "_ready(triggerSearch);"
+            self.assertIn(search_content, data)
 
     def test_generate_json_artifacts(self):
         self._run_test(

Reply via email to