Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sphinx-scrapy for 
openSUSE:Factory checked in at 2026-11-24 12:41:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sphinx-scrapy (Old)
 and      /work/SRC/openSUSE:Factory/.python-sphinx-scrapy.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sphinx-scrapy"

Tue Nov 24 12:41:13 2026 rev:5 rq:1400187 version:0.15.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-sphinx-scrapy/python-sphinx-scrapy.changes    
    2026-10-26 10:20:11.001467432 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-sphinx-scrapy.new.1340718/python-sphinx-scrapy.changes
   2026-11-24 12:47:00.030743197 +0100
@@ -1,0 +2,10 @@
+Tue Nov 24 06:15:06 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Update to 0.15.0:
+  * Use [dependency-groups].docs instead of docs/requirements.txt in the
+    docs tox environment and pin sphinx-scrapy to the tox plugin version
+  * Fail sphinx-scrapy build and the pre-commit hook if
+    docs/requirements.in or docs/requirements.txt still exists
+- Make Requires match reality.
+
+-------------------------------------------------------------------

Old:
----
  sphinx_scrapy-0.14.0.tar.gz

New:
----
  sphinx_scrapy-0.15.0.tar.gz

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

Other differences:
------------------
++++++ python-sphinx-scrapy.spec ++++++
--- /var/tmp/diff_new_pack.3Knhxs/_old  2026-11-24 12:47:00.933781469 +0100
+++ /var/tmp/diff_new_pack.3Knhxs/_new  2026-11-24 12:47:00.935781554 +0100
@@ -19,7 +19,7 @@
 # Enable libalternatives by default
 %bcond_without libalternatives
 Name:           python-sphinx-scrapy
-Version:        0.14.0
+Version:        0.15.0
 Release:        0
 Summary:        Sphinx extension for documentation in the Scrapy ecosystem
 License:        BSD-3-Clause
@@ -31,12 +31,14 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       alts
-Requires:       python-Sphinx
+Requires:       python-Sphinx >= 8.0.0
+Requires:       python-docutils
 Requires:       python-packaging
-Requires:       python-sphinx-llms-txt
-Requires:       python-sphinx-markdown-builder
+Requires:       python-sphinx-design
+Requires:       python-sphinx-llm-friendly >= 0.5.1
 Requires:       python-sphinx-sitemap
 Requires:       python-sphinxcontrib-copybutton
+Requires:       python-sphinxcontrib-youtube
 BuildArch:      noarch
 %python_subpackages
 

++++++ sphinx_scrapy-0.14.0.tar.gz -> sphinx_scrapy-0.15.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-scrapy-0.14.0/CHANGES.rst 
new/sphinx-scrapy-0.15.0/CHANGES.rst
--- old/sphinx-scrapy-0.14.0/CHANGES.rst        2026-10-14 12:09:48.000000000 
+0200
+++ new/sphinx-scrapy-0.15.0/CHANGES.rst        2026-10-27 08:56:48.000000000 
+0100
@@ -2,6 +2,23 @@
 Release notes
 =============
 
+0.15.0 (2026-10-27)
+===================
+
+-   The ``docs`` tox environment now installs sphinx-scrapy at the version of
+    the tox plugin, plus the ``docs`` `dependency group
+    
<https://packaging.python.org/en/latest/specifications/dependency-groups/>`_
+    of :file:`pyproject.toml`, if defined, instead of
+    :file:`docs/requirements.txt`. Documentation dependencies are thus no
+    longer pinned, and sphinx-scrapy is pinned only in :file:`tox.ini` and
+    :file:`.pre-commit-config.yaml`.
+
+    To update, move documentation dependencies other than sphinx-scrapy to
+    that group, e.g. ``docs = ["sphinx-rtd-theme"]`` under
+    ``[dependency-groups]``, and remove :file:`docs/requirements.in` and
+    :file:`docs/requirements.txt`. ``sphinx-scrapy build`` and the
+    ``sphinx-scrapy`` pre-commit hook fail while either file exists.
+
 0.14.0 (2026-10-14)
 ===================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-scrapy-0.14.0/README.rst 
new/sphinx-scrapy-0.15.0/README.rst
--- old/sphinx-scrapy-0.14.0/README.rst 2026-10-14 12:09:48.000000000 +0200
+++ new/sphinx-scrapy-0.15.0/README.rst 2026-10-27 08:56:48.000000000 +0100
@@ -23,8 +23,8 @@
 
 -   Generates a `Read the Docs <https://readthedocs.org/>`_ configuration.
 
--   Keeps the sphinx-scrapy pins of ``tox.ini`` and ``docs/requirements.in``
-    in sync with the pre-commit ``rev``.
+-   Keeps the sphinx-scrapy pin of ``tox.ini`` in sync with the pre-commit
+    ``rev``.
 
 -   Makes documentation builds fail on Sphinx warnings. While you fix existing
     warnings, you can either `suppress them by type
@@ -82,11 +82,13 @@
     It must be `supported by Read the Docs
     
<https://docs.readthedocs.com/platform/latest/config-file/v2.html#build-tools-python>`_.
 
-#.  Add to ``docs/requirements.txt``:
+#.  Add any other documentation dependencies, e.g. a Sphinx theme, to a
+    ``docs`` dependency group in ``pyproject.toml``:
 
-    .. code-block:: text
+    .. code-block:: toml
 
-        sphinx-scrapy==0.14.0
+        [dependency-groups]
+        docs = ["sphinx-rtd-theme"]
 
 #.  Add to ``docs/conf.py``:
 
@@ -136,7 +138,7 @@
 
         repos:
         - repo: https://github.com/scrapy/sphinx-scrapy
-            rev: 0.14.0
+            rev: 0.15.0
             hooks:
             - id: sphinx-scrapy
 
@@ -146,7 +148,7 @@
 
         [tox]
         requires =
-            sphinx-scrapy[tox]==0.14.0
+            sphinx-scrapy[tox]==0.15.0
         envlist = …,docs
 
     .. note:: ``docs`` in ``envlist`` is required.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-scrapy-0.14.0/pyproject.toml 
new/sphinx-scrapy-0.15.0/pyproject.toml
--- old/sphinx-scrapy-0.14.0/pyproject.toml     2026-10-14 12:09:48.000000000 
+0200
+++ new/sphinx-scrapy-0.15.0/pyproject.toml     2026-10-27 08:56:48.000000000 
+0100
@@ -4,7 +4,7 @@
 
 [project]
 name = "sphinx-scrapy"
-version = "0.14.0"
+version = "0.15.0"
 description = "Sphinx extension for documentation in the Scrapy ecosystem"
 dependencies = [
     "docutils",
@@ -58,7 +58,7 @@
 strict = true
 
 [tool.bumpversion]
-current_version = "0.14.0"
+current_version = "0.15.0"
 commit = true
 tag = true
 tag_name = "{new_version}"
@@ -76,11 +76,6 @@
 
 [[tool.bumpversion.files]]
 filename = "README.rst"
-search = "sphinx-scrapy=={current_version}"
-replace = "sphinx-scrapy=={new_version}"
-
-[[tool.bumpversion.files]]
-filename = "README.rst"
 search = "sphinx-scrapy[tox]=={current_version}"
 replace = "sphinx-scrapy[tox]=={new_version}"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-scrapy-0.14.0/sphinx_scrapy/cli.py 
new/sphinx-scrapy-0.15.0/sphinx_scrapy/cli.py
--- old/sphinx-scrapy-0.14.0/sphinx_scrapy/cli.py       2026-10-14 
12:09:48.000000000 +0200
+++ new/sphinx-scrapy-0.15.0/sphinx_scrapy/cli.py       2026-10-27 
08:56:48.000000000 +0100
@@ -9,11 +9,30 @@
 from packaging.version import InvalidVersion, Version
 from sphinx.cmd.build import main as sphinx_build
 
-from .config import LATEST_RTD_PYTHON_VERSION, load_project_config
+from .config import LATEST_RTD_PYTHON_VERSION, ProjectConfig, 
load_project_config
+
+
+def _check_docs_requirements(config: ProjectConfig) -> bool:
+    found = [
+        path
+        for path in ("docs/requirements.in", "docs/requirements.txt")
+        if (config.root / path).is_file()
+    ]
+    if found:
+        print(
+            f"Found {' and '.join(found)}. Move documentation dependencies "
+            f"other than sphinx-scrapy to a docs dependency group in "
+            f"pyproject.toml, and remove {' and '.join(found)}.",
+            file=sys.stderr,
+        )
+        return False
+    return True
 
 
 def build_docs(output_dir: Path | None) -> int:
     config = load_project_config()
+    if not _check_docs_requirements(config):
+        return 1
     docs_dir = config.root / "docs"
     if not docs_dir.is_dir():
         print("docs directory not found", file=sys.stderr)
@@ -36,6 +55,8 @@
 
 def update_rtd_config() -> int:
     config = load_project_config()
+    if not _check_docs_requirements(config):
+        return 1
 
     try:
         config_python_version = Version(str(config.python_version))
@@ -74,23 +95,17 @@
     )
     print("Updated .readthedocs.yml")
 
-    pin = rf"\g<1>=={version('sphinx-scrapy')}"
-    for path in ("tox.ini", "docs/requirements.in"):
-        file = config.root / path
-        if not file.is_file():
-            continue
-        text = file.read_text(encoding="utf-8")
+    tox_ini = config.root / "tox.ini"
+    if tox_ini.is_file():
+        text = tox_ini.read_text(encoding="utf-8")
         new_text = re.sub(
-            r"(sphinx-scrapy(?:\[tox\])?)(?:==\S+|\s*@\s*git\+\S+)", pin, text
+            r"(sphinx-scrapy(?:\[tox\])?)(?:==\S+|\s*@\s*git\+\S+)",
+            rf"\g<1>=={version('sphinx-scrapy')}",
+            text,
         )
         if new_text != text:
-            file.write_text(new_text, encoding="utf-8")
-            print(f"Updated {path}")
-            if path == "docs/requirements.in":
-                print(
-                    "Run `uv pip compile requirements.in -o requirements.txt` "
-                    "from docs/"
-                )
+            tox_ini.write_text(new_text, encoding="utf-8")
+            print("Updated tox.ini")
     return 0
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-scrapy-0.14.0/sphinx_scrapy/config.py 
new/sphinx-scrapy-0.15.0/sphinx_scrapy/config.py
--- old/sphinx-scrapy-0.14.0/sphinx_scrapy/config.py    2026-10-14 
12:09:48.000000000 +0200
+++ new/sphinx-scrapy-0.15.0/sphinx_scrapy/config.py    2026-10-27 
08:56:48.000000000 +0100
@@ -26,6 +26,7 @@
     project_id: str | None = None
     github_repo: str | None = None
     fail_on_warning: bool = True
+    docs_dependency_group: bool = False
 
 
 def find_project_root(start: Path | None = None) -> Path:
@@ -81,6 +82,9 @@
     python_version = scrapy_data.get("python-version", 
LATEST_RTD_PYTHON_VERSION)
     fail_on_warning = bool(scrapy_data.get("fail-on-warning", True))
     extras = get_extras(pyproject_data)
+    dependency_groups = {
+        canonicalize_name(name) for name in 
pyproject_data.get("dependency-groups", {})
+    }
     raw_project_id = pyproject_data.get("project", {}).get("name")
     project_id = None
     if raw_project_id is not None:
@@ -94,4 +98,5 @@
         project_id=project_id,
         github_repo=_get_github_repo(pyproject_data),
         fail_on_warning=fail_on_warning,
+        docs_dependency_group="docs" in dependency_groups,
     )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-scrapy-0.14.0/sphinx_scrapy/tox_plugin.py 
new/sphinx-scrapy-0.15.0/sphinx_scrapy/tox_plugin.py
--- old/sphinx-scrapy-0.14.0/sphinx_scrapy/tox_plugin.py        2026-10-14 
12:09:48.000000000 +0200
+++ new/sphinx-scrapy-0.15.0/sphinx_scrapy/tox_plugin.py        2026-10-27 
08:56:48.000000000 +0100
@@ -1,5 +1,6 @@
 from __future__ import annotations
 
+from importlib.metadata import version
 from typing import TYPE_CHECKING
 
 from tox.config.loader.memory import MemoryLoader
@@ -33,7 +34,8 @@
                     project_config.python_version or LATEST_RTD_PYTHON_VERSION
                 )
             ],
-            deps=["-rdocs/requirements.txt"],
+            deps=[f"sphinx-scrapy=={version('sphinx-scrapy')}"],
+            dependency_groups=["docs"] if project_config.docs_dependency_group 
else [],
             extras=tuple(project_config.extras),
             commands=[
                 Command(["sphinx-scrapy", "build", *(state.conf.pos_args(None) 
or ())])

Reply via email to