From ca148cc5d94f847798f06f0a2b24053a22225783 Mon Sep 17 00:00:00 2001 From: Ben Raz Date: Sun, 9 Oct 2022 00:16:38 +0300 Subject: [PATCH 1/4] Upgrade cibuildwheel, add Python 3.11, musllinux wheels (#193) - Upgrade GitHub Action versions. - Employ cibuildwheel action instead of manual setup. - This upgrade also changes the manylinux image to manylinux2014. --- .github/workflows/build.yml | 60 ++++++++++--------------------------- 1 file changed, 16 insertions(+), 44 deletions(-) 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: | From 014756f2cacfa434a49224a320cc4b19ec525b01 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 2 Jul 2023 00:21:29 -0700 Subject: [PATCH 2/4] End of life notice (#195) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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) From bc8556b10f27073d6b1380757b7362b058998ad8 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Mon, 3 Jul 2023 14:35:26 -0700 Subject: [PATCH 3/4] Add dev status inactive classifier, edit long description (#196) --- setup.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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", From 567af09d8fc0c3607b90f96fce25b0cfdf25c8ff Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:55:34 -0700 Subject: [PATCH 4/4] Release version 1.5.5 (#197) --- typed_ast/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"