-
-
Notifications
You must be signed in to change notification settings - Fork 54
typed-ast end of life? #170
Comments
Bullet point 2 sounds good to me. I'm opposed to point 1... I think typed_ast will continue to have value until 3.7 reaches EOL, and I'm happy to accept PRs from people fixing real issues like #167 / I'm happy to make releases. Open source is always best effort, so if in a year no effort has surfaced to get things working on 3.11, we can do bullet point 3. |
Adding My amended suggestion:
|
This seems fine to me, if we can wait until 3.7 EoL (and are open to making a 3.11 compatible release, in case somebody makes a PR). |
Apart from updating, this also removes the typed-ast dependency that doesn't exist as a wheel for Python 3.10, and seems to be no longer [actively developed](python/typed_ast#170).
Apart from updating, this also removes the typed-ast dependency that doesn't exist as a wheel for Python 3.10, and seems to be no longer [actively developed](python/typed_ast#170).
Apart from updating, this also removes the typed-ast dependency that doesn't exist as a wheel for Python 3.10, and seems to be no longer [actively developed](python/typed_ast#170).
I hit #167 issue on Python 3.11 while trying to port mypyc to Python 3.11 (to test my PR): python/mypy#11652 I proposed a simple fix to port typed_ast to Python 3.11: #176 Right now, mypyc still requires typed_ast, so making it compatible with Python 3.11 solves a practical issue ;-) |
Well, you can still plan the death of the project if you want, but in that case, please help users (like mypy) to migrate to something else ;-) typed_ast seems to be quite popular: https://libraries.io/pypi/typed-ast
|
We will most likely keep typed_ast around for a bit even after 3.7 reaches end of life, but upgrading to |
I don't know what the packages depending on typed-ast are using it for, but typed-ast can't parse Python 3.8+, so they probably should look for something else. mypy and black need typed-ast only for parsing under old versions of Python, and should be able to drop usage when they drop those old Python versions. |
(Also, archiving the project does not mean that typed-ast is gone from pypi, just that it won't receive any updates.) |
To avoid user confusion, I summarised this in #179 |
I'm going to keep posting here to avoid bringing confusion to the other issue :) I realized that tools that want to consume stub files and support only 3.6+ already don't need to use typed-ast, because ast.parse in 3.6 should support everything stub files support. This affects my typeshed-client project: JelleZijlstra/typeshed_client#30. |
@hauntsaninja @JelleZijlstra Just as a quick suggestion, to further avoid user confusion :) , I'd suggest locking #179 as resolved so only collaborators can post, and bolding/unparenthesizing your redirect at the bottom. In my experience with similar issues, unfortunately all too many users miss such things, so its best to be proactive. |
I suggest we officially end of life typed-ast:
ast
on Python 3.8+ in the package'slong_description
and more prominently in theREADME
.< 3.11
topython_requires
.We can keep maintaining it until 3.7 (or 3.10) reaches end of life, and improved
ast
is generally available.The text was updated successfully, but these errors were encountered: