Skip to content

Commit edde841

Browse files
mgornysebastinas
authored andcommitted
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.
1 parent aabcd8e commit edde841

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[metadata]
22
name = curtsies
3+
version = attr: curtsies.__version__
34
description = Curses-like terminal wrapper, with colored strings!
45
long_description = file: README.md,
56
long_description_content_type = text/markdown

setup.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)