Skip to content

Commit

Permalink
Merge pull request #155541 from chenrui333/python-prompt-toolkit
Browse files Browse the repository at this point in the history
python-prompt-toolkit 3.0.41 (new formula)
  • Loading branch information
BrewTestBot authored Nov 26, 2023
2 parents 48c945f + 7200221 commit ac3fccc
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Formula/p/python-prompt-toolkit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
class PythonPromptToolkit < Formula
desc "Library for building powerful interactive CLI in Python"
homepage "https://python-prompt-toolkit.readthedocs.io/en/master/"
url "https://files.pythonhosted.org/packages/d9/7b/7d88d94427e1e179e0a62818e68335cf969af5ca38033c0ca02237ab6ee7/prompt_toolkit-3.0.41.tar.gz"
sha256 "941367d97fc815548822aa26c2a269fdc4eb21e9ec05fc5d447cf09bad5d75f0"
license "BSD-3-Clause"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "833dd8a0ec1381ca2e9960f02a4d72452bc9f900972f90f8ed44e8dd33afb886"
sha256 cellar: :any_skip_relocation, arm64_ventura: "e4920f959794a62e9213a16bd1073cd88f7d7ae12a877e83a3e9d1cabf8924c3"
sha256 cellar: :any_skip_relocation, arm64_monterey: "8be9e3755bd28fffe695f1b2862ad91dd9d38209bca42dd33139fc35755584ef"
sha256 cellar: :any_skip_relocation, sonoma: "cfa4ac4bfa3aaeb4983f7df821d97a439f33e56ab65d79bbe9cc85022800d061"
sha256 cellar: :any_skip_relocation, ventura: "d46ba018eb6ccfe84eaf10d0d66dd4002ff4935d3c2201c87364bb03dd61c8fd"
sha256 cellar: :any_skip_relocation, monterey: "a110eadf2d8998f45dcb3653b3829e6c4b6e8e60f34445101d22779054cb0d13"
sha256 cellar: :any_skip_relocation, x86_64_linux: "600d3f4276cae515bb7bd0597dd5a410ff59693bf319d3df924ce459ef4727ba"
end

depends_on "python-setuptools" => :build
depends_on "[email protected]" => [:build, :test]
depends_on "[email protected]" => [:build, :test]
depends_on "python-wcwidth"

def pythons
deps.map(&:to_formula).sort_by(&:version).filter { |f| f.name.start_with?("python@") }
end

def install
pythons.each do |python|
python_exe = python.opt_libexec/"bin/python"
system python_exe, "-m", "pip", "install", *std_pip_args, "."
end
end

test do
pythons.each do |python|
python_exe = python.opt_libexec/"bin/python"
system python_exe, "-c", "from prompt_toolkit import prompt"
end
end
end
3 changes: 3 additions & 0 deletions pypi_formula_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,9 @@
"extra_packages": ["python-lsp-black", "pylsp-mypy", "python-lsp-ruff", "pylsp-rope"],
"exclude_packages": ["black", "mypy", "ruff"]
},
"python-prompt-toolkit": {
"exclude_packages": ["wcwidth"]
},
"python-requests": {
"exclude_packages": ["certifi", "charset-normalizer", "idna", "urllib3"]
},
Expand Down

0 comments on commit ac3fccc

Please sign in to comment.