14
0
Files
python-sphinx-autobuild/python-sphinx-autobuild.spec
Dirk Mueller a3b3ce62b1 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autobuild?expand=0&rev=3
2024-09-08 16:28:13 +00:00

79 lines
2.4 KiB
RPMSpec

#
# spec file for package python-sphinx-autobuild
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
Name: python-sphinx-autobuild
Version: 2024.9.3
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