Skip to content

Commit

Permalink
Build Python 3.11 wheels (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik authored Oct 30, 2022
1 parent 901b5ca commit d49f6cd
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ CHECK_SHA256=.github/scripts/check_sha256.sh
# 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
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
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ jobs:
python-arch: '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-arch: 'x86_64'
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: ubuntu-latest
os-name: linux
Expand All @@ -86,6 +92,12 @@ jobs:
python-arch: 'aarch64'
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: ubuntu-latest
os-name: linux
docker-image: quay.io/pypa/manylinux2014_aarch64
python-arch: 'aarch64'
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: macos-latest
os-name: mac
Expand All @@ -111,6 +123,12 @@ jobs:
python-arch: 'x86_64'
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: macos-latest
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: windows-2019
os-name: windows
Expand All @@ -132,6 +150,11 @@ jobs:
python-arch: 'x86_64'
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: windows-2019
os-name: windows
python-arch: 'x86_64'
python-version: '3.11'
numpy-version: '1.23.*'

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

Expand Down Expand Up @@ -213,6 +236,12 @@ jobs:
python-arch: '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-arch: 'x86_64'
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: ubuntu-latest
os-name: linux
Expand All @@ -238,6 +267,12 @@ jobs:
python-arch: 'aarch64'
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: ubuntu-latest
os-name: linux
docker-image: quay.io/pypa/manylinux2014_aarch64
python-arch: 'aarch64'
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: macos-latest
os-name: mac
Expand All @@ -263,6 +298,12 @@ jobs:
python-arch: 'x86_64'
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: macos-latest
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.11'
numpy-version: '1.23.*'

- os-image: windows-2019
os-name: windows
Expand All @@ -284,6 +325,11 @@ jobs:
python-arch: 'x86_64'
python-version: '3.10'
numpy-version: '1.21.*'
- os-image: windows-2019
os-name: windows
python-arch: 'x86_64'
python-version: '3.11'
numpy-version: '1.23.*'

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

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ rawpy depends on NumPy. The minimum supported NumPy version depends on your Pyth
| 3.8 | >= 1.17 |
| 3.9 | >= 1.19 |
| 3.10 | >= 1.21 |
| 3.11 | >= 1.23 |


[libraw]: https://www.libraw.org
2 changes: 1 addition & 1 deletion rawpy/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.17.2"
__version__ = "0.17.3"

0 comments on commit d49f6cd

Please sign in to comment.