From eaa6a9a0720c1d86b423d02f1c36835163b673d6 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 22 Dec 2022 10:01:06 -0500 Subject: [PATCH 1/2] ci: allow setting a version --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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 From f6a6ce6eec7fa9257618c98f4847547bf6eda74c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 22 Dec 2022 10:02:20 -0500 Subject: [PATCH 2/2] Update pyproject.toml --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) 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}"