Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-sphinx-inline-tabs for
openSUSE:Factory checked in at 2023-05-15 16:54:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sphinx-inline-tabs (Old)
and /work/SRC/openSUSE:Factory/.python-sphinx-inline-tabs.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sphinx-inline-tabs"
Mon May 15 16:54:26 2023 rev:3 rq:1087123 version:2023.4.21
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-sphinx-inline-tabs/python-sphinx-inline-tabs.changes
2023-01-08 21:25:35.691266831 +0100
+++
/work/SRC/openSUSE:Factory/.python-sphinx-inline-tabs.new.1533/python-sphinx-inline-tabs.changes
2023-05-15 16:54:40.224288987 +0200
@@ -1,0 +2,6 @@
+Sun May 14 18:42:57 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 2023.4.21:
+ * feat: allow tabs to be selected via URL
+
+-------------------------------------------------------------------
Old:
----
sphinx_inline_tabs-2022.1.2b11.tar.gz
New:
----
sphinx_inline_tabs-2023.4.21.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-sphinx-inline-tabs.spec ++++++
--- /var/tmp/diff_new_pack.gI4q6w/_old 2023-05-15 16:54:40.704291636 +0200
+++ /var/tmp/diff_new_pack.gI4q6w/_new 2023-05-15 16:54:40.708291658 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
Name: python-sphinx-inline-tabs
-Version: 2022.1.2b11
+Version: 2023.4.21
Release: 0
Summary: Add inline tabbed content to your Sphinx documentation
License: MIT
++++++ sphinx_inline_tabs-2022.1.2b11.tar.gz ->
sphinx_inline_tabs-2023.4.21.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/sphinx_inline_tabs-2022.1.2b11/.pre-commit-config.yaml
new/sphinx_inline_tabs-2023.4.21/.pre-commit-config.yaml
--- old/sphinx_inline_tabs-2022.1.2b11/.pre-commit-config.yaml 2021-08-17
10:19:55.068288800 +0200
+++ new/sphinx_inline_tabs-2023.4.21/.pre-commit-config.yaml 2023-03-29
00:48:54.163109300 +0200
@@ -1,23 +1,21 @@
repos:
- repo: https://github.com/psf/black
- rev: 20.8b1
+ rev: 23.1.0
hooks:
- id: black
- language_version: python3.8
- - repo: https://github.com/timothycrosley/isort
- rev: 5.7.0
+ - repo: https://github.com/PyCQA/isort
+ rev: 5.12.0
hooks:
- id: isort
- files: \.py$
- - repo: https://gitlab.com/pycqa/flake8
- rev: 3.9.0
+ - repo: https://github.com/PyCQA/flake8
+ rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v3.4.0
+ rev: v4.4.0
hooks:
- id: check-builtin-literals
- id: check-added-large-files
@@ -30,18 +28,17 @@
- id: trailing-whitespace
- repo: https://github.com/PyCQA/pydocstyle.git
- rev: 6.0.0
+ rev: 6.3.0
hooks:
- id: pydocstyle
- files: src/.*\.py$
+ exclude: noxfile\.py|docs/conf\.py
- repo: https://github.com/asottile/blacken-docs
- rev: v1.10.0
+ rev: 1.13.0
hooks:
- id: blacken-docs
- additional_dependencies: [black==20.8b1]
- repo: https://github.com/pre-commit/mirrors-prettier
- rev: v2.2.1
+ rev: v3.0.0-alpha.6
hooks:
- id: prettier
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/sphinx_inline_tabs-2022.1.2b11/PKG-INFO
new/sphinx_inline_tabs-2023.4.21/PKG-INFO
--- old/sphinx_inline_tabs-2022.1.2b11/PKG-INFO 1970-01-01 01:00:00.000000000
+0100
+++ new/sphinx_inline_tabs-2023.4.21/PKG-INFO 1970-01-01 01:00:00.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: sphinx_inline_tabs
-Version: 2022.1.2b11
+Version: 2023.4.21
Summary: Add inline tabbed content to your Sphinx documentation.
Home-page: https://github.com/pradyunsg/sphinx-inline-tabs
Author: Pradyun Gedam
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/sphinx_inline_tabs-2022.1.2b11/noxfile.py
new/sphinx_inline_tabs-2023.4.21/noxfile.py
--- old/sphinx_inline_tabs-2022.1.2b11/noxfile.py 2021-08-17
10:19:55.069429200 +0200
+++ new/sphinx_inline_tabs-2023.4.21/noxfile.py 2023-04-21 22:23:49.482066200
+0200
@@ -29,7 +29,7 @@
#
# Development Sessions
#
[email protected](name="docs-live", python="3.8", reuse_venv=True)
[email protected](name="docs-live")
def docs_live(session):
if session.posargs:
docs_dir = session.posargs[0]
@@ -56,7 +56,7 @@
)
[email protected](python="3.8", reuse_venv=True)
[email protected]
def docs(session):
_install_this_project_with_flit(session, extras=["doc"], editable=False)
@@ -64,7 +64,7 @@
session.run("sphinx-build", "-b", "dirhtml", "-v", "docs/", "build/docs")
[email protected](python="3.8", reuse_venv=True)
[email protected]
def lint(session):
session.install("pre-commit")
@@ -76,7 +76,7 @@
session.run("pre-commit", "run", "--all-files", *args)
[email protected](python="3.6")
[email protected]
def test(session):
_install_this_project_with_flit(session, extras=["test"])
@@ -91,14 +91,19 @@
for line in f:
if line.startswith(marker):
version = line[len(marker) + 1 : -2]
- current_number = int(version.split(".dev")[-1])
+ last_release_date, last_release_number_str =
version.split(".dev")
+ last_release_number = int(last_release_number_str)
break
else:
raise RuntimeError("Could not find current version.")
today = datetime.date.today()
- release_version = today.strftime(f"%Y.%m.%d.beta{current_number}")
- next_version = today.strftime(f"%Y.%m.%d.dev{current_number+1}")
+ today_date = today.strftime("%Y.%m.%d")
+ if last_release_date.startswith(today_date):
+ release_version = today_date
+ else:
+ release_version = today.strftime(f"%Y.%m.%d.{last_release_number}")
+ next_version = today.strftime(f"%Y.%m.%d.dev{last_release_number+1}")
return release_version, next_version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/sphinx_inline_tabs-2022.1.2b11/src/sphinx_inline_tabs/__init__.py
new/sphinx_inline_tabs-2023.4.21/src/sphinx_inline_tabs/__init__.py
--- old/sphinx_inline_tabs-2022.1.2b11/src/sphinx_inline_tabs/__init__.py
2022-01-02 18:35:41.086430500 +0100
+++ new/sphinx_inline_tabs-2023.4.21/src/sphinx_inline_tabs/__init__.py
2023-04-21 22:25:10.071886800 +0200
@@ -2,7 +2,7 @@
import os
-__version__ = "2022.01.02.beta11"
+__version__ = "2023.04.21"
__all__ = ["setup"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/sphinx_inline_tabs-2022.1.2b11/src/sphinx_inline_tabs/_impl.py
new/sphinx_inline_tabs-2023.4.21/src/sphinx_inline_tabs/_impl.py
--- old/sphinx_inline_tabs-2022.1.2b11/src/sphinx_inline_tabs/_impl.py
2021-08-17 10:19:55.069837300 +0200
+++ new/sphinx_inline_tabs-2023.4.21/src/sphinx_inline_tabs/_impl.py
2023-03-29 00:47:44.824484600 +0200
@@ -1,7 +1,7 @@
"""The actual implementation."""
import itertools
-from typing import List, Literal
+from typing import List
from docutils import nodes
from docutils.parsers.rst import directives
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/sphinx_inline_tabs-2022.1.2b11/src/sphinx_inline_tabs/static/tabs.js
new/sphinx_inline_tabs-2023.4.21/src/sphinx_inline_tabs/static/tabs.js
--- old/sphinx_inline_tabs-2022.1.2b11/src/sphinx_inline_tabs/static/tabs.js
2021-12-22 13:20:46.499434200 +0100
+++ new/sphinx_inline_tabs-2023.4.21/src/sphinx_inline_tabs/static/tabs.js
2023-03-29 00:46:26.176087900 +0200
@@ -2,6 +2,9 @@
function ready() {
var li = document.getElementsByClassName("tab-label");
+ const urlParams = new URLSearchParams(window.location.search);
+ const tabs = urlParams.getAll("tabs");
+
for (const label of li) {
label.onclick = onLabelClick;
const text = label.textContent;
@@ -10,6 +13,12 @@
}
labels_by_text[text].push(label);
}
+
+ for (const tab of tabs) {
+ for (label of labels_by_text[tab]) {
+ label.previousSibling.checked = true;
+ }
+ }
}
function onLabelClick() {