Skip to content

Commit

Permalink
Add support for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseFarebro committed Sep 5, 2022
1 parent f1d963c commit d59d006
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
- runs-on: ubuntu-latest
python: '3.10'
triplet: x64-linux-mixed
- runs-on: ubuntu-latest
python: '3.11.0-rc.1'
triplet: x64-linux-mixed

- runs-on: macos-latest
python: '3.7'
Expand All @@ -61,6 +64,9 @@ jobs:
- runs-on: macos-latest
python: '3.10'
triplet: x64-osx-mixed
- runs-on: macos-latest
python: '3.11.0-rc.1'
triplet: x64-osx-mixed

- runs-on: windows-latest
python: '3.7'
Expand All @@ -74,6 +80,9 @@ jobs:
- runs-on: windows-latest
python: '3.10'
triplet: x64-windows
- runs-on: windows-latest
python: '3.11.0-rc.1'
triplet: x64-windows
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
runs-on: ${{ matrix.runs-on }}
Expand All @@ -83,7 +92,7 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: "3.x"
python-version: ${{ matrix.python }}

- name: Install test dependencies
# TODO(jfarebro): There's a bug with Windows cmake and PEP517 builds via pip install.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
doNotCache: true

- name: Build wheels
uses: pypa/cibuildwheel@v2.4.0
uses: pypa/cibuildwheel@v2.9.0
env:
CIBW_ARCHS: "${{ matrix.arch }}"

Expand Down
19 changes: 19 additions & 0 deletions docker/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
group "default" {
targets = []
}

variable "MANYLINUX_VERSION" {
default = "2_28"
}

variable "MANYLINUX_ARCH" {
default = "x86_64"
}

target "manylinux-vcpkg" {
tags = ["ghcr.io/jessefarebro/manylinux_${MANYLINUX_VERSION}_${MANYLINUX_ARCH}-vcpkg"]
dockerfile = "manylinux-vcpkg.Dockerfile"
args = {
BASE_IMAGE = "quay.io/pypa/manylinux_${MANYLINUX_VERSION}_${MANYLINUX_ARCH}"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM quay.io/pypa/manylinux2014_x86_64
ARG BASE_IMAGE
FROM ${BASE_IMAGE}

LABEL org.opencontainers.image.source https://github.com/mgbellemare/Arcade-Learning-Environment

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,15 @@ test-requires = ["pytest", "git+https://github.com/openai/gym#egg=gym"]
test-command = "pytest {project}"

# vcpkg manylinux images
manylinux-x86_64-image = "ghcr.io/jessefarebro/manylinux2014_x86_64-vcpkg"
manylinux-x86_64-image = "ghcr.io/jessefarebro/manylinux_2_28_x86_64-vcpkg"

[tool.cibuildwheel.linux]
environment-pass = ["GITHUB_REF"]

[[tool.cibuildwheel.overrides]]
select = "cp3{7,8,9}-*"
manylinux-x86_64-image = "ghcr.io/jessefarebro/manylinux2014_x86_64-vcpkg"

# macOS x86-64
[[tool.cibuildwheel.overrides]]
select = "*-macosx_x86_64"
Expand Down
2 changes: 1 addition & 1 deletion src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include(FetchContent)
FetchContent_Declare(
pybind11
GIT_REPOSITORY https://github.com/pybind/pybind11
GIT_TAG v2.7.1)
GIT_TAG v2.10.0)
FetchContent_MakeAvailable(pybind11)

add_library(ale-py MODULE ale_python_interface.cpp)
Expand Down

0 comments on commit d59d006

Please sign in to comment.