Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

typed_ast end of life (July 2023) #179

Open
hauntsaninja opened this issue Dec 2, 2021 · 1 comment
Open

typed_ast end of life (July 2023) #179

hauntsaninja opened this issue Dec 2, 2021 · 1 comment

Comments

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Dec 2, 2021

typed_ast does not support parsing syntax introduced in Python 3.8 and newer, and never will. Instead, it is recommended to use the stdlib ast module in Python 3.8 and newer, which has been augmented to support extracting type comments and has some support for parsing older versions of Python 3.

This means the only valid use cases for typed_ast are a) parsing when run with Python 3.7 and older, or b) parsing Python 2.

typed_ast will continue to be maintained through Python 3.7 EOL (27 June 2023), but will likely become unmaintained soon thereafter.

Given this, we recommend:

  • Switch your project over to using ast when run on Python 3.8 or newer. Avoid installing typed_ast when running on Python 3.8 or newer by using a PEP 508 requirement, see for example.
  • If your project supports parsing Python 2, make this support an optional extra, so users do not have to install typed_ast unless they need that support, see for example. Also, y'know, consider dropping Python 2 support.

(To avoid user confusion, please discuss in #170)

@hauntsaninja hauntsaninja pinned this issue Dec 2, 2021
abesto added a commit to abesto/ghstack that referenced this issue Aug 9, 2022
To get the fix for python/typed_ast#159; With
1.4.2 `typed_ast` can't be installed on recent Pythons. Note that this
 new version is still compatible with the version specifications in
`pyproject.toml`; this is "just" a `poetry update typed_ast`.

Side note: `typed_ast` is going away next July: python/typed_ast#179
ezyang pushed a commit to ezyang/ghstack that referenced this issue Aug 9, 2022
To get the fix for python/typed_ast#159; With
1.4.2 `typed_ast` can't be installed on recent Pythons. Note that this
 new version is still compatible with the version specifications in
`pyproject.toml`; this is "just" a `poetry update typed_ast`.

Side note: `typed_ast` is going away next July: python/typed_ast#179
RyanGlScott added a commit to GaloisInc/argo that referenced this issue Jan 26, 2023
The `typed-ast` package is being end-of-life'd soon. See python/typed_ast#179.
Moreover, it is causing issues when building with Python 3.11+. See
GaloisInc/cryptol#1491.  Thankfully, `typed-ast` is no longer required if you
use sufficiently new versions of `mypy` and Python. This patch raises the lower
version bounds to make it possible to shed the `typed-ast` dependency entirely.
RyanGlScott added a commit to GaloisInc/argo that referenced this issue Jan 26, 2023
The `typed-ast` package is being end-of-life'd soon. See python/typed_ast#179.
Moreover, it is causing issues when building with Python 3.11+. See
GaloisInc/cryptol#1491.  Thankfully, `typed-ast` is no longer required if you
use sufficiently new versions of `mypy` and Python. This patch raises the lower
version bounds to make it possible to shed the `typed-ast` dependency entirely.
RyanGlScott added a commit to GaloisInc/argo that referenced this issue Jan 26, 2023
The `typed-ast` package is being end-of-life'd soon. See python/typed_ast#179.
Moreover, it is causing issues when building with Python 3.11+. See
GaloisInc/cryptol#1491.  Thankfully, `typed-ast` is no longer required if you
use sufficiently new versions of `mypy` and Python. This patch raises the lower
version bounds to make it possible to shed the `typed-ast` dependency entirely.
RyanGlScott added a commit to GaloisInc/argo that referenced this issue Jan 26, 2023
The `typed-ast` package is being end-of-life'd soon. See python/typed_ast#179.
Moreover, it is causing issues when building with Python 3.11+. See
GaloisInc/cryptol#1491.  Thankfully, `typed-ast` is no longer required if you
use sufficiently new versions of `mypy` and Python. This patch raises the lower
version bounds to make it possible to shed the `typed-ast` dependency entirely.
RyanGlScott added a commit to GaloisInc/argo that referenced this issue Jan 30, 2023
The `typed-ast` package is being end-of-life'd soon. See python/typed_ast#179.
Moreover, it is causing issues when building with Python 3.11+. See
GaloisInc/cryptol#1491.  Thankfully, `typed-ast` is no longer required if you
use sufficiently new versions of `mypy` and Python. This patch raises the lower
version bounds to make it possible to shed the `typed-ast` dependency entirely.
RyanGlScott added a commit to GaloisInc/cryptol that referenced this issue Jan 30, 2023
This patch:

* Bumps the `mypy` lower bounds to avoid incurring a dependency on `typed-ast`,
  which is being EOL'd soon. See python/typed_ast#179.
* Bumps the `argo` lower bounds to bring in the changes from
  GaloisInc/argo#195, which makes corresponding changes on the `argo` side.

Fixes #1491.
RyanGlScott added a commit to GaloisInc/cryptol that referenced this issue Jan 30, 2023
This patch:

* Bumps the `mypy` lower bounds to avoid incurring a dependency on `typed-ast`,
  which is being EOL'd soon. See python/typed_ast#179.
* Bumps the `argo` lower bounds to bring in the changes from
  GaloisInc/argo#195, which makes corresponding changes on the `argo` side.

Fixes #1491.
RyanGlScott added a commit to GaloisInc/cryptol that referenced this issue Jan 30, 2023
This patch:

* Bumps the `mypy` lower bounds to avoid incurring a dependency on `typed-ast`,
  which is being EOL'd soon. See python/typed_ast#179.
* Bumps the `argo` lower bounds to bring in the changes from
  GaloisInc/argo#195, which makes corresponding changes on the `argo` side.

Fixes #1491.
RyanGlScott added a commit to GaloisInc/saw-script that referenced this issue Jan 30, 2023
This patch:

* Bumps the `mypy` lower bounds to avoid incurring a dependency on `typed-ast`,
  which is being EOL'd soon. See python/typed_ast#179.
* Bumps the `argo` submodule to bring in the changes from
  GaloisInc/argo#195, which makes corresponding changes on the `argo` side.
* Bumps the `cryptol` submodule to bring in the changes from
  GaloisInc/cryptol#1493, which makes the corresponding changes on the `cryptol`
  side.
RyanGlScott added a commit to GaloisInc/saw-script that referenced this issue Jan 31, 2023
This patch:

* Bumps the `mypy` lower bounds to avoid incurring a dependency on `typed-ast`,
  which is being EOL'd soon. See python/typed_ast#179.
* Bumps the `argo` submodule to bring in the changes from
  GaloisInc/argo#195, which makes corresponding changes on the `argo` side.
* Bumps the `cryptol` submodule to bring in the changes from
  GaloisInc/cryptol#1493, which makes the corresponding changes on the `cryptol`
  side.
RyanGlScott added a commit to GaloisInc/saw-script that referenced this issue Jan 31, 2023
This patch:

* Bumps the `mypy` lower bounds to avoid incurring a dependency on `typed-ast`,
  which is being EOL'd soon. See python/typed_ast#179.
* Bumps the `argo` submodule to bring in the changes from
  GaloisInc/argo#195, which makes corresponding changes on the `argo` side.
* Bumps the `cryptol` submodule to bring in the changes from
  GaloisInc/cryptol#1493, which makes the corresponding changes on the `cryptol`
  side.
RyanGlScott added a commit to GaloisInc/saw-script that referenced this issue Jan 31, 2023
This patch:

* Bumps the `mypy` lower bounds to avoid incurring a dependency on `typed-ast`,
  which is being EOL'd soon. See python/typed_ast#179.
* Bumps the `argo` submodule to bring in the changes from
  GaloisInc/argo#195, which makes corresponding changes on the `argo` side.
* Bumps the `cryptol` submodule to bring in the changes from
  GaloisInc/cryptol#1493, which makes the corresponding changes on the `cryptol`
  side.
@hauntsaninja
Copy link
Collaborator Author

hauntsaninja commented Jul 1, 2023

It's July 2023, death to typed_ast!

I did a quick check and it seems like typed_ast does work against Python 3.12 beta 2, so that could be nice for whatever users are remaining on latest Python (we're still clocking a few thousand daily downloads on 3.11). We won't ship wheels, but we didn't ship wheels for Python 3.11 either.

I'll ask the Steering Council to archive this repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant