From 73721840f46f325a47252c23d979df9017ffeec5 Mon Sep 17 00:00:00 2001 From: Maik Riechert Date: Fri, 8 Dec 2023 19:34:07 +0000 Subject: [PATCH] add python 3.12 wheels, drop python 3.7 --- .github/scripts/build-linux.sh | 6 ++-- .github/scripts/test-linux.sh | 6 ++-- .github/workflows/ci.yml | 60 +++++++++++++++++----------------- CHANGELOG.md | 7 ++++ pyvirtualcam/_version.py | 2 +- 5 files changed, 44 insertions(+), 37 deletions(-) diff --git a/.github/scripts/build-linux.sh b/.github/scripts/build-linux.sh index c34bc27..9bffec8 100755 --- a/.github/scripts/build-linux.sh +++ b/.github/scripts/build-linux.sh @@ -4,9 +4,7 @@ set -e -x # List python versions ls /opt/python -if [ $PYTHON_VERSION == "3.7" ]; then - PYBIN="/opt/python/cp37-cp37m/bin" -elif [ $PYTHON_VERSION == "3.8" ]; then +if [ $PYTHON_VERSION == "3.8" ]; then PYBIN="/opt/python/cp38-cp38/bin" elif [ $PYTHON_VERSION == "3.9" ]; then PYBIN="/opt/python/cp39-cp39/bin" @@ -14,6 +12,8 @@ elif [ $PYTHON_VERSION == "3.10" ]; then PYBIN="/opt/python/cp310-cp310/bin" elif [ $PYTHON_VERSION == "3.11" ]; then PYBIN="/opt/python/cp311-cp311/bin" +elif [ $PYTHON_VERSION == "3.12" ]; then + PYBIN="/opt/python/cp312-cp312/bin" else echo "Unsupported Python version $PYTHON_VERSION" exit 1 diff --git a/.github/scripts/test-linux.sh b/.github/scripts/test-linux.sh index 83fa986..a76cf87 100755 --- a/.github/scripts/test-linux.sh +++ b/.github/scripts/test-linux.sh @@ -4,9 +4,7 @@ set -e -x # List python versions ls /opt/python -if [ $PYTHON_VERSION == "3.7" ]; then - PYBIN="/opt/python/cp37-cp37m/bin" -elif [ $PYTHON_VERSION == "3.8" ]; then +if [ $PYTHON_VERSION == "3.8" ]; then PYBIN="/opt/python/cp38-cp38/bin" elif [ $PYTHON_VERSION == "3.9" ]; then PYBIN="/opt/python/cp39-cp39/bin" @@ -14,6 +12,8 @@ elif [ $PYTHON_VERSION == "3.10" ]; then PYBIN="/opt/python/cp310-cp310/bin" elif [ $PYTHON_VERSION == "3.11" ]; then PYBIN="/opt/python/cp311-cp311/bin" +elif [ $PYTHON_VERSION == "3.12" ]; then + PYBIN="/opt/python/cp312-cp312/bin" else echo "Unsupported Python version $PYTHON_VERSION" exit 1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abe6414..c2ac55e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,11 +37,6 @@ jobs: matrix: config: # NOTE: When updating this list, also update the 'test' job! - - os-image: ubuntu-latest - os-name: linux - docker-image: quay.io/pypa/manylinux2014_x86_64 - python-version: '3.7' - numpy-version: '1.14.*' - os-image: ubuntu-latest os-name: linux docker-image: quay.io/pypa/manylinux2014_x86_64 @@ -62,12 +57,12 @@ jobs: docker-image: quay.io/pypa/manylinux2014_x86_64 python-version: '3.11' numpy-version: '1.23.*' + - os-image: ubuntu-latest + os-name: linux + docker-image: quay.io/pypa/manylinux2014_x86_64 + python-version: '3.12' + numpy-version: '1.26.*' - - os-image: macos-11 - os-name: mac - macos-min-version: '10.9' - python-version: '3.7' - numpy-version: '1.14.*' - os-image: macos-11 os-name: mac macos-min-version: '10.9' @@ -88,12 +83,12 @@ jobs: macos-min-version: '10.9' python-version: '3.11' numpy-version: '1.23.*' + - os-image: macos-11 + os-name: mac + macos-min-version: '10.9' + python-version: '3.12' + numpy-version: '1.26.*' - - os-image: windows-latest - os-name: windows - python-version: '3.7' - python-arch: '64' - numpy-version: '1.14.*' - os-image: windows-latest os-name: windows python-version: '3.8' @@ -114,6 +109,11 @@ jobs: python-version: '3.11' python-arch: '64' numpy-version: '1.23.*' + - os-image: windows-latest + os-name: windows + python-version: '3.12' + python-arch: '64' + numpy-version: '1.26.*' permissions: security-events: write @@ -182,11 +182,6 @@ jobs: # GitHub Actions doesn't support YAML anchors, # so this has to be duplicated here. config: - - os-image: ubuntu-latest - os-name: linux - docker-image: quay.io/pypa/manylinux2014_x86_64 - python-version: '3.7' - numpy-version: '1.14.*' - os-image: ubuntu-latest os-name: linux docker-image: quay.io/pypa/manylinux2014_x86_64 @@ -207,12 +202,12 @@ jobs: docker-image: quay.io/pypa/manylinux2014_x86_64 python-version: '3.11' numpy-version: '1.23.*' + - os-image: ubuntu-latest + os-name: linux + docker-image: quay.io/pypa/manylinux2014_x86_64 + python-version: '3.12' + numpy-version: '1.26.*' - - os-image: macos-11 - os-name: mac - macos-min-version: '10.9' - python-version: '3.7' - numpy-version: '1.14.*' - os-image: macos-11 os-name: mac macos-min-version: '10.9' @@ -233,12 +228,12 @@ jobs: macos-min-version: '10.9' python-version: '3.11' numpy-version: '1.23.*' + - os-image: macos-11 + os-name: mac + macos-min-version: '10.9' + python-version: '3.12' + numpy-version: '1.26.*' - - os-image: windows-latest - os-name: windows - python-version: '3.7' - python-arch: '64' - numpy-version: '1.14.*' - os-image: windows-latest os-name: windows python-version: '3.8' @@ -259,6 +254,11 @@ jobs: python-version: '3.11' python-arch: '64' numpy-version: '1.23.*' + - os-image: windows-latest + os-name: windows + python-version: '3.12' + python-arch: '64' + numpy-version: '1.26.*' runs-on: ${{ matrix.config.os-image }} container: ${{ matrix.config.docker-image }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 36267d2..fd866af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.11.0] - 2023-12-08 +### Added +- Python 3.12 support. + +### Removed +- Drop Python 3.7 support. + ## [0.10.2] - 2022-10-30 ### Added - Python 3.11 support. diff --git a/pyvirtualcam/_version.py b/pyvirtualcam/_version.py index 17c1a62..ae6db5f 100644 --- a/pyvirtualcam/_version.py +++ b/pyvirtualcam/_version.py @@ -1 +1 @@ -__version__ = "0.10.2" +__version__ = "0.11.0"