From 8615eb2b1307345280b324d2a1dcec176f17f18c Mon Sep 17 00:00:00 2001 From: Justin Buchanan Date: Mon, 23 Oct 2023 20:59:55 -0700 Subject: [PATCH] attempt to fix build failure on macOS --- .github/workflows/tests.yml | 2 +- src/cq_cli/cq_cli.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 974f8c2..9d1b50e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.12.0"] os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: diff --git a/src/cq_cli/cq_cli.py b/src/cq_cli/cq_cli.py index aa7e02e..08dc107 100755 --- a/src/cq_cli/cq_cli.py +++ b/src/cq_cli/cq_cli.py @@ -1,4 +1,10 @@ #!/usr/bin/env python3 + +# surprisingly, this seems to fix issues on macOS - it shouldn't be necessary +# for any python3 installation, but this program fails to run on macOS without +# this import. +from __future__ import print_function + import os import sys import argparse