From ddf9f0cd933b3767b8b69e64b36f0e8428565ece Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 22 Jun 2022 13:05:28 +0000 Subject: [PATCH] Add PyPy support Run CI against PyPy and build PyPy wheels. --- .github/workflows/ci.yml | 15 +++++++++++++++ CHANGELOG.md | 1 + scripts/run_all.sh | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 034cf0e59..ed7cda72e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,3 +141,18 @@ jobs: DCC_RS_DEV: ${{ github.workspace }} working-directory: python run: tox -e lint,mypy,doc,py3 + + - name: install pypy + if: ${{ matrix.python }} + uses: actions/setup-python@v4 + with: + python-version: 'pypy${{ matrix.python }}' + + - name: run pypy tests + if: ${{ matrix.python }} + env: + DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} + DCC_RS_TARGET: debug + DCC_RS_DEV: ${{ github.workspace }} + working-directory: python + run: tox -e pypy3 diff --git a/CHANGELOG.md b/CHANGELOG.md index cc383848e..80c7fd04e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - upgrade to `pgp@0.8.0` #3467 - add IMAP ID extension support #3468 - configure DeltaChat folder by selecting it, so it is configured even if not LISTed #3371 +- build PyPy wheels #6683 ### Fixes - mailing list: remove square-brackets only for first name #3452 diff --git a/scripts/run_all.sh b/scripts/run_all.sh index 28e3371bf..abf298ecc 100755 --- a/scripts/run_all.sh +++ b/scripts/run_all.sh @@ -33,7 +33,7 @@ mkdir -p $TOXWORKDIR # Note that the independent remote_tests_python step does all kinds of # live-testing already. unset DCC_NEW_TMP_EMAIL -tox --workdir "$TOXWORKDIR" -e py37,py38,py39,py310,auditwheels +tox --workdir "$TOXWORKDIR" -e py37,py38,py39,py310,pypy37,pypy38,pypy39,auditwheels popd