Skip to content

Commit 9091c01

Browse files
authored
Python 3.11 support (#37)
1 parent a409431 commit 9091c01

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

.github/scripts/build-linux.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ source .github/scripts/retry.sh
88
# List python versions
99
ls /opt/python
1010

11-
if [ $PYTHON_VERSION == "3.6" ]; then
12-
PYBIN="/opt/python/cp36-cp36m/bin"
13-
elif [ $PYTHON_VERSION == "3.7" ]; then
11+
if [ $PYTHON_VERSION == "3.7" ]; then
1412
PYBIN="/opt/python/cp37-cp37m/bin"
1513
elif [ $PYTHON_VERSION == "3.8" ]; then
1614
PYBIN="/opt/python/cp38-cp38/bin"
1715
elif [ $PYTHON_VERSION == "3.9" ]; then
1816
PYBIN="/opt/python/cp39-cp39/bin"
1917
elif [ $PYTHON_VERSION == "3.10" ]; then
2018
PYBIN="/opt/python/cp310-cp310/bin"
19+
elif [ $PYTHON_VERSION == "3.11" ]; then
20+
PYBIN="/opt/python/cp311-cp311/bin"
2121
else
2222
echo "Unsupported Python version $PYTHON_VERSION"
2323
exit 1

.github/scripts/build-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export PYTHON_INSTALLER_MACOS_VERSION=$MACOS_MIN_VERSION
2525
# Instead we install python.org binaries which are built with 10.6/10.9 target
2626
# and hence provide wider compatibility for the wheels we create.
2727
# See https://github.com/actions/setup-python/issues/26.
28-
git clone https://github.com/matthew-brett/multibuild.git
28+
git clone https://github.com/multi-build/multibuild.git
2929
pushd multibuild
3030
set +x # reduce noise
3131
source osx_utils.sh

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
docker-image: quay.io/pypa/manylinux2014_x86_64
3131
python-version: '3.10'
3232
numpy-version: '1.21.*'
33+
- os-image: ubuntu-latest
34+
os-name: linux
35+
docker-image: quay.io/pypa/manylinux2014_x86_64
36+
python-version: '3.11'
37+
numpy-version: '1.23.*'
3338

3439
- os-image: macos-latest
3540
os-name: mac
@@ -51,6 +56,11 @@ jobs:
5156
macos-min-version: '10.9'
5257
python-version: '3.10'
5358
numpy-version: '1.21.*'
59+
- os-image: macos-latest
60+
os-name: mac
61+
macos-min-version: '10.9'
62+
python-version: '3.11'
63+
numpy-version: '1.23.*'
5464

5565
- os-image: windows-latest
5666
os-name: windows
@@ -72,6 +82,11 @@ jobs:
7282
python-version: '3.10'
7383
python-arch: '64'
7484
numpy-version: '1.21.*'
85+
- os-image: windows-latest
86+
os-name: windows
87+
python-version: '3.11'
88+
python-arch: '64'
89+
numpy-version: '1.23.*'
7590

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

@@ -101,6 +116,14 @@ jobs:
101116
with:
102117
python-version: ${{ matrix.config.python-version }}
103118

119+
- name: Remove pre-installed vcpkg
120+
if: matrix.config.os-name == 'windows'
121+
run: |
122+
rm -rf "$VCPKG_INSTALLATION_ROOT"
123+
echo "VCPKG_INSTALLATION_ROOT=" >> $GITHUB_ENV
124+
echo "VCPKG_ROOT=" >> $GITHUB_ENV
125+
shell: bash
126+
104127
- name: Build wheels (Windows)
105128
if: matrix.config.os-name == 'windows'
106129
run: .github/scripts/build-windows.ps1

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ Python numpy
178178
3.8 >= 1.17
179179
3.9 >= 1.19
180180
3.10 >= 1.21
181+
3.11 >= 1.23
181182
========== =========
182183

183184
.. _lensfun: https://lensfun.github.io/

lensfunpy/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.11.0"
1+
__version__ = "1.11.1"

0 commit comments

Comments
 (0)