14
0

- Ship the license file.

- Add patch support-python314.patch:
  * Support Python 3.14 ast changes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-untokenize?expand=0&rev=10
This commit is contained in:
2025-11-10 01:02:28 +00:00
committed by Git OBS Bridge
commit ea40661882
7 changed files with 162 additions and 0 deletions

26
support-python314.patch Normal file
View File

@@ -0,0 +1,26 @@
From 46cf0233fe18097398f5692f9caf3d2e5d94eb14 Mon Sep 17 00:00:00 2001
From: Daeho Ro <40587651+daeho-ro@users.noreply.github.com>
Date: Mon, 20 Oct 2025 14:01:45 +0900
Subject: [PATCH] feature: support python 3.14
---
setup.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
mode change 100755 => 100644 setup.py
diff --git a/setup.py b/setup.py
old mode 100755
new mode 100644
index 206c57e..0c34cfb
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,8 @@ def version():
with open('untokenize.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
- return ast.parse(line).body[0].value.s
+ node = ast.parse(line).body[0].value
+ return getattr(node, 's', None) if hasattr(node, 's') else node.value
with open('README.rst') as readme: