Skip to content
Open
Changes from all commits
Commits
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
35 changes: 20 additions & 15 deletions Formula/c/charmcraft.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

desc "Tool to build charms and publish them on Charmhub"
homepage "https://charmhub.io"
url "https://files.pythonhosted.org/packages/48/e7/0528770d02d99ab1d840b69131fba020294e84da734e18fb8f41735fdc63/charmcraft-3.5.3.tar.gz"
sha256 "9e3e10af1cb707d3e054a79e328bffd42eb70721255b9e7715fcb66a8c87cf8f"
url "https://files.pythonhosted.org/packages/1f/87/affb45be165e3f5097aa3e2e7c4d7713ec2f83e639bd2250da828eed804f/charmcraft-4.0.1.tar.gz"
sha256 "6613c89edf7ea489d9db4093ba77668d47a804b9b31755a9930d5d31aab4a007"
license "Apache-2.0"

bottle do
Expand All @@ -23,7 +23,7 @@
depends_on "libsodium"
depends_on "libyaml"
depends_on "pygit2" => :no_linkage
depends_on "python@3.14"
depends_on "python@3.13" # craft-cli not yet compatible with py3.14, https://github.com/canonical/craft-cli/issues/360
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly it's probably for the best if you keep this in sync with the snap, since that's where charmcraft is most widely tested. That would mean Python 3.12 until we upgrade the snap to the core26 base sometime next year (at which point it would be 3.14).

depends_on "rpds-py" => :no_linkage

uses_from_macos "libxml2", since: :ventura
Expand All @@ -50,13 +50,13 @@
end

resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/83/2d/5fd176ceb9b2fc619e63405525573493ca23441330fcdaee6bef9460e924/charset_normalizer-3.4.3.tar.gz"
sha256 "6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14"
url "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz"
sha256 "94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"
end

resource "craft-application" do
url "https://files.pythonhosted.org/packages/86/86/20bac2f1a4e45097c01040328ff8ffd5313533d03231db08435559c684c3/craft_application-4.10.0.tar.gz"
sha256 "7a9cda0e854877fb80464e03274e69b97540a618e0c53cbc500b6fce25b9b8c4"
url "https://files.pythonhosted.org/packages/36/6b/ad381b017a0715432791ddea24245cc6b3a5eba0c472890a794ac7918321/craft_application-5.11.0.tar.gz"
sha256 "4435f5db3e4313acd3c0d03f029f13ce73f4ae2eff0e2f94e0d4301742372479"
end

resource "craft-archives" do
Expand Down Expand Up @@ -99,6 +99,11 @@
sha256 "2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"
end

resource "distro-support" do
url "https://files.pythonhosted.org/packages/90/c8/40cf2bdb5647c0ccad40a02edde6966d03a3258c550d92a2030427867029/distro_support-2025.8.13.tar.gz"
sha256 "12a73039db0a04e4b987789598f05c554adb3b2ec8e97bc28f40a125dc82d982"
end

resource "docker" do
url "https://files.pythonhosted.org/packages/91/9b/4a2ea29aeba62471211598dac5d96825bb49348fa07e906ea930394a83ce/docker-7.1.0.tar.gz"
sha256 "ad8c70e6e3f8926cb8a92619b832b4ea5299e2831c14284663184e200546fa6c"
Expand All @@ -125,8 +130,8 @@
end

resource "humanize" do
url "https://files.pythonhosted.org/packages/98/1d/3062fcc89ee05a715c0b9bfe6490c00c576314f27ffee3a704122c6fd259/humanize-4.13.0.tar.gz"
sha256 "78f79e68f76f0b04d711c4e55d32bebef5be387148862cb1ef83d2b58e7935a0"
url "https://files.pythonhosted.org/packages/b6/43/50033d25ad96a7f3845f40999b4778f753c3901a11808a584fed7c00d9f5/humanize-4.14.0.tar.gz"
sha256 "2fa092705ea640d605c435b1ca82b2866a1b601cdf96f076d70b79a855eba90d"
end

resource "idna" do
Expand Down Expand Up @@ -235,18 +240,18 @@
end

resource "protobuf" do
url "https://files.pythonhosted.org/packages/fa/a4/cc17347aa2897568beece2e674674359f911d6fe21b0b8d6268cd42727ac/protobuf-6.32.1.tar.gz"
sha256 "ee2469e4a021474ab9baafea6cd070e5bf27c7d29433504ddea1a4ee5850f68d"
url "https://files.pythonhosted.org/packages/19/ff/64a6c8f420818bb873713988ca5492cba3a7946be57e027ac63495157d97/protobuf-6.33.0.tar.gz"
sha256 "140303d5c8d2037730c548f8c7b93b20bb1dc301be280c378b82b8894589c954"
end

resource "pydantic" do
url "https://files.pythonhosted.org/packages/3c/a7/d0d7b3c128948ece6676a6a21b9036e3ca53765d35052dbcc8c303886a44/pydantic-2.12.1.tar.gz"
sha256 "0af849d00e1879199babd468ec9db13b956f6608e9250500c1a9d69b6a62824e"
url "https://files.pythonhosted.org/packages/8d/35/d319ed522433215526689bad428a94058b6dd12190ce7ddd78618ac14b28/pydantic-2.12.2.tar.gz"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise it would be preferable to keep these external dependencies in sync with the uv.lock file in the main repo

sha256 "7b8fa15b831a4bbde9d5b84028641ac3080a4ca2cbd4a621a661687e741624fd"
end

resource "pydantic-core" do
url "https://files.pythonhosted.org/packages/00/e9/3916abb671bffb00845408c604ff03480dc8dc273310d8268547a37be0fb/pydantic_core-2.41.3.tar.gz"
sha256 "cdebb34b36ad05e8d77b4e797ad38a2a775c2a07a8fa386d4f6943b7778dcd39"
url "https://files.pythonhosted.org/packages/df/18/d0944e8eaaa3efd0a91b0f1fc537d3be55ad35091b6a87638211ba691964/pydantic_core-2.41.4.tar.gz"
sha256 "70e47929a9d4a1905a67e4b687d5946026390568a8e952b92824118063cee4d5"
end

resource "pylxd" do
Expand Down Expand Up @@ -388,7 +393,7 @@
virtualenv_install_with_resources
end

test do

Check failure on line 396 in Formula/c/charmcraft.rb

View workflow job for this annotation

GitHub Actions / Linux x86_64

`brew test --verbose charmcraft` failed on Linux x86_64!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin/bundle ==> Testing charmcraft ==> /home/linuxbrew/.linuxbrew/Cellar/charmcraft/4.0.1/bin/charmcraft version charmcraft internal error: PermissionError(13, 'Permission denied') Full execution log: '/var/tmp/charmcraft-test-20251017-35931-ej7w/.local/state/charmcraft/log/charmcraft-20251017-153846.549139.log' ::error::charmcraft: failed An exception occurred within a child process: BuildError: Failed executing: /home/linuxbrew/.linuxbrew/Cellar/charmcraft/4.0.1/bin/charmcraft version /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3195:in 'block in Formula#system' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3131:in 'IO.open' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3131:in 'Formula#system' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/_methods.rb:259:in 'block in Formula#_on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/c/charmcraft.rb:391:in 'block in <class:Charmcraft>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2923:in 'block (3 levels) in Formula#run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:303:in 'Kernel#with_env' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/_methods.rb:259:in 'block in Kernel#_on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2922:in 'block (2 levels) in Formula#run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1280:in 'Formula#with_logging' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/_methods.rb:259:in 'block in Formula#_on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2921:in 'block in Formula#run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:92:in 'block in Mktemp#run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:92:in 'Dir.chdir' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:92:in 'Mktemp#run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/_methods.rb:259:in 'block in Mktemp#_on_method_added' /home/linu

Check failure on line 396 in Formula/c/charmcraft.rb

View workflow job for this annotation

GitHub Actions / Linux arm64

`brew test --verbose charmcraft` failed on Linux arm64!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin/bundle ==> Testing charmcraft ==> /home/linuxbrew/.linuxbrew/Cellar/charmcraft/4.0.1/bin/charmcraft version charmcraft internal error: PermissionError(13, 'Permission denied') Full execution log: '/var/tmp/charmcraft-test-20251017-35901-62nfnh/.local/state/charmcraft/log/charmcraft-20251017-153549.700596.log' ::error::charmcraft: failed An exception occurred within a child process: BuildError: Failed executing: /home/linuxbrew/.linuxbrew/Cellar/charmcraft/4.0.1/bin/charmcraft version /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3195:in 'block in Formula#system' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3131:in 'IO.open' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3131:in 'Formula#system' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/_methods.rb:259:in 'block in Formula#_on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/c/charmcraft.rb:391:in 'block in <class:Charmcraft>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2923:in 'block (3 levels) in Formula#run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:303:in 'Kernel#with_env' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/_methods.rb:259:in 'block in Kernel#_on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2922:in 'block (2 levels) in Formula#run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1280:in 'Formula#with_logging' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/_methods.rb:259:in 'block in Formula#_on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2921:in 'block in Formula#run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:92:in 'block in Mktemp#run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:92:in 'Dir.chdir' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:92:in 'Mktemp#run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12649/lib/types/private/methods/_methods.rb:259:in 'block in Mktemp#_on_method_added' /home/li
system bin/"charmcraft", "version"
system bin/"charmcraft", "help"
system bin/"charmcraft", "init", "--author", "Foo Bar", "-p", testpath/"charm"
Expand Down
Loading