Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 32267db879 | |||
| f7c42a547c | |||
| 0f40d539fe | |||
| c22c5ed077 | |||
| cdbf45fdd2 |
@@ -1,9 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed Nov 12 01:52:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Add patch support-python314.patch:
|
|
||||||
* Support Python 3.14 ast changes.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 4 05:30:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Mon Aug 4 05:30:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ URL: https://github.com/pradyunsg/sphinx-theme-builder
|
|||||||
Source: https://github.com/pradyunsg/sphinx-theme-builder/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/pradyunsg/sphinx-theme-builder/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE Support click 8.2 changes
|
# PATCH-FIX-OPENSUSE Support click 8.2 changes
|
||||||
Patch0: support-click-8.2.patch
|
Patch0: support-click-8.2.patch
|
||||||
# PATCH-FIX-UPSTREAM gh#pradyunsg/sphinx-theme-builder#51
|
|
||||||
Patch1: support-python314.patch
|
|
||||||
BuildRequires: %{python_module click}
|
BuildRequires: %{python_module click}
|
||||||
BuildRequires: %{python_module flit-core}
|
BuildRequires: %{python_module flit-core}
|
||||||
BuildRequires: %{python_module packaging}
|
BuildRequires: %{python_module packaging}
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
From bef651880a125419e5b53eb0a1b9c236d01f5228 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jerry James <loganjerry@gmail.com>
|
|
||||||
Date: Mon, 27 Jan 2025 17:04:02 -0700
|
|
||||||
Subject: [PATCH] Avoid ast.Str for python 3.14 compatibility
|
|
||||||
|
|
||||||
---
|
|
||||||
src/sphinx_theme_builder/_internal/project.py | 5 +++--
|
|
||||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/sphinx_theme_builder/_internal/project.py b/src/sphinx_theme_builder/_internal/project.py
|
|
||||||
index b90e677..98eaf26 100644
|
|
||||||
--- a/src/sphinx_theme_builder/_internal/project.py
|
|
||||||
+++ b/src/sphinx_theme_builder/_internal/project.py
|
|
||||||
@@ -40,9 +40,10 @@ def get_version_using_ast(contents: bytes) -> Optional[str]:
|
|
||||||
and len(child.targets) == 1
|
|
||||||
and isinstance(child.targets[0], ast.Name)
|
|
||||||
and child.targets[0].id == "__version__"
|
|
||||||
- and isinstance(child.value, ast.Str)
|
|
||||||
+ and isinstance(child.value, ast.Constant)
|
|
||||||
+ and isinstance(child.value.value, str)
|
|
||||||
):
|
|
||||||
- version = child.value.s
|
|
||||||
+ version = child.value.value
|
|
||||||
break
|
|
||||||
|
|
||||||
return version
|
|
||||||
Reference in New Issue
Block a user