Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented May 31, 2025

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.

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.
@sebastinas
Copy link
Contributor

What's the required setuptools version for this to work?

@mgorny
Copy link
Contributor Author

mgorny commented May 31, 2025

I've just checked and it's 46.4.0. I've bumped the dependency in pyproject.toml.

@sebastinas sebastinas merged commit 1880d4e into bpython:main Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants