Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests: failure with py3.14 (alpha) due to removal of ast.Num #224

Closed
jayaddison opened this issue Dec 2, 2024 · 1 comment
Closed

Comments

@jayaddison
Copy link
Contributor

A unit test build failure is occurring for inflect in GitHub Actions for Python 3.14 (more specifically, cpython 3.14.0-alpha.2).

This appears to be due to the removal of ast.Num from the Python stdlib in v3.14 (prerelease, currently) as documented here: https://docs.python.org/3.14/whatsnew/3.14.html#removed

@jayaddison
Copy link
Contributor Author

The recommended replacement/migration for ast.Num is to use ast.Constant instead -- and it is available in version 3.9 and onwards of Python -- matching the minimum baseline for inflect of Python 3.9:

requires-python = ">=3.9"

I'll attempt to provide a pull request to resolve this problem; GitHub Actions CI should provide confirmation of whether a fix works as intended (I don't currently have Py3.14 installed locally, but may consider installing that during development).

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 a pull request may close this issue.

1 participant