diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6db542a..0efc0f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,21 +3,6 @@ name: Build wheels on: [push, pull_request, workflow_dispatch] jobs: - test_prerelease_python: - # needed because manylinux is hesitant to support pre-release python - # so we can't just use cibuildwheel - name: prelease python - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: '3.11-dev' - - run: | - python3.11 -m pip install -e . - python3.11 -m pip install pytest - python3.11 -m pytest - build_wheels: name: py${{ matrix.python-version }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -27,30 +12,24 @@ jobs: # cibuildwheel builds linux wheels inside a manylinux container # it also takes care of procuring the correct python version for us os: [ubuntu-latest, windows-latest, macos-latest] - python-version: [36, 37, 38, 39, 310] + python-version: [36, 37, 38, 39, 310, 311] + steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - name: Install Python - with: - python-version: "3.9" - - name: Install cibuildwheel - run: | - python -m pip install "cibuildwheel==2.1.3" + - uses: actions/checkout@v3 - name: Build wheels + uses: pypa/cibuildwheel@v2.10.2 env: CIBW_BUILD: "cp${{ matrix.python-version }}-*" - CIBW_SKIP: "*-manylinux_i686 *-win32" + CIBW_SKIP: "*-manylinux_i686 *-musllinux_i686 *-win32" CIBW_ARCHS_MACOS: "x86_64 arm64" CIBW_BUILD_VERBOSITY: 1 CIBW_BEFORE_TEST: pip install pytest CIBW_TEST_COMMAND: pytest {package} - run: | - python -m cibuildwheel --output-dir wheelhouse . - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: dist path: ./wheelhouse/*.whl + build_wheels_aarch64: name: py${{ matrix.python-version }} on ${{ matrix.os }} (aarch64) runs-on: ${{ matrix.os }} @@ -60,40 +39,33 @@ jobs: # cibuildwheel builds linux wheels inside a manylinux container # it also takes care of procuring the correct python version for us os: [ubuntu-latest] - python-version: [36, 37, 38, 39, 310] + python-version: [36, 37, 38, 39, 310, 311] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - name: Install Python - with: - python-version: "3.9" + - uses: actions/checkout@v3 - name: Setup up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: platforms: arm64 - - name: Install cibuildwheel - run: | - python -m pip install "cibuildwheel==2.1.3" - name: Build wheels + uses: pypa/cibuildwheel@v2.10.2 env: CIBW_BUILD: "cp${{ matrix.python-version }}-*" CIBW_ARCHS: aarch64 CIBW_BUILD_VERBOSITY: 1 CIBW_BEFORE_TEST: pip install pytest CIBW_TEST_COMMAND: pytest {package} - run: | - python -m cibuildwheel --output-dir wheelhouse . - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: dist path: ./wheelhouse/*.whl + build_sdist_python_wheel: name: sdist and python wheel runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 name: Install Python with: python-version: "3.9" @@ -105,7 +77,7 @@ jobs: run: | pip install --upgrade setuptools pip wheel python setup.py sdist - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: dist path: | diff --git a/README.md b/README.md index d9cc838..b5208bf 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +# End of life + +This project is no longer maintained. + +Use the standard library `ast` module instead. +See https://github.com/python/typed_ast/issues/179. + # Typed AST [![Build Status](https://travis-ci.org/python/typed_ast.svg?branch=master)](https://travis-ci.org/python/typed_ast) diff --git a/setup.py b/setup.py index bd245a4..a22a67e 100644 --- a/setup.py +++ b/setup.py @@ -82,6 +82,19 @@ ]) long_description = """ +=========== +End of life +=========== + +This project is no longer maintained. + +Use the standard library `ast` module instead. +See https://github.com/python/typed_ast/issues/179. + +=========== +Description +=========== + `typed_ast` is a Python 3 package that provides a Python 2.7 and Python 3 parser similar to the standard `ast` library. Unlike `ast` below Python 3.8, the parsers in @@ -111,7 +124,7 @@ license='Apache License 2.0', platforms = ['POSIX', 'Windows'], classifiers = [ - 'Development Status :: 5 - Production/Stable', + 'Development Status :: 7 - Inactive', 'Environment :: Console', 'Intended Audience :: Developers', 'Operating System :: POSIX', @@ -121,6 +134,7 @@ 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Software Development', ], python_requires=">=3.6", diff --git a/typed_ast/__init__.py b/typed_ast/__init__.py index ef96da0..8c118e6 100644 --- a/typed_ast/__init__.py +++ b/typed_ast/__init__.py @@ -1 +1 @@ -__version__ = "1.5.5.dev0" +__version__ = "1.5.5"