Skip to content

Commit

Permalink
ci: 🎡 add support for building 3.12 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Nov 18, 2023
1 parent 47b68a7 commit 9d4c114
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
python: "3.11"
python_id: cp311
platform_id: manylinux_x86_64
- os: ubuntu-latest
python: "3.12"
python_id: cp312
platform_id: manylinux_x86_64

- os: ubuntu-latest
python: 3.8
Expand Down Expand Up @@ -68,6 +72,10 @@ jobs:
python: "3.11"
python_id: cp311
platform_id: musllinux_x86_64
- os: ubuntu-latest
python: "3.12"
python_id: cp312
platform_id: musllinux_x86_64

# MacOS x86_64
- os: macos-latest
Expand All @@ -86,6 +94,10 @@ jobs:
python: "3.11"
python_id: cp311
platform_id: macosx_x86_64
- os: macos-latest
python: "3.12"
python_id: cp312
platform_id: macosx_x86_64

steps:
- name: Checkout python-hyperscan
Expand Down
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ghcr.io/darvid/python_hyperscan_manylinux_2_28_x86_64:latest
# FROM musllinux-hyperscan
ENV PATH=/opt/python/cp312-cp312/bin:$PATH
ENV SETUPTOOLS_SCM_PRETEND_VERSION="0.0.0-dev"
RUN pip install setuptools pdm auditwheel
WORKDIR /project
COPY ./src /project/src
COPY ./pyproject.toml setup.py README.md /project/
RUN find . -name "*.so" -delete
RUN pdm build -v --no-sdist
RUN auditwheel repair dist/*.whl
RUN pip install wheelhouse/*.whl
# RUN python -c "import hyperscan"

0 comments on commit 9d4c114

Please sign in to comment.