Hello community, here is the log from the commit of package python-readthedocs-sphinx-ext for openSUSE:Factory checked in at 2020-01-20 22:50:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-readthedocs-sphinx-ext (Old) and /work/SRC/openSUSE:Factory/.python-readthedocs-sphinx-ext.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-readthedocs-sphinx-ext" Mon Jan 20 22:50:32 2020 rev:3 rq:765483 version:1.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-readthedocs-sphinx-ext/python-readthedocs-sphinx-ext.changes 2019-07-30 13:05:01.110393828 +0200 +++ /work/SRC/openSUSE:Factory/.python-readthedocs-sphinx-ext.new.26092/python-readthedocs-sphinx-ext.changes 2020-01-20 22:50:38.079232492 +0100 @@ -1,0 +2,12 @@ +Sat Jan 18 18:41:10 UTC 2020 - Arun Persaud <a...@gmx.de> + +- specfile: + * update copyright year + * be more specific in %files section + +- update to version 1.0.1: + * more JS exscapes + * Use new footer_api_host settings + * rename setting + +------------------------------------------------------------------- Old: ---- readthedocs-sphinx-ext-1.0.0.tar.gz New: ---- readthedocs-sphinx-ext-1.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-readthedocs-sphinx-ext.spec ++++++ --- /var/tmp/diff_new_pack.T5d5zg/_old 2020-01-20 22:50:40.039233246 +0100 +++ /var/tmp/diff_new_pack.T5d5zg/_new 2020-01-20 22:50:40.051233251 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-readthedocs-sphinx-ext # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-readthedocs-sphinx-ext -Version: 1.0.0 +Version: 1.0.1 Release: 0 Summary: Sphinx extension for Read the Docs overrides License: MIT Group: Development/Languages/Python -URL: http://github.com/rtfd/readthedocs-sphinx-ext +URL: https://github.com/rtfd/readthedocs-sphinx-ext Source: https://files.pythonhosted.org/packages/source/r/readthedocs-sphinx-ext/readthedocs-sphinx-ext-%{version}.tar.gz BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pytest} @@ -58,6 +58,7 @@ %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/readthedocs_ext +%{python_sitelib}/readthedocs_sphinx_ext-%{version}-py*.egg-info %changelog ++++++ readthedocs-sphinx-ext-1.0.0.tar.gz -> readthedocs-sphinx-ext-1.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-1.0.0/PKG-INFO new/readthedocs-sphinx-ext-1.0.1/PKG-INFO --- old/readthedocs-sphinx-ext-1.0.0/PKG-INFO 2019-07-16 21:49:55.000000000 +0200 +++ new/readthedocs-sphinx-ext-1.0.1/PKG-INFO 2019-11-12 17:50:18.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: readthedocs-sphinx-ext -Version: 1.0.0 +Version: 1.0.1 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-1.0.0/readthedocs_ext/_static/readthedocs-data.js_t new/readthedocs-sphinx-ext-1.0.1/readthedocs_ext/_static/readthedocs-data.js_t --- old/readthedocs-sphinx-ext-1.0.0/readthedocs_ext/_static/readthedocs-data.js_t 2018-08-01 11:35:50.000000000 +0200 +++ new/readthedocs-sphinx-ext-1.0.1/readthedocs_ext/_static/readthedocs-data.js_t 2019-11-12 17:40:40.000000000 +0100 @@ -1,22 +1,23 @@ var READTHEDOCS_DATA = { - project: "{{ slug }}", - version: "{{ version_slug }}", - language: "{{ rtd_language }}", - programming_language: "{{ programming_language }}", + project: {{ slug|default('')|tojson }}, + version: {{ version_slug|default('')|tojson }}, + language: {{ rtd_language|default('')|tojson }}, + programming_language: {{ programming_language|default('')|tojson }}, subprojects: {}, - canonical_url: "{{ canonical_url }}", - theme: "{{ html_theme }}", + canonical_url: {{ canonical_url|default('')|tojson }}, + theme: {{ html_theme|default('')|tojson }}, builder: "sphinx", - docroot: "{{ conf_py_path }}", - source_suffix: "{{ source_suffix }}", - api_host: "{{ api_host }}", - commit: "{{ commit }}", + docroot: {{ conf_py_path|default('')|tojson }}, + source_suffix: {{ source_suffix|default('')|tojson }}, + api_host: {{ api_host|default('')|tojson }}, + proxied_api_host: {{ proxied_api_host|default('')|tojson }}, + commit: {{ commit|default('')|tojson }}, ad_free: {% if ad_free %}true{% else %}false{% endif %}, - global_analytics_code: {% if global_analytics_code %}'{{ global_analytics_code }}'{% else %}null{% endif %}, - user_analytics_code: {% if user_analytics_code %}'{{ user_analytics_code }}'{% else %}null{% endif %} + global_analytics_code: {% if global_analytics_code %}{{ global_analytics_code|default('')|tojson }}{% else %}null{% endif %}, + user_analytics_code: {% if user_analytics_code %}{{ user_analytics_code|default('')|tojson }}{% else %}null{% endif %} }; {% for slug, url in subprojects %} -READTHEDOCS_DATA.subprojects["{{ slug }}"] = "{{ url }}"; +READTHEDOCS_DATA.subprojects[{{ slug|default('')|tojson }}] = {{ url|default('')|tojson }}; {% endfor %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-1.0.0/readthedocs_ext/mixins.py new/readthedocs-sphinx-ext-1.0.1/readthedocs_ext/mixins.py --- old/readthedocs-sphinx-ext-1.0.0/readthedocs_ext/mixins.py 2019-06-12 00:28:26.000000000 +0200 +++ new/readthedocs-sphinx-ext-1.0.1/readthedocs_ext/mixins.py 2019-11-12 17:40:40.000000000 +0100 @@ -50,11 +50,14 @@ context=ctx, ) else: + from sphinx.util.template import SphinxRenderer + renderer = SphinxRenderer() + copy_asset( path_src, path_dest, context=ctx, - renderer=self.templates + renderer=renderer, ) log.info('done') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-1.0.0/readthedocs_sphinx_ext.egg-info/PKG-INFO new/readthedocs-sphinx-ext-1.0.1/readthedocs_sphinx_ext.egg-info/PKG-INFO --- old/readthedocs-sphinx-ext-1.0.0/readthedocs_sphinx_ext.egg-info/PKG-INFO 2019-07-16 21:49:54.000000000 +0200 +++ new/readthedocs-sphinx-ext-1.0.1/readthedocs_sphinx_ext.egg-info/PKG-INFO 2019-11-12 17:50:18.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: readthedocs-sphinx-ext -Version: 1.0.0 +Version: 1.0.1 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-1.0.0/setup.py new/readthedocs-sphinx-ext-1.0.1/setup.py --- old/readthedocs-sphinx-ext-1.0.0/setup.py 2019-07-16 21:49:45.000000000 +0200 +++ new/readthedocs-sphinx-ext-1.0.1/setup.py 2019-11-12 17:49:36.000000000 +0100 @@ -10,7 +10,7 @@ setup( name='readthedocs-sphinx-ext', - version='1.0.0', + version='1.0.1', author='Read the Docs, Inc', author_email='d...@readthedocs.com', url='http://github.com/readthedocs/readthedocs-sphinx-ext', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-1.0.0/tests/pyexample/conf.py new/readthedocs-sphinx-ext-1.0.1/tests/pyexample/conf.py --- old/readthedocs-sphinx-ext-1.0.0/tests/pyexample/conf.py 2019-07-16 21:28:46.000000000 +0200 +++ new/readthedocs-sphinx-ext-1.0.1/tests/pyexample/conf.py 2019-11-12 17:40:40.000000000 +0100 @@ -22,3 +22,11 @@ html_theme = 'alabaster' html_static_path = ['_static'] htmlhelp_basename = 'pyexampledoc' + +html_context = { + 'slug': 'test-slug', + 'rtd_language': 'en', + 'user_analytics_code': '', + 'global_analytics_code': "malic''ious", + 'commit': 'deadd00d', +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-1.0.0/tests/test_integration.py new/readthedocs-sphinx-ext-1.0.1/tests/test_integration.py --- old/readthedocs-sphinx-ext-1.0.0/tests/test_integration.py 2019-07-16 21:28:46.000000000 +0200 +++ new/readthedocs-sphinx-ext-1.0.1/tests/test_integration.py 2019-11-12 17:40:40.000000000 +0100 @@ -93,3 +93,8 @@ builder='readthedocs') as data: self.assertNotIn('escape \' this js', data) self.assertIn('escape\\u0027 this js', data) + + with build_output('pyexample', '_build/readthedocs/_static/readthedocs-data.js', + builder='readthedocs') as data: + self.assertNotIn("malic''ious", data) + self.assertIn('malic\\u0027\\u0027ious', data)