Skip to content

Commit

Permalink
wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Jul 17, 2024
1 parent 6ba9222 commit c26fce5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ on: [push, pull_request]

jobs:
wheels:
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform[0] }}
strategy:
fail-fast: false
matrix:
image: ["manylinux_2_28_x86_64"]
python_version: [ {cp: "cp39-cp39", py: "39"}, {cp: "cp310-cp310", py: "39"}, {cp: "cp311-cp311", py: "3.11"}, {cp: "cp312-cp312", py: "3.12"} ]
platform:
- ['ubuntu-20.04, manylinux_x86_64']
python: ['cp311', 'cp312']

steps:
- uses: actions/checkout@v4
- name: Building wheel
run: docker run -e PYPATH=/opt/python/${{ matrix.python_version.cp }} -e PYTHON_VERSION=${{ matrix.python_version.py }} --rm -v `pwd`:/project quay.io/pypa/${{ matrix.image }} /project/scripts/build-manylinux-wheel.sh
uses: pypa/[email protected]
env:
uses:
CIBW_BUILD: "${{ matrix.python }}-${{ matrix.buildplat[1] }}"
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux_2_28_x86_64"
CIBW_BEFORE_ALL_LINUX: "dnf install -y clang libffi-devel eigen3-devel"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "rednose"
requires-python = ">= 3.9"
requires-python = ">= 3.11"
version = "0.1.0"

dependencies = [
Expand All @@ -27,7 +27,7 @@ build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 160
target-version="py39"
target-version="py311"

[tool.ruff.lint]
select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF100", "A"]
Expand Down

0 comments on commit c26fce5

Please sign in to comment.