Skip to content

Commit

Permalink
Python 3.11 support (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik authored Oct 30, 2022
1 parent 81048a6 commit df74b32
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ cd /io
# List python versions
ls /opt/python

if [ $PYTHON_VERSION == "3.6" ]; then
PYBIN="/opt/python/cp36-cp36m/bin"
elif [ $PYTHON_VERSION == "3.7" ]; then
if [ $PYTHON_VERSION == "3.7" ]; then
PYBIN="/opt/python/cp37-cp37m/bin"
elif [ $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"
else
echo "Unsupported Python version $PYTHON_VERSION"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export PYTHON_INSTALLER_MACOS_VERSION=$MACOS_MIN_VERSION
# Instead we install python.org binaries which are built with 10.6/10.9 target
# and hence provide wider compatibility for the wheels we create.
# See https://github.com/actions/setup-python/issues/26.
git clone https://github.com/matthew-brett/multibuild.git
git clone https://github.com/multi-build/multibuild.git
pushd multibuild
set +x # reduce noise
source osx_utils.sh
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 @@ -6,16 +6,16 @@ cd /io
# List python versions
ls /opt/python

if [ $PYTHON_VERSION == "3.6" ]; then
PYBIN="/opt/python/cp36-cp36m/bin"
elif [ $PYTHON_VERSION == "3.7" ]; then
if [ $PYTHON_VERSION == "3.7" ]; then
PYBIN="/opt/python/cp37-cp37m/bin"
elif [ $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"
else
echo "Unsupported Python version $PYTHON_VERSION"
exit 1
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
docker-image: quay.io/pypa/manylinux2014_x86_64
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: ubuntu-latest
os-name: linux
docker-image: quay.io/pypa/manylinux2014_x86_64
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: macos-11
os-name: mac
Expand All @@ -78,6 +83,11 @@ jobs:
macos-min-version: '10.9'
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: macos-11
os-name: mac
macos-min-version: '10.9'
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: windows-latest
os-name: windows
Expand All @@ -99,6 +109,11 @@ jobs:
python-version: '3.10'
python-arch: '64'
numpy-version: '1.21.*'
- os-image: windows-latest
os-name: windows
python-version: '3.11'
python-arch: '64'
numpy-version: '1.23.*'

runs-on: ${{ matrix.config.os-image }}

Expand Down Expand Up @@ -170,6 +185,11 @@ jobs:
docker-image: quay.io/pypa/manylinux2014_x86_64
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: ubuntu-latest
os-name: linux
docker-image: quay.io/pypa/manylinux2014_x86_64
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: macos-11
os-name: mac
Expand All @@ -191,6 +211,11 @@ jobs:
macos-min-version: '10.9'
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: macos-11
os-name: mac
macos-min-version: '10.9'
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: windows-latest
os-name: windows
Expand All @@ -212,6 +237,11 @@ jobs:
python-version: '3.10'
python-arch: '64'
numpy-version: '1.21.*'
- os-image: windows-latest
os-name: windows
python-version: '3.11'
python-arch: '64'
numpy-version: '1.23.*'

runs-on: ${{ matrix.config.os-image }}

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.10.2] - 2022-10-30
### Added
- Python 3.11 support.

## [0.10.1] - 2022-10-27
### Fixed
- macOS: Fix performance on M1 (#99).
Expand Down Expand Up @@ -121,6 +125,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support for [OBS-VirtualCam](https://github.com/CatxFish/obs-virtual-cam).


[0.10.2]: https://github.com/letmaik/pyvirtualcam/compare/v0.10.1...v0.10.2
[0.10.1]: https://github.com/letmaik/pyvirtualcam/compare/v0.10.0...v0.10.1
[0.10.0]: https://github.com/letmaik/pyvirtualcam/compare/v0.9.1...v0.10.0
[0.9.1]: https://github.com/letmaik/pyvirtualcam/compare/v0.9.0...v0.9.1
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.1"
__version__ = "0.10.2"

0 comments on commit df74b32

Please sign in to comment.