From a35d31c6cb79cf18b12a40fa8feba3b9f9968e36 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 19 Sep 2022 15:00:38 +0100 Subject: Configure cibuildwheel in pyproject.toml --- .github/workflows/build.yml | 5 ----- pyproject.toml | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c033b71..5ca2002 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,11 +95,6 @@ jobs: runs-on: ${{ matrix.os }} - env: - CIBW_BEFORE_BUILD: "pip install cython==0.29.32 && cython {project}/jq.pyx" - CIBW_TEST_REQUIRES: "-r test-requirements.txt" - CIBW_TEST_COMMAND: "py.test {project}/tests" - steps: - uses: actions/checkout@v2 diff --git a/pyproject.toml b/pyproject.toml index e9a46a2..d18cb3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,3 +6,11 @@ requires = [ "certifi" ] build-backend = "setuptools.build_meta" + +[tool.cibuildwheel] +before-build = [ + "pip install cython==0.29.32", + "cython {project}/jq.pyx", +] +test-requires = "-r test-requirements.txt" +test-command = "pytest {project}/tests" -- cgit v1.2.3