Skip to content

Commit

Permalink
Python 2: restrict to macOS.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thresheek committed Feb 28, 2024
1 parent 5efd5f7 commit 1024b15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Formula/unit-python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
Expand Down

0 comments on commit 1024b15

Please sign in to comment.