From fc690005d2118c8f79c22ce0e1d7d980e3bdacc4ea54ca85b74105b7456077b3 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 30 Sep 2025 12:14:24 +0000 Subject: [PATCH] - update to 2025.08.25: * Drop support for Python 3.9-3.10 to match Sphinx. * Declare support for Python 3.14. * Add an optional ``--post-build`` flag to run additional commands after building the documentation. * Add support for the ``SPHINX_AUTOBUILD_DEBUG`` environment variable to help with debugging. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autobuild?expand=0&rev=11 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-sphinx-autobuild.changes | 58 +++++++++++++++++++++++ python-sphinx-autobuild.spec | 79 +++++++++++++++++++++++++++++++ sphinx_autobuild-2024.10.3.tar.gz | 3 ++ sphinx_autobuild-2025.8.25.tar.gz | 3 ++ 6 files changed, 167 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sphinx-autobuild.changes create mode 100644 python-sphinx-autobuild.spec create mode 100644 sphinx_autobuild-2024.10.3.tar.gz create mode 100644 sphinx_autobuild-2025.8.25.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-sphinx-autobuild.changes b/python-sphinx-autobuild.changes new file mode 100644 index 0000000..22a6aaf --- /dev/null +++ b/python-sphinx-autobuild.changes @@ -0,0 +1,58 @@ +------------------------------------------------------------------- +Tue Sep 30 12:13:00 UTC 2025 - Dirk Müller + +- update to 2025.08.25: + * Drop support for Python 3.9-3.10 to match Sphinx. + * Declare support for Python 3.14. + * Add an optional ``--post-build`` flag to run additional commands + after building the documentation. + * Add support for the ``SPHINX_AUTOBUILD_DEBUG`` environment + variable to help with debugging. + +------------------------------------------------------------------- +Wed Nov 20 18:26:43 UTC 2024 - Dirk Müller + +- update to 2024.10.13: + * Improve error handling for failures in pre-build commands. + * Show the changed paths that triggered the rebuild. + +------------------------------------------------------------------- +Wed Sep 25 05:21:38 UTC 2024 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Sep 23 08:47:09 UTC 2024 - Dirk Müller + +- update to 2024.09.19: + * Filter various directories by default (``.git``, ``venv``, etc). + * Serve the correct directory when using make mode (``-M``). + * Run Sphinx through the Python entry point rather than the + binary on PATH. + * Relax checks for paths that aren't required to exist. + +------------------------------------------------------------------- +Sun Sep 8 16:21:06 UTC 2024 - Dirk Müller + +- update to 2024.09.03: + * Fix support for Python 3.9. + * Fix running sphinx-autobuild via entry point scripts. + * Run sphinx-build in a subprocess to mitigate autdoc issues. + * Support the -M 'make mode' option for sphinx-build. + * Add a missing dependency on watchfiles. + * Adopt Ruff in place of flake8 and black. + * Drop python-livereload. + * Add starlette and uvicorn as dependencies. + * Implement hot reloading via websockets. + * Run Sphinx rebuilds in an asynchronous executor. + * Declare support for Python 3.9, 3.10, 3.11, and 3.12 + * Drop support for Python 3.8 and earlier + * Allow passing relative paths to --ignore + * Support all valid sphinx-build options (except Make-mode) + * Fix path issues on Windows + * Differentiate pre-build command failures from Sphinx failures + +------------------------------------------------------------------- +Mon Mar 6 13:04:27 UTC 2023 - Daniel Garcia + +- Initial package (2021.3.14) diff --git a/python-sphinx-autobuild.spec b/python-sphinx-autobuild.spec new file mode 100644 index 0000000..7afd1b3 --- /dev/null +++ b/python-sphinx-autobuild.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-sphinx-autobuild +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-sphinx-autobuild +Version: 2025.8.25 +Release: 0 +Summary: Rebuild Sphinx documentation on changes, with live-reload in the browser +License: MIT +URL: https://github.com/executablebooks/sphinx-autobuild +Source: https://files.pythonhosted.org/packages/source/s/sphinx-autobuild/sphinx_autobuild-%{version}.tar.gz +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module colorama} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module httpx} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module starlette} +BuildRequires: %{python_module uvicorn} +BuildRequires: %{python_module watchfiles} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-Sphinx +Requires: python-colorama +Requires: python-watchfiles +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Rebuild Sphinx documentation on changes, with live-reload in the browser. + +%prep +%setup -q -n sphinx_autobuild-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/sphinx-autobuild +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest -k 'not test_application' + +%post +%python_install_alternative sphinx-autobuild + +%postun +%python_uninstall_alternative sphinx-autobuild + +%files %{python_files} +%doc AUTHORS.rst NEWS.rst README.rst +%license LICENSE.rst +%python_alternative %{_bindir}/sphinx-autobuild +%{python_sitelib}/sphinx_autobuild +%{python_sitelib}/sphinx_autobuild-%{version}.dist-info + +%changelog diff --git a/sphinx_autobuild-2024.10.3.tar.gz b/sphinx_autobuild-2024.10.3.tar.gz new file mode 100644 index 0000000..f480fe2 --- /dev/null +++ b/sphinx_autobuild-2024.10.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:248150f8f333e825107b6d4b86113ab28fa51750e5f9ae63b59dc339be951fb1 +size 14023 diff --git a/sphinx_autobuild-2025.8.25.tar.gz b/sphinx_autobuild-2025.8.25.tar.gz new file mode 100644 index 0000000..16a15d9 --- /dev/null +++ b/sphinx_autobuild-2025.8.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cf5aab32853c8c31af572e4fecdc09c997e2b8be5a07daf2a389e270e85b213 +size 15200