From 278f3fd6f73b7bf50a83ca723a55ebae860147b3 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 6 Nov 2024 16:01:53 +0000 Subject: [PATCH] chore: add configuration for cibuildwheel --- pyproject.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index a504baada..e9ccc80dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,3 +86,17 @@ local_scheme = "no-local-version" extend-exclude = ["endstone_python.pyi"] line-length = 120 lint.extend-select = ["I"] + +[tool.cibuildwheel] +skip = ["pp*"] +test-command = "pytest {package}/python/tests" +test-requires = "pytest" + +[tool.cibuildwheel.linux] +manylinux-x86_64-image = "endstone/manylinux:manylinux_2_28_x86_64" +environment = { LLVM_VERSION = 15, CC = "/usr/bin/clang-${LLVM_VERSION}", CXX = "/usr/bin/clang++-${LLVM_VERSION}" } +before-all = [ + "apt-get update -y -q && apt-get install -y -q build-essential lsb-release wget software-properties-common gnupg", + "wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh ${LLVM_VERSION}", + "apt-get install -y -q libc++-${LLVM_VERSION}-dev libc++abi-${LLVM_VERSION}-dev" +]