Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wheels for Python 3.12 #523

Merged
merged 40 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a56541e
Drop 3.7, add 3.12.
pythonspeed May 3, 2024
b4baeb7
Update PyO3
pythonspeed May 3, 2024
2950857
Meson needs ninja
pythonspeed May 7, 2024
3560fda
Deal with 3.12 compatibility
pythonspeed May 7, 2024
cad12f9
No blosc on Python 3.12 yet
pythonspeed May 7, 2024
bcf26ac
aligned_alloc() is maybe no longer an issue with modern conda-forge?
pythonspeed May 15, 2024
c1c9029
10.15 is dead
pythonspeed May 15, 2024
27541f7
Not actually used.
pythonspeed May 15, 2024
14a5a7a
Having issues with modern gold
pythonspeed May 15, 2024
bf077e5
Try to install gfortran a different way
pythonspeed May 15, 2024
67168ef
Give up on fortran on macOS
pythonspeed May 15, 2024
0f4d691
Install lld
pythonspeed Jul 22, 2024
5b49850
Package updates
pythonspeed Jul 22, 2024
a6e1ecc
Install gfortran
pythonspeed Jul 22, 2024
e86475e
Install on all mac builders
pythonspeed Jul 22, 2024
53a4e35
More fortran
pythonspeed Jul 22, 2024
11bd988
Update cibuildwheel
pythonspeed Jul 22, 2024
aad4d00
Allow 3.11?!
pythonspeed Jul 22, 2024
c2a4720
skip 3.7
pythonspeed Jul 22, 2024
5d224f8
Blosc now available for 3.12
pythonspeed Aug 16, 2024
efd122c
Don't use setup.py
pythonspeed Aug 16, 2024
e3a005b
Work with NumPy 2
pythonspeed Aug 16, 2024
6b99839
Require NumPy 2
pythonspeed Aug 16, 2024
7427543
Changelog
pythonspeed Aug 16, 2024
c195889
Drop 3.8
pythonspeed Aug 16, 2024
51bdac4
Only import ctypes on Linux
pythonspeed Aug 16, 2024
476e063
Add both targets
pythonspeed Aug 16, 2024
15821b3
Switch to line based profiling in order to work on Python 3.12 :(
pythonspeed Nov 3, 2024
0da084d
Update changelog
pythonspeed Nov 3, 2024
748fa4b
Update README
pythonspeed Nov 3, 2024
f531eae
3.13
pythonspeed Nov 3, 2024
84fc42f
Fix Meson
pythonspeed Nov 3, 2024
8e69a40
Drop 3.13 for now.
pythonspeed Nov 3, 2024
764ac73
Fix test
pythonspeed Nov 3, 2024
cd6223e
Don't build 3.13 yet
pythonspeed Nov 3, 2024
96468ad
Drop 3.7 and 3.8, add 3.12
pythonspeed Nov 3, 2024
c60ab73
3.9 now
pythonspeed Nov 3, 2024
7583aef
Install lld
pythonspeed Nov 3, 2024
adee8be
Install lld
pythonspeed Nov 3, 2024
812e90e
New manylinux image
pythonspeed Nov 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: "${{ matrix.os }}: Python ${{ matrix.python-version }}"
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-20.04", "macos-latest"]

runs-on: "${{ matrix.os }}"
Expand All @@ -45,22 +45,21 @@ jobs:
- name: "Install rust for arm64"
if: startsWith(matrix.os, 'mac') && (matrix.python-version == '3.9')
run: |
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
# - uses: Swatinem/rust-cache@v1
# with:
# key: "${{ matrix.os }}-${{ matrix.python-version }}"
- name: "Install gfortran"
if: startsWith(matrix.os, 'mac')
run: |
brew install gcc
gfortran --version || sudo ln -s `which gfortran-12` /usr/local/bin/gfortran
- uses: Swatinem/rust-cache@v1
with:
key: "${{ matrix.os }}-${{ matrix.python-version }}"
- name: "Install gfortran"
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y gfortran
- name: Install gfortran 2
if: contains(matrix.os, 'macos')
run: |
set -euo pipefail
brew install gcc@9 || true
gfortran --version || sudo ln -s /usr/local/bin/gfortran-9 /usr/local/bin/gfortran
gfortran --version
sudo apt-get install -y gfortran ninja-build lld
- name: "Install dependencies and code"
run: |
set -euo pipefail
Expand All @@ -76,35 +75,35 @@ jobs:
make test
- name: "Build macOS wheels"
if: startsWith(matrix.os, 'mac') && (matrix.python-version == '3.9')
uses: pypa/cibuildwheel@v2.12.0
uses: pypa/cibuildwheel@v2.21.3
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
MACOSX_DEPLOYMENT_TARGET: "11"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_SKIP: "cp37-macosx_arm64 cp36* pp*"
CIBW_SKIP: "cp37-macosx_arm64 cp36* cp37* cp38* cp39* cp313* pp*"
CIBW_BEFORE_BUILD: "touch filpreload/src/_filpreload.c" # force rebuild of Python code with new interpreter
CIBW_TEST_COMMAND: python -m filprofiler run {project}/benchmarks/pystone.py
with:
output-dir: dist
- name: "Build manylinux wheels"
if: startsWith(matrix.os, 'ubuntu') && (matrix.python-version == '3.8')
if: startsWith(matrix.os, 'ubuntu') && (matrix.python-version == '3.9')
run: |
set -euo pipefail
. venv/bin/activate
make manylinux-wheel
# Test wheel
deactivate
python3.8 -m venv venv2
python3.9 -m venv venv2
. venv2/bin/activate
pip install -r requirements-dev.txt
pip install dist/*-cp38-*manylinux*.whl
pip install dist/*-cp39-*manylinux*.whl
mv filprofiler filprofiler.disabled
make test-python-no-deps
- uses: actions/upload-artifact@v3
with:
name: "${{ matrix.os }}-${{ matrix.python-version }}-wheel"
path: dist/*.whl
# - name: Publish distribution 📦 to Test PyPI
# if: (startsWith(matrix.os, 'ubuntu') && (matrix.python-version == '3.8')) || startsWith(matrix.os, 'mac')
# if: (startsWith(matrix.os, 'ubuntu') && (matrix.python-version == '3.9')) || startsWith(matrix.os, 'mac')
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
Expand All @@ -114,7 +113,7 @@ jobs:
# twine check dist/*.whl
# twine upload --repository testpypi dist/*.whl
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags') && ((startsWith(matrix.os, 'ubuntu') && (matrix.python-version == '3.8')) || (startsWith(matrix.os, 'mac') && (matrix.python-version == '3.9')))
if: startsWith(github.event.ref, 'refs/tags') && ((startsWith(matrix.os, 'ubuntu') && (matrix.python-version == '3.9')) || (startsWith(matrix.os, 'mac') && (matrix.python-version == '3.9')))
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down Expand Up @@ -147,10 +146,10 @@ jobs:
if: startsWith(github.event.ref, 'refs/tags')
env:
CIBW_ARCHS_LINUX: aarch64
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y"
CIBW_BEFORE_ALL_LINUX: "yum install -y lld; curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y"
CIBW_BEFORE_BUILD: "touch filpreload/src/_filpreload.c" # force rebuild of Python code with new interpreter
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp311-* pp* *-musllinux*"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-* cp38-* cp313-* pp* *-musllinux*"
CIBW_TEST_COMMAND: python -m filprofiler run {project}/benchmarks/pystone.py
steps:
- uses: actions/checkout@v3
Expand All @@ -163,7 +162,7 @@ jobs:
with:
platforms: arm64
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.0
uses: pypa/cibuildwheel@v2.21.3
with:
output-dir: dist
- uses: actions/upload-artifact@v3
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Release notes

## 2024.11.0 (2024-11-03)

### Regressions

* Run with more overhead, in order to support newer versions of Python.

### Changes

* Added support for Python 3.12.
* Dropped support for Python 3.7 and 3.8.

## 2023.3.1 (2023-3-18)

### Bugfixes
Expand Down
Loading
Loading