Skip to content

Commit

Permalink
Merge pull request #127705 from branchvincent/bump-python@3.10-3.10.11
Browse files Browse the repository at this point in the history
python@3.10 python-tk@3.10 3.10.11
  • Loading branch information
BrewTestBot authored Apr 8, 2023
2 parents 2d208ea + 4d7feaa commit 6137859
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 29 deletions.
22 changes: 11 additions & 11 deletions Formula/python-tk@3.10.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
class PythonTkAT310 < Formula
desc "Python interface to Tcl/Tk"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tgz"
sha256 "fba64559dde21ebdc953e4565e731573bb61159de8e4d4cedee70fb1196f610d"
url "https://www.python.org/ftp/python/3.10.11/Python-3.10.11.tgz"
sha256 "f3db31b668efa983508bd67b5712898aa4247899a346f2eb745734699ccd3859"
license "Python-2.0"

livecheck do
formula "python@3.10"
end

bottle do
sha256 cellar: :any, arm64_ventura: "09151dcb365ffbd31c371da3ea52f688f68e5e6e34812ee2de0eeb387c6ff25b"
sha256 cellar: :any, arm64_monterey: "0af569776354044dcd1c10c9d95690069757cb5ae684572f7d98f536a3b31c20"
sha256 cellar: :any, arm64_big_sur: "4e762708d772fd93792122992d83e99c747ec44f051613026a67731074afc6ba"
sha256 cellar: :any, ventura: "a7289c54d92181d5c50dc2556bdea1ea4c53679b4abf66bc1191d04369aa5e70"
sha256 cellar: :any, monterey: "26e875fa1c76b7be4026f3833a0c37a4ac2fbad889b2ad0474222ca969df79b6"
sha256 cellar: :any, big_sur: "90bedbb1a6fe2c28058ef9114cfad91b4ed6a54d2676ee3d243c3c5a3f506682"
sha256 x86_64_linux: "30f84721267504f85471728e86b9ccc9020d0361b16b25e45ca1858d30686063"
sha256 cellar: :any, arm64_ventura: "9a0a8ec94e95c50e6342759ad8131e05cfaafcc58375bfce7004b0ee00a4ebb0"
sha256 cellar: :any, arm64_monterey: "ee5f6b97d7c9744c883c6301c7a378b0fff3d626eb8ff4557b802844f30479a1"
sha256 cellar: :any, arm64_big_sur: "52446c28e01104e2579b9eb02b68de842189de48dd15afc522eaf79dd6ce1eb0"
sha256 cellar: :any, ventura: "fbfa94200e5faae888a080afa58578aba1c169e97c842651193fbcd46d86face"
sha256 cellar: :any, monterey: "83ff7db648a67c4c99990452ad04eacea7219ec009f0a3f0231ba79389932b00"
sha256 cellar: :any, big_sur: "301ea15e7625db0144fed03dacc59c16c1ce2ecac39fa473aec2e6416c04978c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ec79ec9ac475f29de278876dd600ae4738a38797529a9bcb771a820191deb32c"
end

keg_only :versioned_formula
Expand All @@ -40,15 +40,15 @@ def install
ext_modules = [
Extension("_tkinter", ["_tkinter.c", "tkappinit.c"],
define_macros=[("WITH_APPINIT", 1)],
include_dirs=["#{Formula["tcl-tk"].opt_include}"],
include_dirs=["#{Formula["tcl-tk"].opt_include/"tcl-tk"}"],
libraries=["tcl#{tcltk_version}", "tk#{tcltk_version}"],
library_dirs=["#{Formula["tcl-tk"].opt_lib}"])
]
)
EOS
system python3, *Language::Python.setup_install_args(libexec, python3),
"--install-lib=#{libexec}"
rm_r Dir[libexec/"*.egg-info"]
rm_r libexec.glob("*.egg-info")
end
end

Expand Down
42 changes: 24 additions & 18 deletions Formula/python@3.10.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
class PythonAT310 < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tgz"
sha256 "fba64559dde21ebdc953e4565e731573bb61159de8e4d4cedee70fb1196f610d"
url "https://www.python.org/ftp/python/3.10.11/Python-3.10.11.tgz"
sha256 "f3db31b668efa983508bd67b5712898aa4247899a346f2eb745734699ccd3859"
license "Python-2.0"
revision 1

livecheck do
url "https://www.python.org/ftp/python/"
regex(%r{href=.*?v?(3\.10(?:\.\d+)*)/?["' >]}i)
end

bottle do
sha256 arm64_ventura: "8901fd702a2bba8c37514beab8a3c44bf13a5443d4478ee75ddbaaf124ccab4e"
sha256 arm64_monterey: "6655163e389898197777099b8e8b463fa3ef914654d64e6cc6ec5d017fca0920"
sha256 arm64_big_sur: "b4cbbac05a433478499340df196f201e0a00152643126985f0cd1458c92bcc3a"
sha256 ventura: "39b7f883d92f4093862c1eecac37b14dd800a75950a1011bf63fc5ebd74a126f"
sha256 monterey: "a62a75c24c0cd82d342ae59ea12686b0938dbc57f3c23ae4d458d66e5dd6dfb8"
sha256 big_sur: "c03d868ab5d46ff2fde13c9be9395bca7eba492002d04a299e9514068ee6508b"
sha256 x86_64_linux: "f01aa14bb2ae227a242290438e91f12d07812a84beb744b0b33e5f1f9ee70f2f"
sha256 arm64_ventura: "7821f3b8dbbdc4bbf523dfdd4f6c64fb6b0ef9520656128f6628b1eeca90a62c"
sha256 arm64_monterey: "4b062ce32d6d430ef63492097aa79c715a004010cdd43ef3766a2c8cb21e01af"
sha256 arm64_big_sur: "9ca45ff4895c95cf72e89254e1c9db6a26f9de00de22567eba0fef10b3e85215"
sha256 ventura: "6ad2d171570c2b38e99d58ffc4c1d0321b45698e90bfdfde64f3fc8fc6769b6d"
sha256 monterey: "6093c0e2490a28a6f1d4e06569f9a71b2c8919190ee9bae800a71238aedfbb87"
sha256 big_sur: "8155f10c07c1bf8fa552033f2db980c2f415314ba578f037a1a586d9e587de0c"
sha256 x86_64_linux: "92ca5c8c341835d5af8f4a94bb86bdd73b99239b7977430911cec4e86f226e20"
end

# setuptools remembers the build flags python is built with and uses them to
Expand Down Expand Up @@ -50,19 +49,24 @@ class PythonAT310 < Formula
"bin/easy_install-3.7", "bin/easy_install-3.8", "bin/easy_install-3.9"

# Always update to latest release
resource "setuptools" do
url "https://files.pythonhosted.org/packages/5f/36/7374297692bb9dbd7569a0f84887c7e5e314c41d5d9518cb76fbb130620d/setuptools-67.2.0.tar.gz"
sha256 "b440ee5f7e607bb8c9de15259dba2583dd41a38879a7abc1d43a71c59524da48"
resource "flit-core" do
url "https://files.pythonhosted.org/packages/10/e5/be08751d07b30889af130cec20955c987a74380a10058e6e8856e4010afc/flit_core-3.8.0.tar.gz"
sha256 "b305b30c99526df5e63d6022dd2310a0a941a187bd3884f4c8ef0418df6c39f3"
end

resource "pip" do
url "https://files.pythonhosted.org/packages/b5/16/5e24bf63cff51dcc169f43bd43b86b005c49941e09cc3482a5b370db239e/pip-23.0.tar.gz"
sha256 "aee438284e82c8def684b0bcc50b1f6ed5e941af97fa940e83e2e8ef1a59da9b"
url "https://files.pythonhosted.org/packages/6b/8b/0b16094553ecc680e43ded8f920c3873b01b1da79a54274c98f08cb29fca/pip-23.0.1.tar.gz"
sha256 "cd015ea1bfb0fcef59d8a286c1f8bebcb983f6317719d415dc5351efb7cd7024"
end

resource "setuptools" do
url "https://files.pythonhosted.org/packages/cb/46/22ec35f286a77e6b94adf81b4f0d59f402ed981d4251df0ba7b992299146/setuptools-67.6.1.tar.gz"
sha256 "257de92a9d50a60b8e22abfcbb771571fde0dbf3ec234463212027a4eeecbe9a"
end

resource "wheel" do
url "https://files.pythonhosted.org/packages/a2/b8/6a06ff0f13a00fc3c3e7d222a995526cbca26c1ad107691b6b1badbbabf1/wheel-0.38.4.tar.gz"
sha256 "965f5259b566725405b05e7cf774052044b1ed30119b5d586b2703aafe8719ac"
url "https://files.pythonhosted.org/packages/fc/ef/0335f7217dd1e8096a9e8383e1d472aa14717878ffe07c4772e68b6e8735/wheel-0.40.0.tar.gz"
sha256 "cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873"
end

# Modify default sysconfig to match the brew install layout.
Expand Down Expand Up @@ -129,7 +133,6 @@ def install
--with-dbmliborder=gdbm:ndbm
--enable-optimizations
--with-system-expat
--with-system-ffi
--with-system-libmpdec
]

Expand Down Expand Up @@ -281,6 +284,9 @@ def install
]
whl_build = buildpath/"whl_build"
system python3, "-m", "venv", whl_build
resource("flit-core").stage do
system whl_build/"bin/pip3", "install", *common_pip_args, "."
end
resource("wheel").stage do
system whl_build/"bin/pip3", "install", *common_pip_args, "."
system whl_build/"bin/pip3", "wheel", *common_pip_args,
Expand Down

0 comments on commit 6137859

Please sign in to comment.