From 1024b156a15185660977f02db145a46073d48a78 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Tue, 27 Feb 2024 16:36:29 -0800 Subject: [PATCH] Python 2: restrict to macOS. Homebrew does not ship python 2, which makes the dependency wrong on Linux as it resolves to current Python 3. Also, we already limit it to an older version of macOS (11 and older), which still ships Python 2. Note that our "weekly" CI builds are using macOS 11 to build this formula. --- .github/workflows/main.yml | 2 +- Formula/unit-python.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61ca155..7b971aa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macOS-latest] + os: [ubuntu-latest, macOS-11, macOS-12, macOS-13] steps: - name: Set up Homebrew id: set-up-homebrew diff --git a/Formula/unit-python.rb b/Formula/unit-python.rb index 6145c8e..888c3b9 100644 --- a/Formula/unit-python.rb +++ b/Formula/unit-python.rb @@ -5,6 +5,7 @@ class UnitPython < Formula sha256 "4b5e9be3f3990fceabf06292c2b7853667aceb71fd8de5dc67cb7fb05d247a20" head "https://github.com/nginx/unit.git", branch: "master" + depends_on :macos depends_on maximum_macos: :big_sur depends_on "openssl" depends_on "unit@1.32.0"