Skip to content

Commit

Permalink
Merge pull request #214 from neutrinoceros/bld/cibw_uv
Browse files Browse the repository at this point in the history
MNT: switch to uv in cibuildwheel
  • Loading branch information
neutrinoceros authored Jul 1, 2024
2 parents 4a6e0c5 + 984de81 commit 338857c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,22 @@ jobs:
os:
- ubuntu-20.04
- windows-2019
- macos-11 # x86_64
- macos-13 # x86_64
- macos-14 # amr64
fail-fast: false

steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: yezz123/setup-uv@v4
with:
uv-version: 0.2.18

- name: Build wheels for CPython
uses: pypa/cibuildwheel@v2.18.1
uses: pypa/cibuildwheel@v2.19.1
with:
output-dir: dist
env:
CIBW_BUILD: cp310-* cp311-* cp312-*
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_WINDOWS: AMD64
MACOSX_DEPLOYMENT_TARGET: '10.9'
CIBW_BUILD_VERBOSITY: 1
CIBW_TEST_COMMAND: >
python -m pip install -r {project}/requirements/tests.txt &&
pytest {project} --color=yes
CIBW_TEST_SKIP: '*-musllinux*'

- uses: actions/upload-artifact@v4
with:
Expand Down
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,22 @@ filterwarnings = [
"error",
'ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated:DeprecationWarning', # https://github.com/dateutil/dateutil/pull/1285
]

[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-*"
build-frontend = "build[uv]"
build-verbosity = 1
test-skip = "*-musllinux*"
test-command = [
"uv pip install -r {project}/requirements/tests.txt",
"pytest {project} --color=yes -ra",
]

[tool.cibuildwheel.linux]
archs = "x86_64"

[tool.cibuildwheel.macos]
archs = "auto64"

[tool.cibuildwheel.windows]
archs = "AMD64"

0 comments on commit 338857c

Please sign in to comment.