Skip to content

Commit

Permalink
Merge pull request #163992 from Homebrew/sail-vendor-deps
Browse files Browse the repository at this point in the history
sail: vendor Python resources
  • Loading branch information
BrewTestBot authored Feb 24, 2024
2 parents 71bfdce + 05e7d3d commit 717e9b4
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 42 deletions.
132 changes: 94 additions & 38 deletions Formula/s/sail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,115 @@ class Sail < Formula
revision 3

bottle do
rebuild 2
sha256 cellar: :any_skip_relocation, arm64_sonoma: "683b664520bdc527c8cf90bae1446c4d18fb1cf3c029c36f63f1119dd2e058c3"
sha256 cellar: :any_skip_relocation, arm64_ventura: "4353778cb21326a1a538d3b23b4eaa892326a6dc6e1cafcf53adf934be241cad"
sha256 cellar: :any_skip_relocation, arm64_monterey: "ac7adb6bca5a5123896d7e6ba6b3e084bb95f2e4ba06970a937623745d72c195"
sha256 cellar: :any_skip_relocation, sonoma: "def6f099466e8475b882eaa362bf05648a44a9377e7d1aa43c3b2725fb0b3d62"
sha256 cellar: :any_skip_relocation, ventura: "378c2c8300ff86429bb2ea773d25896d63505b7d2617ba090cb564aa12846229"
sha256 cellar: :any_skip_relocation, monterey: "997a26c5b0fd84761e8fd68025819e21db4a7ba37c982e9f4aedbe95e7ae274b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1f6b5188c8d5c6dabfdde6fbc37cf9d6c8631440034042eb97c57d0744ac2271"
end

depends_on "fabric"
depends_on "pyinvoke"
rebuild 3
sha256 cellar: :any, arm64_sonoma: "e2eec051e7a1b20851f97a2b9ef50cad66253edb2e6a18a8c9790865aa015fc1"
sha256 cellar: :any, arm64_ventura: "036bd53aedf14083a650fe62b1616b6ca1842d7a180a81b04861bc1abfea3e1e"
sha256 cellar: :any, arm64_monterey: "1dc9fa74bf6c8fbe14603ccab87a42fa851bb92882465b5b162058b2dac5ddf3"
sha256 cellar: :any, sonoma: "8c89ea892de40411c4ac4c7688b77deae4c7420f7d7d3e6965443aec8ce66b85"
sha256 cellar: :any, ventura: "de5a5565f0dce60464b40f065aa2cc1cab00bca452f88e25efdd84f9ff5e463a"
sha256 cellar: :any, monterey: "8718eec5405a76f6542dc36e47d3607a86a90ca0128b736682a742e74c6c5398"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ef29e50a7fdc57fe24295abf5c67a419dfff759d8136515389ed292e7a1e12cf"
end

depends_on "rust" => :build
depends_on "libyaml"
depends_on "python-certifi"
depends_on "python-click"
depends_on "python-filelock"
depends_on "python-jinja"
depends_on "python-markupsafe"
depends_on "python-packaging"
depends_on "python-cryptography"
depends_on "[email protected]"
depends_on "pyyaml"
depends_on "six"

resource "bcrypt" do
url "https://files.pythonhosted.org/packages/72/07/6a6f2047a9dc9d012b7b977e4041d37d078b76b44b7ee4daf331c1e6fb35/bcrypt-4.1.2.tar.gz"
sha256 "33313a1200a3ae90b75587ceac502b048b840fc69e7f7a0905b5f87fac7a1258"
end

resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/cf/ac/e89b2f2f75f51e9859979b56d2ec162f7f893221975d244d8d5277aa9489/charset-normalizer-3.3.0.tar.gz"
sha256 "63563193aec44bce707e0c5ca64ff69fa72ed7cf34ce6e11d5127555756fd2f6"
url "https://files.pythonhosted.org/packages/63/09/c1bc53dab74b1816a00d8d030de5bf98f724c52c1635e07681d312f20be8/charset-normalizer-3.3.2.tar.gz"
sha256 "f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"
end

resource "click" do
url "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz"
sha256 "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"
end

resource "decorator" do
url "https://files.pythonhosted.org/packages/66/0c/8d907af351aa16b42caae42f9d6aa37b900c67308052d10fdce809f8d952/decorator-5.1.1.tar.gz"
sha256 "637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330"
end

resource "deprecated" do
url "https://files.pythonhosted.org/packages/92/14/1e41f504a246fc224d2ac264c227975427a85caf37c3979979edb9b1b232/Deprecated-1.2.14.tar.gz"
sha256 "e5323eb936458dccc2582dc6f9c322c852a775a27065ff2b0c4970b9d53d01b3"
end

resource "fabric" do
url "https://files.pythonhosted.org/packages/0d/3f/337f278b70ba339c618a490f6b8033b7006c583bd197a897f12fbc468c51/fabric-3.2.2.tar.gz"
sha256 "8783ca42e3b0076f08b26901aac6b9d9b1f19c410074e7accfab902c184ff4a3"
end

resource "filelock" do
url "https://files.pythonhosted.org/packages/70/70/41905c80dcfe71b22fb06827b8eae65781783d4a14194bce79d16a013263/filelock-3.13.1.tar.gz"
sha256 "521f5f56c50f8426f5e03ad3b281b490a87ef15bc6c526f168290f0c7148d44e"
end

resource "idna" do
url "https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz"
sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"
url "https://files.pythonhosted.org/packages/bf/3f/ea4b9117521a1e9c50344b909be7886dd00a519552724809bb1f486986c2/idna-3.6.tar.gz"
sha256 "9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca"
end

resource "invoke" do
url "https://files.pythonhosted.org/packages/f9/42/127e6d792884ab860defc3f4d80a8f9812e48ace584ffc5a346de58cdc6c/invoke-2.2.0.tar.gz"
sha256 "ee6cbb101af1a859c7fe84f2a264c059020b0cb7fe3535f9424300ab568f6bd5"
end

resource "jinja2" do
url "https://files.pythonhosted.org/packages/7a/ff/75c28576a1d900e87eb6335b063fab47a8ef3c8b4d88524c4bf78f670cce/Jinja2-3.1.2.tar.gz"
sha256 "31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852"
end

resource "jsonpickle" do
url "https://files.pythonhosted.org/packages/6e/92/62fdc2f6b468b870dd171ad21748ef0ec2bff1b258c25ce6db3545cccc90/jsonpickle-3.0.2.tar.gz"
sha256 "e37abba4bfb3ca4a4647d28bb9f4706436f7b46c8a8333b4a718abafa8e46b37"
url "https://files.pythonhosted.org/packages/05/68/38c6c809fd3203e507c0c95ebede5e682bdc84f2e81fc6f818d7926c6a41/jsonpickle-3.0.3.tar.gz"
sha256 "5691f44495327858ab3a95b9c440a79b41e35421be1a6e09a47b6c9b9421fd06"
end

resource "markupsafe" do
url "https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz"
sha256 "d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"
end

resource "packaging" do
url "https://files.pythonhosted.org/packages/b9/6c/7c6658d258d7971c5eb0d9b69fa9265879ec9a9158031206d47800ae2213/packaging-23.1.tar.gz"
sha256 "a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"
end

resource "paramiko" do
url "https://files.pythonhosted.org/packages/44/03/158ae1dcb950bd96f04038502238159e116fafb27addf5df1ba35068f2d6/paramiko-3.3.1.tar.gz"
sha256 "6a3777a961ac86dbef375c5f5b8d50014a1a96d0fd7f054a43bc880134b0ff77"
end

resource "pynacl" do
url "https://files.pythonhosted.org/packages/a7/22/27582568be639dfe22ddb3902225f91f2f17ceff88ce80e4db396c8986da/PyNaCl-1.5.0.tar.gz"
sha256 "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba"
end

resource "python-digitalocean" do
url "https://files.pythonhosted.org/packages/f8/f7/43cb73fb393c4c0da36294b6040c7424bc904042d55c1b37c73ecc9e7714/python-digitalocean-1.17.0.tar.gz"
sha256 "107854fde1aafa21774e8053cf253b04173613c94531f75d5a039ad770562b24"
end

resource "pyyaml" do
url "https://files.pythonhosted.org/packages/cd/e5/af35f7ea75cf72f2cd079c95ee16797de7cd71f29ea7c68ae5ce7be1eda0/PyYAML-6.0.1.tar.gz"
sha256 "bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"
end

resource "requests" do
url "https://files.pythonhosted.org/packages/9d/be/10918a2eac4ae9f02f6cfe6414b7a155ccd8f7f9d4380d62fd5b955065c3/requests-2.31.0.tar.gz"
sha256 "942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"
end

resource "requests-file" do
url "https://files.pythonhosted.org/packages/50/5c/d32aeed5c91e7970ee6ab8316c08d911c1d6044929408f6bbbcc763f8019/requests-file-1.5.1.tar.gz"
sha256 "07d74208d3389d01c38ab89ef403af0cfec63957d53a0081d8eca738d0247d8e"
url "https://files.pythonhosted.org/packages/2b/69/ba1b5f52f96cde4f2d8eca74a0aa2c11a66b2fe58d0fb63b2e46edce6ed3/requests-file-2.0.0.tar.gz"
sha256 "20c5931629c558fda566cacc10cfe2cd502433e628f568c34c80d96a0cc95972"
end

resource "tldextract" do
Expand All @@ -67,20 +126,17 @@ class Sail < Formula
end

resource "urllib3" do
url "https://files.pythonhosted.org/packages/af/47/b215df9f71b4fdba1025fc05a77db2ad243fa0926755a52c5e71659f4e3c/urllib3-2.0.7.tar.gz"
sha256 "c97dfde1f7bd43a71c8d2a58e369e9b2bf692d1334ea9f9cae55add7d0dd0f84"
url "https://files.pythonhosted.org/packages/7a/50/7fd50a27caa0652cd4caf224aa87741ea41d3265ad13f010886167cfcc79/urllib3-2.2.1.tar.gz"
sha256 "d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"
end

def install
python3 = "python3.12"
venv = virtualenv_create(libexec, python3)
venv.pip_install resources

site_packages = Language::Python.site_packages(python3)
fabric = Formula["fabric"].opt_libexec
(libexec/site_packages/"homebrew-fabric.pth").write fabric/site_packages
resource "wrapt" do
url "https://files.pythonhosted.org/packages/95/4c/063a912e20bcef7124e0df97282a8af3ff3e4b603ce84c481d6d7346be0a/wrapt-1.16.0.tar.gz"
sha256 "5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d"
end

venv.pip_install_and_link buildpath
def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"sail", shells: [:fish, :zsh], shell_parameter_format: :click)
end
Expand Down
5 changes: 1 addition & 4 deletions pypi_formula_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,7 @@
},
"sail": {
"package_name": "sailed-io",
"exclude_packages": [
"certifi", "click", "fabric", "filelock", "invoke", "jinja2",
"markupsafe", "packaging", "pyyaml", "six"
]
"exclude_packages": ["certifi", "cryptography"]
},
"salt-lint": {
"exclude_packages": ["pathspec", "PyYAML"]
Expand Down

0 comments on commit 717e9b4

Please sign in to comment.