Skip to content

Commit

Permalink
Build wheel files for Python 3.11 (#1115)
Browse files Browse the repository at this point in the history
* Build wheel files for Python 3.11

Fixes: #1110

Update .github/workflows/ubuntu_build.yml to use
cibuildwheel v2.11.2

Add 3.11 references to appveyor.yml and setup.py

* Tweaks for deprecation messages and AppVeyor failure
  • Loading branch information
gordthompson committed Nov 2, 2022
1 parent 0d4dad7 commit dfa0b4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ubuntu_build.yml
Expand Up @@ -23,6 +23,8 @@ jobs:
tests-dir: tests3
- python-version: "3.10"
tests-dir: tests3
- python-version: "3.11"
tests-dir: tests3

services:

Expand Down Expand Up @@ -147,10 +149,10 @@ jobs:
echo "*** create database"
mysql --user=root --password=root --execute "CREATE DATABASE test"
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -220,7 +222,7 @@ jobs:
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.8.1
uses: pypa/cibuildwheel@v2.11.2
# https://cibuildwheel.readthedocs.io/en/stable/options/#options-summary
env:
# Windows - both 64-bit and 32-bit builds
Expand Down
7 changes: 7 additions & 0 deletions appveyor.yml
Expand Up @@ -92,6 +92,13 @@ environment:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PYTHON_HOME: "C:\\Python310-x64"

# TODO: enable these once Python 3.11 is supported on Windows
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# PYTHON_HOME: "C:\\Python311"
#
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# PYTHON_HOME: "C:\\Python311-x64"

cache:
- apvyr_cache -> appveyor\install.ps1

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -113,6 +113,7 @@ def main():
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Database',
],

Expand Down

0 comments on commit dfa0b4c

Please sign in to comment.