Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-sphinx-issues for
openSUSE:Factory checked in at 2025-01-17 18:37:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sphinx-issues (Old)
and /work/SRC/openSUSE:Factory/.python-sphinx-issues.new.5589 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sphinx-issues"
Fri Jan 17 18:37:08 2025 rev:10 rq:1238137 version:5.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-sphinx-issues/python-sphinx-issues.changes
2024-07-03 20:30:14.092921450 +0200
+++
/work/SRC/openSUSE:Factory/.python-sphinx-issues.new.5589/python-sphinx-issues.changes
2025-01-17 18:37:15.048654111 +0100
@@ -1,0 +2,9 @@
+Thu Jan 16 01:21:06 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Update to 5.0.0:
+ * Remove :cwe: and :cve: roles, as these are officially included in
+ Sphinx>=8.1.0.
+ * Support Python 3.9-3.13. Python 3.8 is no longer supported.
+- Clean up Python 2 remains.
+
+-------------------------------------------------------------------
Old:
----
4.1.0.tar.gz
New:
----
5.0.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-sphinx-issues.spec ++++++
--- /var/tmp/diff_new_pack.EvwAKE/_old 2025-01-17 18:37:15.564675493 +0100
+++ /var/tmp/diff_new_pack.EvwAKE/_new 2025-01-17 18:37:15.568675659 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-sphinx-issues
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,14 @@
%{?sle15_python_module_pythons}
Name: python-sphinx-issues
-Version: 4.1.0
+Version: 5.0.0
Release: 0
Summary: A Sphinx extension for linking to a project's issue tracker
License: MIT
URL: https://github.com/sloria/sphinx-issues
Source:
https://github.com/sloria/sphinx-issues/archive/%{version}.tar.gz
BuildRequires: %{python_module Sphinx}
+BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@@ -33,9 +34,6 @@
BuildRequires: python-rpm-macros
Requires: python-Sphinx
BuildArch: noarch
-%if %{with python2}
-BuildRequires: python-mock
-%endif
%python_subpackages
%description
++++++ 4.1.0.tar.gz -> 5.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/sphinx-issues-4.1.0/.github/workflows/build-release.yml
new/sphinx-issues-5.0.0/.github/workflows/build-release.yml
--- old/sphinx-issues-4.1.0/.github/workflows/build-release.yml 2024-04-15
05:03:23.000000000 +0200
+++ new/sphinx-issues-5.0.0/.github/workflows/build-release.yml 2024-10-12
04:22:17.000000000 +0200
@@ -13,8 +13,8 @@
fail-fast: false
matrix:
include:
- - { name: "3.8", python: "3.8", tox: py38 }
- - { name: "3.12", python: "3.12", tox: py312 }
+ - { name: "3.9", python: "3.9", tox: py39 }
+ - { name: "3.13", python: "3.13", tox: py313 }
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v5
@@ -31,7 +31,7 @@
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
- python-version: "3.11"
+ python-version: "3.13"
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
@@ -54,7 +54,7 @@
- uses: actions/[email protected]
- uses: actions/setup-python@v5
with:
- python-version: "3.11"
+ python-version: "3.13"
- run: python -m pip install tox
- run: python -m tox -e lint
publish-to-pypi:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/sphinx-issues-4.1.0/.pre-commit-config.yaml
new/sphinx-issues-5.0.0/.pre-commit-config.yaml
--- old/sphinx-issues-4.1.0/.pre-commit-config.yaml 2024-04-15
05:03:23.000000000 +0200
+++ new/sphinx-issues-5.0.0/.pre-commit-config.yaml 2024-10-12
04:22:17.000000000 +0200
@@ -1,16 +1,18 @@
+ci:
+ autoupdate_schedule: monthly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.3.5
+ rev: v0.6.3
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/python-jsonschema/check-jsonschema
- rev: 0.28.1
+ rev: 0.29.2
hooks:
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/asottile/blacken-docs
- rev: 1.16.0
+ rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.12.1]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/sphinx-issues-4.1.0/README.rst
new/sphinx-issues-5.0.0/README.rst
--- old/sphinx-issues-4.1.0/README.rst 2024-04-15 05:03:23.000000000 +0200
+++ new/sphinx-issues-5.0.0/README.rst 2024-10-12 04:22:17.000000000 +0200
@@ -105,12 +105,6 @@
Fixed in :commit:`6bb9124d5e9dbb2f7b52864c3d8af7feb1b69403`.
-Use the ``:cve:`` role to link to CVEs on https://cve.mitre.org.
-
-.. code-block:: rst
-
- :cve:`CVE-2018-17175` - Addresses possible vulnerability when...
-
.. code-block:: rst
Thanks to :user:`bitprophet` for the idea!
@@ -129,12 +123,6 @@
Fix bad bug :issue:`123, (Duplicate) <199>`
-Use the ``:cwe:`` role to link to CWEs on https://cwe.mitre.org.
-
-.. code-block:: rst
-
- :cwe:`CWE-787` - The software writes data past the end, or...
-
Use the ``:pypi:`` role to link to PyPI on https://pypi.org.
.. code-block:: rst
@@ -155,6 +143,12 @@
Changelog
*********
+5.0.0 (2024-10-11)
+------------------
+
+- Remove `:cwe:` and `:cve:` roles, as these are officially included in
Sphinx>=8.1.0.
+- Support Python 3.9-3.13. Python 3.8 is no longer supported.
+
4.1.0 (2024-04-14)
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/sphinx-issues-4.1.0/pyproject.toml
new/sphinx-issues-5.0.0/pyproject.toml
--- old/sphinx-issues-4.1.0/pyproject.toml 2024-04-15 05:03:23.000000000
+0200
+++ new/sphinx-issues-5.0.0/pyproject.toml 2024-10-12 04:22:17.000000000
+0200
@@ -1,6 +1,6 @@
[project]
name = "sphinx-issues"
-version = "4.1.0"
+version = "5.0.0"
description = "A Sphinx extension for linking to your project's issue tracker"
readme = "README.rst"
license = { file = "LICENSE" }
@@ -10,15 +10,15 @@
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
+ "Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Documentation",
]
keywords = ["sphinx", "issues", "github"]
-requires-python = ">=3.8"
+requires-python = ">=3.9"
dependencies = ["sphinx"]
[project.urls]
@@ -27,7 +27,7 @@
[project.optional-dependencies]
tests = ["pytest"]
-dev = ["sphinx-issues[tests]", "tox", "pre-commit~=3.6"]
+dev = ["sphinx-issues[tests]", "tox", "pre-commit>=3.6,<5.0"]
[build-system]
requires = ["flit_core<4"]
@@ -41,7 +41,10 @@
src = ["src"]
fix = true
show-fixes = true
-show-source = true
+output-format = "full"
+
+[tool.ruff.format]
+docstring-code-format = true
[tool.ruff.lint]
ignore = ["E203", "E266", "E501", "E731"]
@@ -53,3 +56,8 @@
"UP", # pyupgrade
"W", # pycodestyle warning
]
+
+[tool.pytest.ini_options]
+filterwarnings = [
+ "ignore:is already registered, its visitors will be overridden:UserWarning",
+]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/sphinx-issues-4.1.0/src/sphinx_issues/__init__.py
new/sphinx-issues-5.0.0/src/sphinx_issues/__init__.py
--- old/sphinx-issues-4.1.0/src/sphinx_issues/__init__.py 2024-04-15
05:03:23.000000000 +0200
+++ new/sphinx-issues-5.0.0/src/sphinx_issues/__init__.py 2024-10-12
04:22:17.000000000 +0200
@@ -2,39 +2,18 @@
import importlib.metadata
import re
-from typing import Callable, Optional, Tuple
+from typing import Callable, Optional
from docutils import nodes, utils
from sphinx.config import Config
from sphinx.util.nodes import split_explicit_title
-
-def cve_role(name, rawtext, text, lineno, inliner, options=None, content=None):
- """Sphinx role for linking to a CVE on https://cve.mitre.org.
-
- Examples: ::
-
- :cve:`CVE-2018-17175`
-
- """
- options = options or {}
- content = content or []
- has_explicit_title, title, target = split_explicit_title(text)
-
- target = utils.unescape(target).strip()
- title = utils.unescape(title).strip()
- ref = f"https://cve.mitre.org/cgi-bin/cvename.cgi?name={target}"
- text = title if has_explicit_title else target
- link = nodes.reference(text=text, refuri=ref, **options)
- return [link], []
-
-
GITHUB_USER_RE = re.compile("^https://github.com/([^/]+)/([^/]+)/.*")
def _get_default_group_and_project(
config: Config, uri_config_option: str
-) -> Optional[Tuple[str, str]]:
+) -> Optional[tuple[str, str]]:
"""
Get the default group/project or None if not set
"""
@@ -131,7 +110,7 @@
uri_config_option: str,
config: Config,
number: str,
- group_and_project: Optional[Tuple[str, str]] = None,
+ group_and_project: Optional[tuple[str, str]] = None,
) -> str:
"""
Get a URI based on the given configuration and do some sanity checking
@@ -165,27 +144,6 @@
) from e
-def cwe_role(name, rawtext, text, lineno, inliner, options=None, content=None):
- """Sphinx role for linking to a CWE on https://cwe.mitre.org.
-
- Examples: ::
-
- :cwe:`CWE-787`
-
- """
- options = options or {}
- content = content or []
- has_explicit_title, title, target = split_explicit_title(text)
-
- target = utils.unescape(target).strip()
- title = utils.unescape(title).strip()
- number = target[4:]
- ref = f"https://cwe.mitre.org/data/definitions/{number}.html"
- text = title if has_explicit_title else target
- link = nodes.reference(text=text, refuri=ref, **options)
- return [link], []
-
-
def pypi_role(name, rawtext, text, lineno, inliner, options=None,
content=None):
"""Sphinx role for linking to a PyPI on https://pypi.org/.
@@ -402,8 +360,6 @@
app.add_role("pr", pr_role)
app.add_role("user", user_role)
app.add_role("commit", commit_role)
- app.add_role("cve", cve_role)
- app.add_role("cwe", cwe_role)
app.add_role("pypi", pypi_role)
return {
"version": importlib.metadata.version("sphinx-issues"),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/sphinx-issues-4.1.0/tests/test_sphinx_issues.py
new/sphinx-issues-5.0.0/tests/test_sphinx_issues.py
--- old/sphinx-issues-4.1.0/tests/test_sphinx_issues.py 2024-04-15
05:03:23.000000000 +0200
+++ new/sphinx-issues-5.0.0/tests/test_sphinx_issues.py 2024-10-12
04:22:17.000000000 +0200
@@ -10,8 +10,6 @@
from sphinx_issues import (
commit_role,
- cve_role,
- cwe_role,
issue_role,
pr_role,
pypi_role,
@@ -96,20 +94,6 @@
"https://github.com/sponsors/sloria",
),
(
- cve_role,
- "cve",
- "CVE-2018-17175",
- "CVE-2018-17175",
- "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-17175",
- ),
- (
- cwe_role,
- "cve",
- "CWE-787",
- "CWE-787",
- "https://cwe.mitre.org/data/definitions/787.html",
- ),
- (
pypi_role,
"pypi",
"sphinx-issues",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/sphinx-issues-4.1.0/tox.ini
new/sphinx-issues-5.0.0/tox.ini
--- old/sphinx-issues-4.1.0/tox.ini 2024-04-15 05:03:23.000000000 +0200
+++ new/sphinx-issues-5.0.0/tox.ini 2024-10-12 04:22:17.000000000 +0200
@@ -1,5 +1,5 @@
[tox]
-envlist = lint,py{38,39,310,311,312}
+envlist = lint,py{39,310,311,312,313}
[testenv]
extras = tests