diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6bf9c4d..582c395 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,9 @@ name: CI on: workflow_dispatch: + inputs: + overrideVersion: + description: Manually force a version pull_request: push: branches: @@ -10,6 +13,9 @@ on: tags: - "*.*.*" +env: + SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.overrideVersion }} + jobs: lint: name: Lint diff --git a/pyproject.toml b/pyproject.toml index 9df6d11..7f6c2ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ repair-wheel-command = "python scripts/repair_wheel.py -w {dest_dir} {wheel}" test-extras = "test" test-command = "pytest {project}/tests" test-skip = ["*-win_arm64", "*-macosx_universal2:arm64"] +environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"] [[tool.cibuildwheel.overrides]] select = "*-manylinux_{x86_64,i686}"