Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iconsur: migrate to python@3.13 #194266

Merged
merged 2 commits into from
Oct 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions Formula/i/iconsur.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ class Iconsur < Formula
license "MIT"

bottle do
rebuild 2
sha256 cellar: :any_skip_relocation, arm64_sequoia: "e15acf0ca74a39af601070861cc784c36a10d6ec8b423723e42f18560bb20587"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "41e638854049735d75d8a5817f49c5751f423ecb8d4da508fa2546c0af6092e4"
sha256 cellar: :any_skip_relocation, arm64_ventura: "04e27b7499dedbce8368ea0bf753b37dc0ba0aa1e40afa60fbe1200f7c07363f"
sha256 cellar: :any_skip_relocation, arm64_monterey: "bc350d8b15f1417e7b52a8ea40b7a3331d9153194a43e332878d5ea89dd1fb12"
sha256 cellar: :any_skip_relocation, sonoma: "44693cd5a395695bf5900720a3049b9d87753c3b36d16807acf012bba65b422f"
sha256 cellar: :any_skip_relocation, ventura: "83853903cd670285e187e2119a6ec16dea4a834bc36558a5821354d03391600c"
sha256 cellar: :any_skip_relocation, monterey: "036e74c813e250b333a2ad2f767cfda92deacc144dad0f30e12ec6bc414ef439"
rebuild 3
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ba4be0ff656530a2a787c34d2b8c9502a0bb6448dd3d76198ff9d9a295769303"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "4c5b0753cf7a6dd13ecc8fa8ca6d8e511f1f8658a907e793e8cce001164f669a"
sha256 cellar: :any_skip_relocation, arm64_ventura: "81f49f558f09ca338470b0599e6c8e2254a85b31e7a098dada4dac32bd5f2de5"
sha256 cellar: :any_skip_relocation, sonoma: "80a8c9d1251b6015fa7070d4a07a82fe39b6b70d2a1bf148a468cf8f28dd9467"
sha256 cellar: :any_skip_relocation, ventura: "652b5bdaa7162f802914ec320be23b44f1984f58a967cb5488dfa354a46b678c"
end

depends_on :macos
Expand All @@ -28,24 +26,24 @@ class Iconsur < Formula
# this causes issues if a user has Homebrew Python installed (EXTERNALLY-MANAGED).
# We instead prepare a virtualenv with all missing packages.
on_monterey :or_newer do
depends_on "python@3.12"
depends_on "python@3.13"
end

resource "pyobjc-core" do
url "https://files.pythonhosted.org/packages/50/d5/0b93cb9dc94ab4b78b2b7aa54c80f037e4de69897fff81a5ededa91d2704/pyobjc-core-10.1.tar.gz"
sha256 "1844f1c8e282839e6fdcb9a9722396c1c12fb1e9331eb68828a26f28a3b2b2b1"
url "https://files.pythonhosted.org/packages/b7/40/a38d78627bd882d86c447db5a195ff307001ae02c1892962c656f2fd6b83/pyobjc_core-10.3.1.tar.gz"
sha256 "b204a80ccc070f9ab3f8af423a3a25a6fd787e228508d00c4c30f8ac538ba720"
end

resource "pyobjc-framework-cocoa" do
url "https://files.pythonhosted.org/packages/5d/1d/964a0da846d49511489bd99ed705f9d85c5081fc832d0dba384c4c0d2fb2/pyobjc-framework-Cocoa-10.1.tar.gz"
sha256 "8faaf1292a112e488b777d0c19862d993f3f384f3927dc6eca0d8d2221906a14"
url "https://files.pythonhosted.org/packages/a7/6c/b62e31e6e00f24e70b62f680e35a0d663ba14ff7601ae591b5d20e251161/pyobjc_framework_cocoa-10.3.1.tar.gz"
sha256 "1cf20714daaa986b488fb62d69713049f635c9d41a60c8da97d835710445281a"
end

def install
system "npm", "install", *std_npm_args

if MacOS.version >= :monterey
venv = virtualenv_create(libexec/"venv", "python3.12")
venv = virtualenv_create(libexec/"venv", "python3.13")
venv.pip_install resources
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files libexec/"bin", PATH: "#{venv.root}/bin:${PATH}"
Expand Down
Loading