gristlabs / asttokens

Annotate Python AST trees with source text and token information
Apache License 2.0
172 stars 34 forks source link

Add readthedocs configuration file, and fix GHA for Python 2.7 #112

Closed dsagal closed 1 year ago

dsagal commented 1 year ago

Adds a minimal readthedocs configuration file, to keep https://asttokens.readthedocs.io/en/readthedocs/ active. See https://blog.readthedocs.com/migrate-configuration-v2/.

Also, GitHub Actions has dropped support for Python 2.7 in its built-in actions (see https://github.com/actions/setup-python/issues/672). Add a workaround to keep testing it.

alexmojaki commented 1 year ago

GHA isn't actually using Python 2.7 in the tests for that job, see https://github.com/gristlabs/asttokens/actions/runs/5780623670/job/15664537166

Screenshot from 2023-08-29 20-58-51

dsagal commented 1 year ago

Good catch. Adding PR #115 to fix it.