diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-05-31 19:15:54 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-05-31 19:27:37 +0200 |
| commit | cd152022ed8f165b830911ff277c07669533aa1e (patch) | |
| tree | e20a0465306b748c183d1a6793a3ec9232bd2ae9 /dev-python/curtsies/files/curtsies-0.4.2-py314.patch | |
| parent | 1a7ca2b2d71bd2c1716b5f075dbda35b05dee65c (diff) | |
| download | gentoo-cd152022ed8f165b830911ff277c07669533aa1e.tar.gz gentoo-cd152022ed8f165b830911ff277c07669533aa1e.tar.bz2 gentoo-cd152022ed8f165b830911ff277c07669533aa1e.zip | |
dev-python/curtsies: Enable py3.14
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/curtsies/files/curtsies-0.4.2-py314.patch')
| -rw-r--r-- | dev-python/curtsies/files/curtsies-0.4.2-py314.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/curtsies/files/curtsies-0.4.2-py314.patch b/dev-python/curtsies/files/curtsies-0.4.2-py314.patch new file mode 100644 index 000000000000..3b53a479f358 --- /dev/null +++ b/dev-python/curtsies/files/curtsies-0.4.2-py314.patch @@ -0,0 +1,28 @@ +From 8ff589184cdc0a2face9bd3430757f672292462c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 31 May 2025 19:22:56 +0200 +Subject: [PATCH] Use standard setuptools `attr:` feature, fixing Python 3.14 + compat + +Use the standard setuptools `attr:` feature to obtain the version +via setuptools' built-in AST parser rather than writing a custom AST +parser in `setup.py`. This fixes compatibility with Python 3.14, +since the custom parser is not compatible with the new `ast.Constant` +type. +--- + setup.cfg | 1 + + setup.py | 16 ---------------- + 2 files changed, 1 insertion(+), 16 deletions(-) + delete mode 100644 setup.py + +diff --git a/setup.cfg b/setup.cfg +index 10332bd..ae01e92 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -1,5 +1,6 @@ + [metadata] + name = curtsies ++version = attr: curtsies.__version__ + description = Curses-like terminal wrapper, with colored strings! + long_description = file: README.md, + long_description_content_type = text/markdown |
