From 788148dcf961e86b1eaa0eacc369083631270f2d Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 11 Mar 2022 11:10:37 +0800 Subject: [PATCH 1/2] Stop testing Python 3.6 on CI Python 3.6 EOL: 23 Dec 2021 --- .github/workflows/test.yml | 5 +---- guide/src/platform_support.md | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67be693be..be05fcc5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,9 +15,6 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: "3.6" - uses: actions/setup-python@v2 with: python-version: "3.7" @@ -218,7 +215,7 @@ jobs: # CPython - target: aarch64-unknown-linux-gnu arch: aarch64 - abi: cp36-cp36m + abi: cp37-cp37m - target: armv7-unknown-linux-gnueabihf arch: armv7 abi: cp39-cp39 diff --git a/guide/src/platform_support.md b/guide/src/platform_support.md index 6072fb5b2..f4e68b1a1 100644 --- a/guide/src/platform_support.md +++ b/guide/src/platform_support.md @@ -33,7 +33,7 @@ supported by [manylinux](https://github.com/pypa/manylinux). ## Python Support -CPython 3.6 to 3.9 are supported and tested on CI, though the entire 3.x series should work. +CPython 3.7 to 3.10 are supported and tested on CI, though the entire 3.x series should work. This will be changed as new python versions are released and others have their end of life. PyPy 3.6 and later also works. From c645f58492d38a55ecd24d9e8af3613f120ef467 Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 11 Mar 2022 11:11:27 +0800 Subject: [PATCH 2/2] Upgrade to Rust 1.59 and add Python 3.10 support for konstin2/maturin docker image --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 97ee95c7e..01e176fc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ENV PATH /root/.cargo/bin:$PATH # Use an explicit version to actually install the version we require instead of using the cache # It would be even cooler to invalidate the cache depending on when the official rust image changes, # but I don't know how to do that -RUN curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.57.0 -y +RUN curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.59.0 -y # Compile dependencies only for build caching ADD Cargo.toml /maturin/Cargo.toml @@ -28,7 +28,7 @@ FROM quay.io/pypa/manylinux2010_x86_64 ENV PATH /root/.cargo/bin:$PATH # Add all supported python versions -ENV PATH /opt/python/cp36-cp36m/bin/:/opt/python/cp37-cp37m/bin/:/opt/python/cp38-cp38/bin/:/opt/python/cp39-cp39/bin/:$PATH +ENV PATH /opt/python/cp36-cp36m/bin:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:$PATH # Otherwise `cargo new` errors ENV USER root @@ -37,6 +37,7 @@ RUN curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ && python3.7 -m pip install --no-cache-dir cffi \ && python3.8 -m pip install --no-cache-dir cffi \ && python3.9 -m pip install --no-cache-dir cffi \ + && python3.10 -m pip install --no-cache-dir cffi \ && mkdir /io COPY --from=builder /usr/bin/maturin /usr/bin/maturin