Skip to content

Commit

Permalink
Python 3.12 build (#121)
Browse files Browse the repository at this point in the history
distutils is no longer provided on python 3.12+, see https://peps.python.org/pep-0632/#backwards-compatibility.

Fixes #115

---------

Co-authored-by: Chip Kent <5250374+chipkent@users.noreply.github.com>
  • Loading branch information
devinrsmith and chipkent committed Dec 14, 2023
1 parent 14b19a7 commit 4f69ed8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/docker/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ group "default" {
"python-38-linux",
"python-39-linux",
"python-310-linux",
"python-311-linux"
"python-311-linux",
"python-312-linux"
]
}

Expand Down Expand Up @@ -68,3 +69,10 @@ target "python-311-linux" {
PYTHON_TAG = "3.11-${DEBIAN_BASE}"
}
}

target "python-312-linux" {
inherits = [ "shared" ]
args = {
PYTHON_TAG = "3.12-${DEBIAN_BASE}"
}
}
1 change: 1 addition & 0 deletions .github/env/Linux/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
setuptools
wheel
auditwheel
patchelf
1 change: 1 addition & 0 deletions .github/env/Windows/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
setuptools
wheel
1 change: 1 addition & 0 deletions .github/env/macOS/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
setuptools
wheel
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,21 @@ jobs:
- { machine: 'ubuntu-20.04', python: '3.9', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/Linux/bdist-wheel.sh' }
- { machine: 'ubuntu-20.04', python: '3.10', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/Linux/bdist-wheel.sh' }
- { machine: 'ubuntu-20.04', python: '3.11', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/Linux/bdist-wheel.sh' }
- { machine: 'ubuntu-20.04', python: '3.12', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/Linux/bdist-wheel.sh' }
- { machine: 'windows-2022', python: '3.6', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
- { machine: 'windows-2022', python: '3.7', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
- { machine: 'windows-2022', python: '3.8', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
- { machine: 'windows-2022', python: '3.9', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
- { machine: 'windows-2022', python: '3.10', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
- { machine: 'windows-2022', python: '3.11', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
- { machine: 'windows-2022', python: '3.12', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
- { machine: 'macos-11', python: '3.6', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
- { machine: 'macos-11', python: '3.7', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
- { machine: 'macos-11', python: '3.8', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
- { machine: 'macos-11', python: '3.9', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
- { machine: 'macos-11', python: '3.10', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
- { machine: 'macos-11', python: '3.11', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
- { machine: 'macos-11', python: '3.12', pythonArchitecture: 'x64', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
# Add M1 powered runners when available
# https://github.com/jpy-consortium/jpy/issues/110

Expand Down

0 comments on commit 4f69ed8

Please sign in to comment.