diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index 1ef4808c..2491a17b 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -33,12 +33,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true -env: - CIBW_BUILD_VERBOSITY: 2 - CIBW_TEST_REQUIRES: pytest - CIBW_TEST_COMMAND: pytest --pyargs pywt -m "not slow" - CIBW_ENVIRONMENT: PIP_PREFER_BINARY=1 - jobs: build_linux_x86_64_wheels: name: Build ${{ matrix.cibw_python }} ${{ matrix.cibw_arch }} ${{ matrix.os }} diff --git a/pyproject.toml b/pyproject.toml index a7965ff3..b9a3bcf3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,12 @@ source = "https://github.com/PyWavelets/pywt" documentation = "https://pywavelets.readthedocs.io/" +[tool.cibuildwheel] +build-verbosity = 2 +environment = {PIP_PREFER_BINARY = "1"} +test-requires = ["pytest"] +test-command = 'pytest --pyargs pywt -m "not slow"' + [tool.cibuildwheel.windows] config-settings = {setup-args = ["--vsenv"]} before-build = "bash {project}/util/cibw_before_build_win.sh"