From f394c39a7f81d98feec0d9cb772c21fdfe8edddb Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Tue, 13 Feb 2024 10:33:15 +0000 Subject: [PATCH] move cibuildwheel config --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index c8dc7ae..fbb1805 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,16 @@ docs = [ "sphinx_rtd_theme" ] +[tool.cibuildwheel] +before-build = "rustup show" +environment = {"PATH" = "$PATH:$HOME/.cargo/bin"} + +[tool.cibuildwheel.linux] +before-all = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y" + +[tool.cibuildwheel.macos] +before-all = "rustup target add aarch64-apple-darwin" + [tool.pytest.ini_options] addopts = "-ra --doctest-rst" testpaths = ["doc", "python"]