Skip to content

Commit

Permalink
add python 3.12 wheels, drop python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik authored Dec 8, 2023
1 parent 4a7e724 commit 7372184
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 37 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ 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"
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
Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/test-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ 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"
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
Expand Down
60 changes: 30 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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 }}
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pyvirtualcam/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.10.2"
__version__ = "0.11.0"

0 comments on commit 7372184

Please sign in to comment.