Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-os-api-ref for 
openSUSE:Factory checked in at 2021-09-15 22:51:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-os-api-ref (Old)
 and      /work/SRC/openSUSE:Factory/.python-os-api-ref.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-os-api-ref"

Wed Sep 15 22:51:34 2021 rev:12 rq:919239 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-os-api-ref/python-os-api-ref.changes      
2020-10-26 16:16:56.178965191 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-os-api-ref.new.1899/python-os-api-ref.changes
    2021-09-15 22:51:55.074945064 +0200
@@ -1,0 +2,6 @@
+Mon Aug  9 18:48:40 UTC 2021 - [email protected]
+
+- added 0001-Replace-add_stylesheet-add_javascript.patch
+  compatibility with newer Sphinx
+
+-------------------------------------------------------------------

New:
----
  0001-Replace-add_stylesheet-add_javascript.patch

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

Other differences:
------------------
++++++ python-os-api-ref.spec ++++++
--- /var/tmp/diff_new_pack.xrklTv/_old  2021-09-15 22:51:55.598945690 +0200
+++ /var/tmp/diff_new_pack.xrklTv/_new  2021-09-15 22:51:55.602945695 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-os-api-ref
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,8 +22,9 @@
 Summary:        Sphinx Extensions to support API reference sites in OpenStack
 License:        Apache-2.0
 Group:          Development/Languages/Python
-URL:            https://launchpad.net/%{sname}
+URL:            https://docs.openstack.org/os-api-ref
 Source0:        
https://files.pythonhosted.org/packages/source/o/os-api-ref/os-api-ref-2.1.0.tar.gz
+Patch1:         0001-Replace-add_stylesheet-add_javascript.patch
 BuildRequires:  openstack-macros
 BuildRequires:  python3-PyYAML >= 3.12
 BuildRequires:  python3-Sphinx
@@ -51,7 +52,6 @@
 
 %package -n python3-os-api-ref
 Summary:        Sphinx Extensions to support API reference sites in OpenStack
-Group:          Development/Languages/Python
 Requires:       python3-PyYAML >= 3.12
 Requires:       python3-Sphinx
 Requires:       python3-openstackdocstheme >= 2.2.1

++++++ 0001-Replace-add_stylesheet-add_javascript.patch ++++++
>From 1e639fd5a2de4595559478f3a513e2023ea6fa23 Mon Sep 17 00:00:00 2001
From: Stephen Finucane <[email protected]>
Date: Mon, 7 Dec 2020 11:21:31 +0000
Subject: [PATCH] Replace 'add_stylesheet', 'add_javascript'

We currently see the following warnings when building a doc project
involving os-api-ref:

  RemovedInSphinx40Warning: The app.add_stylesheet() is deprecated.
  Please use app.add_css_file() instead.
  RemovedInSphinx40Warning: The app.add_javascript() is deprecated.
  Please use app.add_js_file() instead.

As the message would suggest, these methods were replaced by
'add_css_file' and 'add_js_file' in commits 3afc72fb [1] and f3168d98
[2], respectively. Both changes were first included in Sphinx 1.8, which
is lower than our current minimum, so there's no need to bump
requirements.

[1] https://github.com/sphinx-doc/sphinx/commit/3afc72fb
[2] https://github.com/sphinx-doc/sphinx/commit/f3168d98

Change-Id: I7f4d772adbcb9d592935b14c430ae3a62a60b6d1
Signed-off-by: Stephen Finucane <[email protected]>
---
 os_api_ref/__init__.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/os_api_ref/__init__.py b/os_api_ref/__init__.py
index 01c31c3..77f6c73 100644
--- a/os_api_ref/__init__.py
+++ b/os_api_ref/__init__.py
@@ -655,9 +655,9 @@ def copy_assets(app, exception):
 
 
 def add_assets(app):
-    app.add_stylesheet('api-site.css')
-    app.add_javascript('api-site.js')
-    app.add_javascript('combobox.js')
+    app.add_css_file('api-site.css')
+    app.add_js_file('api-site.js')
+    app.add_js_file('combobox.js')
 
 
 def setup(app):
-- 
2.32.0

++++++ _service ++++++
--- /var/tmp/diff_new_pack.xrklTv/_old  2021-09-15 22:51:55.638945738 +0200
+++ /var/tmp/diff_new_pack.xrklTv/_new  2021-09-15 22:51:55.638945738 +0200
@@ -1,6 +1,6 @@
 <services>
   <service mode="disabled" name="renderspec">
-    <param 
name="input-template">https://opendev.org/openstack/rpm-packaging/raw/branch/stable/victoria/openstack/os-api-ref/os-api-ref.spec.j2</param>
+    <param 
name="input-template">https://opendev.org/openstack/rpm-packaging/raw/branch/stable/wallaby/openstack/os-api-ref/os-api-ref.spec.j2</param>
     <param name="output-name">python-os-api-ref.spec</param>
     <param 
name="requirements">https://opendev.org/openstack/os-api-ref/raw/branch/master/requirements.txt</param>
     <param name="changelog-email">[email protected]</param>

Reply via email to