public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-sphinx-autoapi] epel10: import rhbz#2296242
@ 2026-11-14 16:43 Elliott Sales de Andrade
  0 siblings, 0 replies; only message in thread
From: Elliott Sales de Andrade @ 2026-11-14 16:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-sphinx-autoapi
Branch : epel10
Commit : d3022f6255a0bd537daa1c1dcb2638ac495ad87b
Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date   : 2024-08-20T19:33:01-04:00
Stats  : +114/-0 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-sphinx-autoapi/c/d3022f6255a0bd537daa1c1dcb2638ac495ad87b?branch=epel10

Log:
import rhbz#2296242

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a257e61
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/sphinx_autoapi-3.2.1.tar.gz

diff --git a/0001-Mark-tests-that-use-the-network.patch b/0001-Mark-tests-that-use-the-network.patch
new file mode 100644
index 0000000..c8a7cfd
--- /dev/null
+++ b/0001-Mark-tests-that-use-the-network.patch
@@ -0,0 +1,53 @@
+From c6a6996fcf4a71b5a4a86839c68f991d36503dda Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Mon, 8 Jul 2024 01:17:16 -0400
+Subject: [PATCH] Mark tests that use the network
+
+These two tests uses intersphinx, and the marker allows skipping them if
+there is no network available.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ pyproject.toml                     | 5 +++++
+ tests/python/test_pyintegration.py | 2 ++
+ 2 files changed, 7 insertions(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 4ab46dd..c1943bc 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -10,6 +10,11 @@ ignore_missing_imports = true
+ module = "autoapi.documenters"
+ ignore_errors = true
+ 
++[tool.pytest.ini_options]
++markers = [
++    "network: Tests that use network access.",
++]
++
+ [tool.ruff.lint.pydocstyle]
+ convention = "google"
+ 
+diff --git a/tests/python/test_pyintegration.py b/tests/python/test_pyintegration.py
+index e80378d..8697c34 100644
+--- a/tests/python/test_pyintegration.py
++++ b/tests/python/test_pyintegration.py
+@@ -544,6 +544,7 @@ class TestPositionalOnlyArgumentsModule:
+         assert "f_no_cd(a: int, b: int, /, *, e: float, f: float)" in f_no_cd.text
+ 
+ 
++@pytest.mark.network
+ @pytest.mark.skipif(
+     sys.version_info < (3, 10), reason="Union pipe syntax requires Python >=3.10"
+ )
+@@ -587,6 +588,7 @@ class TestPipeUnionModule:
+         assert links[1].text == "None"
+ 
+ 
++@pytest.mark.network
+ @pytest.mark.skipif(
+     sys.version_info < (3, 12), reason="PEP-695 support requires Python >=3.12"
+ )
+-- 
+2.45.2
+

diff --git a/python-sphinx-autoapi.spec b/python-sphinx-autoapi.spec
new file mode 100644
index 0000000..1d43a8c
--- /dev/null
+++ b/python-sphinx-autoapi.spec
@@ -0,0 +1,59 @@
+# Created by pyp2rpm-3.3.10
+%global srcname sphinx-autoapi
+%global srcname_ sphinx_autoapi
+
+Name:           python-%{srcname}
+Version:        3.2.1
+Release:        %autorelease
+Summary:        Sphinx API documentation generator
+
+License:        MIT
+URL:            https://github.com/readthedocs/sphinx-autoapi
+Source:         %pypi_source %{srcname_}
+# https://github.com/readthedocs/sphinx-autoapi/pull/462
+Patch:          0001-Mark-tests-that-use-the-network.patch
+
+BuildArch:      noarch
+
+BuildRequires:  python3-devel
+BuildRequires:  python3dist(beautifulsoup4)
+BuildRequires:  python3dist(pytest)
+
+%global _description %{expand:
+Sphinx AutoAPI is a Sphinx extension for generating complete API documentation
+without needing to load, run, or import the project being documented.
+
+In contrast to the traditional Sphinx autodoc, which requires manual authoring
+and uses code imports, AutoAPI finds and generates documentation by parsing
+source code.}
+
+%description %{_description}
+
+%package -n     python3-%{srcname}
+Summary:        %{summary}
+
+%description -n python3-%{srcname} %{_description}
+
+
+%prep
+%autosetup -n %{srcname_}-%{version} -p1
+
+%generate_buildrequires
+%pyproject_buildrequires
+
+%build
+%pyproject_wheel
+
+%install
+%pyproject_install
+
+%pyproject_save_files -l autoapi
+
+%check
+%{pytest} -m 'not network'
+
+%files -n python3-%{srcname} -f %{pyproject_files}
+%doc README.rst
+
+%changelog
+%autochangelog

diff --git a/sources b/sources
new file mode 100644
index 0000000..cc6a7ff
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (sphinx_autoapi-3.2.1.tar.gz) = 48089420e4c62ce40bfed3269cf928306627eedc3f6edaf94fa3c915ae65dda5ccbc93f8db903bb8403a1d37350cecef30587e649c2632ba3611d55fd811e64d

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-14 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-14 16:43 [rpms/python-sphinx-autoapi] epel10: import rhbz#2296242 Elliott Sales de Andrade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox