@@ -3,8 +3,8 @@ class SnowflakeCli < Formula
33
44 desc "CLI for snowflake"
55 homepage "https://docs.snowflake.com/developer-guide/snowflake-cli/index"
6- url "https://files.pythonhosted.org/packages/3d/4e/5212fe6c326cc9199284116e5958d5d4c7148c99e40b480f2fda2d73f6ca /snowflake_cli-3.13.1 .tar.gz"
7- sha256 "a671d72758cf5445aad2cf33097a1c338a3aed67fc4c46c6c60123a9a83bd383 "
6+ url "https://files.pythonhosted.org/packages/df/79/30b7d1c12f50888252103dffbcc36901dae4cbdc0bcddcc8d2d0a00d3d34 /snowflake_cli-3.14.0 .tar.gz"
7+ sha256 "126ae3158354b512202bba9dffbcaf32a21e0f442206bbe3f6801ef84d811491 "
88 license "Apache-2.0"
99 head "https://github.com/snowflakedb/snowflake-cli.git" , branch : "main"
1010
@@ -25,22 +25,27 @@ class SnowflakeCli < Formula
2525
2626 conflicts_with "snow" , because : "both install `snow` binaries"
2727
28- pypi_packages exclude_packages : %w[ certifi cryptography pydantic ] ,
29- extra_packages : "snowflake-core"
28+ # Remove `snowflake-snowpark-python` and related dependencies for now,
29+ # some of their dependencies doesn't have sdist and cause build failure
30+ pypi_packages exclude_packages : %w[ certifi cryptography pydantic snowflake-snowpark-python ] ,
31+ extra_packages : %w[ asn1crypto boto3 botocore charset-normalizer filelock idna jeepney
32+ jmespath packaging platformdirs pyjwt pyopenssl python-dateutil
33+ pytz pyyaml requests s3transfer secretstorage setuptools six
34+ snowflake-connector-python sortedcontainers tomlkit urllib3 ]
3035
3136 resource "asn1crypto" do
3237 url "https://files.pythonhosted.org/packages/de/cf/d547feed25b5244fcb9392e288ff9fdc3280b10260362fc45d37a798a6ee/asn1crypto-1.5.1.tar.gz"
3338 sha256 "13ae38502be632115abf8a24cbe5f4da52e3b5231990aff31123c805306ccb9c"
3439 end
3540
3641 resource "boto3" do
37- url "https://files.pythonhosted.org/packages/f0/9b/eef5346ce3148bf4856318fe629e0fd7f6dd73ffd55ea08e316c967f8af0 /boto3-1.42.0 .tar.gz"
38- sha256 "9c67729a6112b7dced521ea70b0369fba138e89852b029a7876041cd1460c084 "
42+ url "https://files.pythonhosted.org/packages/8c/07/dfa651dbd57bfc34d952a101280928bab08ed6186f009c660a36c211ccff /boto3-1.42.9 .tar.gz"
43+ sha256 "cdd4cc3e5bb08ed8a0c5cc77eca78f98f0239521de0991f14e44b788b0c639b2 "
3944 end
4045
4146 resource "botocore" do
42- url "https://files.pythonhosted.org/packages/03/04/8e8ca38631eeb499a1099dcc2a081faaea399f9d46080720540ff54ec609 /botocore-1.41.6 .tar.gz"
43- sha256 "08fe47e9b306f4436f5eaf6a02cb6d55c7745d13d2d093ce5d917d3ef3d3df75 "
47+ url "https://files.pythonhosted.org/packages/fd/f3/2d2cfb500e2dc00b0e33e3c8743306e6330f3cf219d19e9260dab2f3d6c2 /botocore-1.42.9 .tar.gz"
48+ sha256 "74f69bfd116cc7c8215481284957eecdb48580e071dd50cb8c64356a866abd8c "
4449 end
4550
4651 resource "charset-normalizer" do
@@ -94,10 +99,8 @@ class SnowflakeCli < Formula
9499 end
95100
96101 resource "jeepney" do
97- on_linux do
98- url "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz"
99- sha256 "cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732"
100- end
102+ url "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz"
103+ sha256 "cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732"
101104 end
102105
103106 resource "jinja2" do
@@ -141,8 +144,8 @@ class SnowflakeCli < Formula
141144 end
142145
143146 resource "platformdirs" do
144- url "https://files.pythonhosted.org/packages/61/33/9611380c2bdb1225fdef633e2a9610622310fed35ab11dac9620972ee088 /platformdirs-4.5.0 .tar.gz"
145- sha256 "70ddccdd7c99fc5942e9fc25636a8b34d04c24b335100223152c2803e4063312 "
147+ url "https://files.pythonhosted.org/packages/cf/86/0248f086a84f01b37aaec0fa567b397df1a119f73c16f6c7a9aac73ea309 /platformdirs-4.5.1 .tar.gz"
148+ sha256 "61d5cdcc6065745cdd94f0f878977f8de9437be93de97c1c12f853c9c0cdcbda "
146149 end
147150
148151 resource "pluggy" do
@@ -265,22 +268,9 @@ class SnowflakeCli < Formula
265268 sha256 "4d478375d31bc5395a3c55c40ccdf3354688364cd61c4f6adacaa9215d0b3605"
266269 end
267270
268- resource "jeepney" do
269- on_linux do
270- url "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz"
271- sha256 "cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732"
272- end
273- end
274-
275- resource "secretstorage" do
276- on_linux do
277- url "https://files.pythonhosted.org/packages/31/9f/11ef35cf1027c1339552ea7bfe6aaa74a8516d8b5caf6e7d338daf54fd80/secretstorage-3.4.0.tar.gz"
278- sha256 "c46e216d6815aff8a8a18706a2fbfd8d53fcbb0dce99301881687a1b0289ef7c"
279- end
280- end
281-
282271 def install
283- virtualenv_install_with_resources
272+ without = %w[ jeepney secretstorage ] unless OS . linux?
273+ virtualenv_install_with_resources ( without :)
284274 # `shellingham` auto-detection doesn't work in Homebrew CI build environment so
285275 # disable it to allow `typer` to use argument as shell for completions
286276 # Ref: https://typer.tiangolo.com/features/#user-friendly-cli-apps
0 commit comments