diff options
| author | Michael Williamson <mike@zwobble.org> | 2022-09-19 15:00:38 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2022-09-19 15:25:30 +0100 |
| commit | a35d31c6cb79cf18b12a40fa8feba3b9f9968e36 (patch) | |
| tree | 8c54ad3d7f20a1afec6a75acbd3f8a341d5d6156 | |
| parent | 8fd96fdb5b546601385001087d2bb5b41404c07c (diff) | |
Configure cibuildwheel in pyproject.toml
| -rw-r--r-- | .github/workflows/build.yml | 5 | ||||
| -rw-r--r-- | 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" |
