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

[email protected] [email protected] [email protected] #182840

Merged
merged 38 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
cb340e3
versioned_keg_only_allowlist: add [email protected]
lukeshingles Aug 29, 2024
238f49b
pypi_formula_mappings.json: add [email protected]
lukeshingles Aug 29, 2024
2b36de7
synced_versions_formulae: add [email protected] [email protected] python-tk@…
lukeshingles Aug 29, 2024
186f01f
[email protected] 3.13.0 (new formula)
lukeshingles Aug 29, 2024
5d0f8d1
[email protected] 3.13.0 (new formula)
lukeshingles Aug 29, 2024
b325d37
[email protected] 3.13.0 (new formula)
lukeshingles Aug 29, 2024
dd90cd1
[email protected]: migrate aliases
lukeshingles Aug 29, 2024
39c4a59
[email protected]: demote from default python
lukeshingles Aug 29, 2024
a8a21e8
certifi: add [email protected]
lukeshingles Sep 18, 2024
0f907a9
pycparser: add [email protected]
lukeshingles Sep 18, 2024
2630573
cffi: add [email protected]
lukeshingles Sep 18, 2024
f67e13f
cryptography: add [email protected]
lukeshingles Sep 18, 2024
e74cfff
maturin: use [email protected]
lukeshingles Sep 18, 2024
684c50b
bandcamp-dl: use [email protected]
lukeshingles Sep 18, 2024
78420ab
buku: use [email protected]
lukeshingles Sep 18, 2024
3a45dad
restview: use [email protected]
lukeshingles Sep 18, 2024
e5185cd
woof: bump revision
lukeshingles Sep 18, 2024
5b2fbf8
chapel: use altinstall [email protected]
lukeshingles Sep 18, 2024
9d2e3f9
nanobind: use [email protected]
lukeshingles Oct 1, 2024
df9b01d
streamlink: use [email protected]
lukeshingles Oct 2, 2024
65107f1
afl++: use [email protected]
lukeshingles Oct 4, 2024
493defa
afl++: update 4.21_2 bottle.
branchvincent Oct 9, 2024
408408c
bandcamp-dl: update 0.0.16_1 bottle.
branchvincent Oct 9, 2024
3926a55
buku: update 4.9_3 bottle.
branchvincent Oct 9, 2024
60f626c
certifi: update 2024.8.30_1 bottle.
branchvincent Oct 9, 2024
7ff4e75
cffi: update 1.17.1_1 bottle.
branchvincent Oct 9, 2024
22610bf
chapel: update 2.2.0_2 bottle.
branchvincent Oct 9, 2024
c63dc33
cryptography: update 43.0.1_1 bottle.
branchvincent Oct 9, 2024
9d44f17
maturin: update 1.7.4_1 bottle.
branchvincent Oct 9, 2024
2978b56
nanobind: update 2.1.0_1 bottle.
branchvincent Oct 9, 2024
b6ef4a0
pycparser: update 2.22_1 bottle.
branchvincent Oct 9, 2024
3782bff
[email protected]: add 3.13.0 bottle.
branchvincent Oct 9, 2024
7cd4a1c
[email protected]: add 3.13.0 bottle.
branchvincent Oct 9, 2024
d865d50
[email protected]: update 3.12.7_1 bottle.
branchvincent Oct 9, 2024
ec3d133
[email protected]: add 3.13.0 bottle.
branchvincent Oct 9, 2024
e5154c3
restview: update 3.0.1_1 bottle.
branchvincent Oct 9, 2024
93e005d
streamlink: update 6.11.0_1 bottle.
branchvincent Oct 9, 2024
b974cc2
woof: update 20220202_1 bottle.
branchvincent Oct 9, 2024
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
2 changes: 1 addition & 1 deletion Aliases/python
2 changes: 1 addition & 1 deletion Aliases/python-gdbm
2 changes: 1 addition & 1 deletion Aliases/python-tk
2 changes: 1 addition & 1 deletion Aliases/python3
2 changes: 1 addition & 1 deletion Aliases/python@3
4 changes: 2 additions & 2 deletions Formula/a/afl++.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Aflxx < Formula
url "https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/v4.21c.tar.gz"
sha256 "11f7c77d37cff6e7f65ac7cc55bab7901e0c6208e845a38764394d04ed567b30"
license "Apache-2.0"
revision 1
revision 2

bottle do
rebuild 1
Expand All @@ -18,7 +18,7 @@ class Aflxx < Formula

depends_on "coreutils" => :build
depends_on "llvm"
depends_on "python@3.12"
depends_on "python@3.13"

# The Makefile will insist on compiling with LLVM clang even without this.
fails_with :clang
Expand Down
3 changes: 2 additions & 1 deletion Formula/b/bandcamp-dl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class BandcampDl < Formula
url "https://github.com/iheanyi/bandcamp-dl/archive/refs/tags/v0.0.16.tar.gz"
sha256 "78323070f0cf2f743673172d41df42f9cf1ab88f473915f56e5b284fb4de76ec"
license "Unlicense"
revision 1
head "https://github.com/iheanyi/bandcamp-dl.git", branch: "master"

bottle do
Expand All @@ -19,7 +20,7 @@ class BandcampDl < Formula
end

depends_on "certifi"
depends_on "python@3.12"
depends_on "python@3.13"

uses_from_macos "libxml2", since: :ventura
uses_from_macos "libxslt"
Expand Down
4 changes: 2 additions & 2 deletions Formula/b/buku.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Buku < Formula
url "https://github.com/jarun/buku/archive/refs/tags/v4.9.tar.gz"
sha256 "1e432270ae78c7852110dcf2c2e215893bcc338299a4998f14a1f6b26e37bfac"
license "GPL-3.0-or-later"
revision 2
revision 3
head "https://github.com/jarun/buku.git", branch: "master"

bottle do
Expand All @@ -22,7 +22,7 @@ class Buku < Formula

depends_on "certifi"
depends_on "cryptography"
depends_on "python@3.12"
depends_on "python@3.13"

uses_from_macos "expect" => :test
uses_from_macos "libffi"
Expand Down
2 changes: 2 additions & 0 deletions Formula/c/certifi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Certifi < Formula
url "https://files.pythonhosted.org/packages/b0/ee/9b19140fe824b367c04c5e1b369942dd754c4c5462d5674002f75c4dedc1/certifi-2024.8.30.tar.gz"
sha256 "bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"
license "MPL-2.0"
revision 1

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "0d53b46299ad29dfbaeb9c9d642887efb7235ddec1ed39ec144469114970fe6b"
Expand All @@ -18,6 +19,7 @@ class Certifi < Formula

depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "ca-certificates"

def pythons
Expand Down
2 changes: 2 additions & 0 deletions Formula/c/cffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Cffi < Formula
url "https://files.pythonhosted.org/packages/fc/97/c783634659c2920c3fc70419e3af40972dbaf758daa229a7d6ea6135c90d/cffi-1.17.1.tar.gz"
sha256 "1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"
license "MIT"
revision 1

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "3af401e70845a3ddab668051310f9bbc002d60c60bacc4833c8b86fc5a350c74"
Expand All @@ -18,6 +19,7 @@ class Cffi < Formula

depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "pycparser"

uses_from_macos "libffi"
Expand Down
10 changes: 9 additions & 1 deletion Formula/c/chapel.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
class Chapel < Formula
include Language::Python::Shebang
desc "Programming language for productive parallel computing at scale"
homepage "https://chapel-lang.org/"
url "https://github.com/chapel-lang/chapel/releases/download/2.2.0/chapel-2.2.0.tar.gz"
sha256 "bb16952a87127028031fd2b56781bea01ab4de7c3466f7b6a378c4d8895754b6"
license "Apache-2.0"
revision 1
revision 2
head "https://github.com/chapel-lang/chapel.git", branch: "main"

bottle do
Expand Down Expand Up @@ -37,13 +38,20 @@ def install
# It should be noted that this will expand to: 'for cmd in python3.12 python3 python python2; do'
# in our find-python.sh script.
inreplace "util/config/find-python.sh", /^(for cmd in )(python3 )/, "\\1#{python} \\2"
inreplace "third-party/chpl-venv/Makefile", "python3 -c ", "#{python} -c "

# a lot of scripts have a python3 or python shebang, which does not point to python3.12 anymore
Pathname.glob("**/*.py") do |pyfile|
rewrite_shebang detected_python_shebang, pyfile
end

libexec.install Dir["*"]
# Chapel uses this ENV to work out where to install.
ENV["CHPL_HOME"] = libexec
ENV["CHPL_GMP"] = "system"
# This ENV avoids a problem where cmake cache is invalidated by subsequent make calls
ENV["CHPL_CMAKE_USE_CC_CXX"] = "1"
ENV["CHPL_CMAKE_PYTHON"] = python

# don't try to set CHPL_LLVM_GCC_PREFIX since the llvm
# package should be configured to use a reasonable GCC
Expand Down
2 changes: 2 additions & 0 deletions Formula/c/cryptography.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Cryptography < Formula
url "https://files.pythonhosted.org/packages/de/ba/0664727028b37e249e73879348cc46d45c5c1a2a2e81e8166462953c5755/cryptography-43.0.1.tar.gz"
sha256 "203e92a75716d8cfb491dc47c79e17d0d9207ccffcbcb35f598fbe463ae3444d"
license any_of: ["Apache-2.0", "BSD-3-Clause"]
revision 1
head "https://github.com/pyca/cryptography.git", branch: "main"

bottle do
Expand All @@ -21,6 +22,7 @@ class Cryptography < Formula
depends_on "pkg-config" => :build
depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "rust" => :build
depends_on "cffi"
depends_on "openssl@3"
Expand Down
5 changes: 3 additions & 2 deletions Formula/m/maturin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Maturin < Formula
url "https://github.com/PyO3/maturin/archive/refs/tags/v1.7.4.tar.gz"
sha256 "19edb033a7d744dd2b4722218d9db47dadb633948577f957b44d8c9b8eececc8"
license any_of: ["Apache-2.0", "MIT"]
revision 1
head "https://github.com/PyO3/maturin.git", branch: "main"

bottle do
Expand All @@ -16,7 +17,7 @@ class Maturin < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "08049dfec24d8b8c8bccae9589a64c452817a902fea21255feaa202477146cea"
end

depends_on "python@3.12" => :test
depends_on "python@3.13" => :test
depends_on "rust"

uses_from_macos "bzip2"
Expand Down Expand Up @@ -48,7 +49,7 @@ def install
end

test do
python = "python3.12"
python = "python3.13"
system "cargo", "init", "--name=brew", "--bin"
system bin/"maturin", "build", "-o", "dist", "--compatibility", "off"
system python, "-m", "pip", "install", "brew", "--prefix=./dist", "--no-index", "--find-links=./dist"
Expand Down
5 changes: 3 additions & 2 deletions Formula/n/nanobind.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ class Nanobind < Formula
url "https://github.com/wjakob/nanobind/archive/refs/tags/v2.1.0.tar.gz"
sha256 "c37c53c60ada5fe1c956e24bd4b83af669a2309bf952bd251f36a7d2fa3bacf0"
license "BSD-3-Clause"
revision 1
head "https://github.com/wjakob/nanobind.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, all: "67d3bc9718d09845035fdb44fa3ac8e60e80bcc8170900f25a945589eeb02e9d"
end

depends_on "cmake" => [:build, :test]
depends_on "python@3.12" => [:build, :test]
depends_on "python@3.13" => [:build, :test]
depends_on "robin-map" => [:build, :test]

def install
Expand All @@ -33,7 +34,7 @@ def install
end

test do
python = "python3.12"
python = "python3.13"

(testpath/"my_ext.cpp").write <<~CPP
#include <nanobind/nanobind.h>
Expand Down
2 changes: 2 additions & 0 deletions Formula/p/pycparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Pycparser < Formula
url "https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz"
sha256 "491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"
license "BSD-3-Clause"
revision 1

bottle do
rebuild 1
Expand All @@ -12,6 +13,7 @@ class Pycparser < Formula

depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]

def pythons
deps.map(&:to_formula)
Expand Down
60 changes: 60 additions & 0 deletions Formula/p/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
class PythonGdbmAT313 < Formula
desc "Python interface to gdbm"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"
sha256 "12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4"
license "Python-2.0"

livecheck do
formula "[email protected]"
end

depends_on "gdbm"
depends_on "[email protected]"

def python3
"python3.13"
end

def install
xy = Language::Python.major_minor_version python3
python_include = if OS.mac?
Formula["python@#{xy}"].opt_frameworks/"Python.framework/Versions/#{xy}/include/python#{xy}"
else
Formula["python@#{xy}"].opt_include/"python#{xy}"
end

cd "Modules" do
(Pathname.pwd/"setup.py").write <<~EOS
from setuptools import setup, Extension

setup(name="gdbm",
description="#{desc}",
version="#{version}",
ext_modules = [
Extension("_gdbm", ["_gdbmmodule.c"],
include_dirs=["#{Formula["gdbm"].opt_include}", "#{python_include}/internal"],
libraries=["gdbm"],
library_dirs=["#{Formula["gdbm"].opt_lib}"])
]
)
EOS
system python3, "-m", "pip", "install", *std_pip_args(prefix: false, build_isolation: true),
"--target=#{libexec}", "."
rm_r libexec.glob("*.dist-info")
end
end

test do
testdb = testpath/"test.db"
system python3, "-c", <<~EOS
import dbm.gnu

with dbm.gnu.open("#{testdb}", "n") as db:
db["testkey"] = "testvalue"

with dbm.gnu.open("#{testdb}", "r") as db:
assert db["testkey"] == b"testvalue"
EOS
end
end
57 changes: 57 additions & 0 deletions Formula/p/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
class PythonTkAT313 < Formula
desc "Python interface to Tcl/Tk"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"
sha256 "12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4"
license "Python-2.0"

livecheck do
formula "[email protected]"
end

depends_on "[email protected]"
depends_on "tcl-tk"

def python3
"python3.13"
end

def install
xy = Language::Python.major_minor_version python3
python_include = if OS.mac?
Formula["python@#{xy}"].opt_frameworks/"Python.framework/Versions/#{xy}/include/python#{xy}"
else
Formula["python@#{xy}"].opt_include/"python#{xy}"
end

cd "Modules" do
tcltk_version = Formula["tcl-tk"].any_installed_version.major_minor
(Pathname.pwd/"setup.py").write <<~EOS
from setuptools import setup, Extension

setup(name="tkinter",
description="#{desc}",
version="#{version}",
ext_modules = [
Extension("_tkinter", ["_tkinter.c", "tkappinit.c"],
define_macros=[("WITH_APPINIT", 1)],
include_dirs=["#{python_include}/internal", "#{Formula["tcl-tk"].opt_include/"tcl-tk"}"],
libraries=["tcl#{tcltk_version}", "tk#{tcltk_version}"],
library_dirs=["#{Formula["tcl-tk"].opt_lib}"])
]
)
EOS
system python3, "-m", "pip", "install", *std_pip_args(prefix: false, build_isolation: true),
"--target=#{libexec}", "."
rm_r libexec.glob("*.dist-info")
end
end

test do
system python3, "-c", "import tkinter"

return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

system python3, "-c", "import tkinter; root = tkinter.Tk()"
end
end
Loading
Loading