From 46fa1769ec4bdedb251d62c042135ca3adc61205 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Fri, 13 Dec 2024 17:24:04 -0500 Subject: [PATCH] ci: fix wheel building, and test cibuildwheel on main (#27) * ci: try build wheel on main * change condition * fallback to other ruff --- .github/workflows/deploy.yml | 1 - scripts/build_stubs.py | 5 +++-- src/_pymmcore_nano.pyi | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0b80d1e..a113140 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,6 @@ concurrency: jobs: build_wheels: - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') name: Build wheels on ${{ matrix.os }} ${{ matrix.macos_arch }} runs-on: ${{ matrix.os }} strategy: diff --git a/scripts/build_stubs.py b/scripts/build_stubs.py index 7e36104..6d79329 100644 --- a/scripts/build_stubs.py +++ b/scripts/build_stubs.py @@ -46,8 +46,9 @@ def build_stub(module_path: Path, output_path: str): dest.write_text(stub_txt) ruff = Path(sys.executable).parent / "ruff" - subprocess.run([str(ruff), "format", output_path], check=True) - subprocess.run([str(ruff), "check", "--fix-only", output_path]) + _ruff = str(ruff) if ruff.exists() else "ruff" + subprocess.run([_ruff, "format", output_path], check=True) + subprocess.run([_ruff, "check", "--fix-only", output_path]) if __name__ == "__main__": diff --git a/src/_pymmcore_nano.pyi b/src/_pymmcore_nano.pyi index 0a3dcfa..958ef5b 100644 --- a/src/_pymmcore_nano.pyi +++ b/src/_pymmcore_nano.pyi @@ -786,7 +786,7 @@ class MetadataTag: Misconfigured: int = -1 NoAction: int = 0 -PYMMCORE_NANO_VERSION: str = "0.dev1" +PYMMCORE_NANO_VERSION: str = "0.dev2" class PortType(enum.IntEnum): InvalidPort = 0