2021-09-22 20:23:32 +00:00
|
|
|
class Charmcraft < Formula
|
|
|
|
include Language::Python::Virtualenv
|
|
|
|
|
|
|
|
desc "Tool to build charms and publish them on Charmhub"
|
|
|
|
homepage "https://charmhub.io"
|
|
|
|
url "https://files.pythonhosted.org/packages/0f/31/dc1df23a0ca9b4b19aaf2001dbc3bfcb116bc013ff984b1173ae548e868b/charmcraft-1.3.2.tar.gz"
|
|
|
|
sha256 "6b5e76403abb7aae2e76c578a9d48e0722268c3254a30adda6d50f9bdbfc31e0"
|
|
|
|
license "Apache-2.0"
|
|
|
|
|
2021-10-25 06:26:48 +00:00
|
|
|
bottle do
|
2021-10-27 04:10:16 +00:00
|
|
|
sha256 cellar: :any, arm64_monterey: "e181dfb988120e0b6137df270705b62f77e21504c2dec2d9640ab948656b4971"
|
|
|
|
sha256 cellar: :any, arm64_big_sur: "9502496e2a35c39a3507a3ec48f29b9af26b77795106b324d3143e64d38960d0"
|
|
|
|
sha256 cellar: :any, monterey: "1d46637d1e497fad45dd33a3cc7a49b43708e3fe165ced622a110feb3051bbf8"
|
|
|
|
sha256 cellar: :any, big_sur: "b0bdae0a375ef13d35d2d6360d28ef66b6275f5c8d6f43ac3d5f506fca1b547f"
|
|
|
|
sha256 cellar: :any, catalina: "c01277314c572b103653eac0ee8108f0ec6e2632ec38b9242487e2411f60707b"
|
|
|
|
sha256 cellar: :any, mojave: "ebe7aac3dcfa401762faaf339a28e64bb5fb277a7d96bbcfb72bdccde603067b"
|
|
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "30991933579a2a5aac98d21361a13c2205cdf0bf65635052d3f621df25e6c3f2"
|
2021-10-25 06:26:48 +00:00
|
|
|
end
|
|
|
|
|
2021-09-22 20:23:32 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
depends_on "libsodium"
|
|
|
|
depends_on "libyaml"
|
|
|
|
depends_on "python-tabulate"
|
|
|
|
depends_on "python@3.9"
|
|
|
|
depends_on "six"
|
|
|
|
|
|
|
|
resource "appdirs" do
|
|
|
|
url "https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz"
|
|
|
|
sha256 "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "attrs" do
|
|
|
|
url "https://files.pythonhosted.org/packages/ed/d6/3ebca4ca65157c12bd08a63e20ac0bdc21ac7f3694040711f9fd073c0ffb/attrs-21.2.0.tar.gz"
|
|
|
|
sha256 "ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "certifi" do
|
|
|
|
url "https://files.pythonhosted.org/packages/6d/78/f8db8d57f520a54f0b8a438319c342c61c22759d8f9a1cd2e2180b5e5ea9/certifi-2021.5.30.tar.gz"
|
|
|
|
sha256 "2bbf76fd432960138b3ef6dda3dde0544f27cbf8546c458e60baf371917ba9ee"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "cffi" do
|
|
|
|
url "https://files.pythonhosted.org/packages/2e/92/87bb61538d7e60da8a7ec247dc048f7671afe17016cd0008b3b710012804/cffi-1.14.6.tar.gz"
|
|
|
|
sha256 "c9a875ce9d7fe32887784274dd533c57909b7b1dcadcc128a2ac21331a9765dd"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "charset-normalizer" do
|
|
|
|
url "https://files.pythonhosted.org/packages/e7/4e/2af0238001648ded297fb54ceb425ca26faa15b341b4fac5371d3938666e/charset-normalizer-2.0.4.tar.gz"
|
|
|
|
sha256 "f23667ebe1084be45f6ae0538e4a5a865206544097e4e8bbcacf42cd02a348f3"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "craft-parts" do
|
|
|
|
url "https://files.pythonhosted.org/packages/92/29/0e1f1ab7e7ed86db195d5851ebc08ddbc43849dd1f1d3ceda5f8a9bfac10/craft-parts-1.0.3.tar.gz"
|
|
|
|
sha256 "a1ac1014c2d408955ebd851ceee776bfd5c87e2143678ed82b22301832cdccbf"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "craft-providers" do
|
|
|
|
url "https://files.pythonhosted.org/packages/53/1e/8fd1513c39312225f5a5bb13552965ebd4d090df255c4279aef64fc32b2c/craft-providers-1.0.3.tar.gz"
|
|
|
|
sha256 "f9bcdd58515a28f0f4049cd200ef9ac3e9f311609403be356fe3c40b128a5d36"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "humanize" do
|
|
|
|
url "https://files.pythonhosted.org/packages/a6/d0/e06993724937f2aab3e7085d137d453968aaac0f74661ef9c90528a79d61/humanize-3.11.0.tar.gz"
|
|
|
|
sha256 "4160cdc63fcd0daac27d2e1e218a31bb396fc3fe5712d153675d89432a03778f"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "idna" do
|
|
|
|
url "https://files.pythonhosted.org/packages/cb/38/4c4d00ddfa48abe616d7e572e02a04273603db446975ab46bbcd36552005/idna-3.2.tar.gz"
|
|
|
|
sha256 "467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "Jinja2" do
|
|
|
|
url "https://files.pythonhosted.org/packages/39/11/8076571afd97303dfeb6e466f27187ca4970918d4b36d5326725514d3ed3/Jinja2-3.0.1.tar.gz"
|
|
|
|
sha256 "703f484b47a6af502e743c9122595cc812b0271f661722403114f71a79d0f5a4"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "jsonschema" do
|
|
|
|
url "https://files.pythonhosted.org/packages/69/11/a69e2a3c01b324a77d3a7c0570faa372e8448b666300c4117a516f8b1212/jsonschema-3.2.0.tar.gz"
|
|
|
|
sha256 "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "macaroonbakery" do
|
|
|
|
url "https://files.pythonhosted.org/packages/52/40/2a8bb2f507ce1a6c5b896c1b98044d74d34b07a6dd771526b4fe84e3181f/macaroonbakery-1.3.1.tar.gz"
|
|
|
|
sha256 "23f38415341a1d04a155b4dac6730d3ad5f39b86ce07b1bb134bdda52b48b053"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "MarkupSafe" do
|
|
|
|
url "https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.tar.gz"
|
|
|
|
sha256 "594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "packaging" do
|
|
|
|
url "https://files.pythonhosted.org/packages/df/86/aef78bab3afd461faecf9955a6501c4999933a48394e90f03cd512aad844/packaging-21.0.tar.gz"
|
|
|
|
sha256 "7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "progressbar" do
|
|
|
|
url "https://files.pythonhosted.org/packages/a3/a6/b8e451f6cff1c99b4747a2f7235aa904d2d49e8e1464e0b798272aa84358/progressbar-2.5.tar.gz"
|
|
|
|
sha256 "5d81cb529da2e223b53962afd6c8ca0f05c6670e40309a7219eacc36af9b6c63"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "protobuf" do
|
|
|
|
url "https://files.pythonhosted.org/packages/3d/64/a3b379cb9c7827ad33c67dcda4c4ad117bdef1b7d68b22a05c963cf4727d/protobuf-3.17.3.tar.gz"
|
|
|
|
sha256 "72804ea5eaa9c22a090d2803813e280fb273b62d5ae497aaf3553d141c4fdd7b"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pycparser" do
|
|
|
|
url "https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz"
|
|
|
|
sha256 "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pydantic" do
|
|
|
|
url "https://files.pythonhosted.org/packages/b9/d2/12a808613937a6b98cd50d6467352f01322dc0d8ca9fb5b94441625d6684/pydantic-1.8.2.tar.gz"
|
|
|
|
sha256 "26464e57ccaafe72b7ad156fdaa4e9b9ef051f69e175dbbb463283000c05ab7b"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pydantic-yaml" do
|
|
|
|
url "https://files.pythonhosted.org/packages/ea/00/2edd28831e5daa1fa04b9f250b1162d18dd5eeab8259c503a04b50675a5d/pydantic_yaml-0.4.2.tar.gz"
|
|
|
|
sha256 "5e64570beea13fd73dd688a246f5c9725f705bf3d6ddb74578f7758b5d44f096"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pymacaroons" do
|
|
|
|
url "https://files.pythonhosted.org/packages/37/b4/52ff00b59e91c4817ca60210c33caf11e85a7f68f7b361748ca2eb50923e/pymacaroons-0.13.0.tar.gz"
|
|
|
|
sha256 "1e6bba42a5f66c245adf38a5a4006a99dcc06a0703786ea636098667d42903b8"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "PyNaCl" do
|
|
|
|
url "https://files.pythonhosted.org/packages/cf/5a/25aeb636baeceab15c8e57e66b8aa930c011ec1c035f284170cacb05025e/PyNaCl-1.4.0.tar.gz"
|
|
|
|
sha256 "54e9a2c849c742006516ad56a88f5c74bf2ce92c9f67435187c3c5953b346505"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pyparsing" do
|
|
|
|
url "https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz"
|
|
|
|
sha256 "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pyRFC3339" do
|
|
|
|
url "https://files.pythonhosted.org/packages/00/52/75ea0ae249ba885c9429e421b4f94bc154df68484847f1ac164287d978d7/pyRFC3339-1.1.tar.gz"
|
|
|
|
sha256 "81b8cbe1519cdb79bed04910dd6fa4e181faf8c88dff1e1b987b5f7ab23a5b1a"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pyrsistent" do
|
|
|
|
url "https://files.pythonhosted.org/packages/f4/d7/0fa558c4fb00f15aabc6d42d365fcca7a15fcc1091cd0f5784a14f390b7f/pyrsistent-0.18.0.tar.gz"
|
|
|
|
sha256 "773c781216f8c2900b42a7b638d5b517bb134ae1acbebe4d1e8f1f41ea60eb4b"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "python-dateutil" do
|
|
|
|
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
|
|
|
|
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pytz" do
|
|
|
|
url "https://files.pythonhosted.org/packages/b0/61/eddc6eb2c682ea6fd97a7e1018a6294be80dba08fa28e7a3570148b4612d/pytz-2021.1.tar.gz"
|
|
|
|
sha256 "83a4a90894bf38e243cf052c8b58f381bfe9a7a483f6a9cab140bc7f702ac4da"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pyxdg" do
|
|
|
|
url "https://files.pythonhosted.org/packages/6f/2e/2251b5ae2f003d865beef79c8fcd517e907ed6a69f58c32403cec3eba9b2/pyxdg-0.27.tar.gz"
|
|
|
|
sha256 "80bd93aae5ed82435f20462ea0208fb198d8eec262e831ee06ce9ddb6b91c5a5"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "PyYAML" do
|
|
|
|
url "https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz"
|
|
|
|
sha256 "607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "requests" do
|
|
|
|
url "https://files.pythonhosted.org/packages/e7/01/3569e0b535fb2e4a6c384bdbed00c55b9d78b5084e0fb7f4d0bf523d7670/requests-2.26.0.tar.gz"
|
|
|
|
sha256 "b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "requests-toolbelt" do
|
|
|
|
url "https://files.pythonhosted.org/packages/28/30/7bf7e5071081f761766d46820e52f4b16c8a08fef02d2eb4682ca7534310/requests-toolbelt-0.9.1.tar.gz"
|
|
|
|
sha256 "968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "requests-unixsocket" do
|
|
|
|
url "https://files.pythonhosted.org/packages/4d/ce/78b651fe0adbd4227578fa432d1bde03b4f4945a70c81e252a2b6a2d895f/requests-unixsocket-0.2.0.tar.gz"
|
|
|
|
sha256 "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "semver" do
|
|
|
|
url "https://files.pythonhosted.org/packages/31/a9/b61190916030ee9af83de342e101f192bbb436c59be20a4cb0cdb7256ece/semver-2.13.0.tar.gz"
|
|
|
|
sha256 "fa0fe2722ee1c3f57eac478820c3a5ae2f624af8264cbdf9000c980ff7f75e3f"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "snap-helpers" do
|
|
|
|
url "https://files.pythonhosted.org/packages/54/a4/7f11eb8d96826cfe17c4c68b907f8005d97ad1ef23dea67aa3d39287f6d7/snap-helpers-0.2.0.tar.gz"
|
|
|
|
sha256 "e72c810af32a0126bfcb7d5c39dda5ca2037889ca2fe2ee5aa543a25b9ca670b"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "typing-extensions" do
|
|
|
|
url "https://files.pythonhosted.org/packages/aa/55/62e2d4934c282a60b4243a950c9dbfa01ae7cac0e8d6c0b5315b87432c81/typing_extensions-3.10.0.0.tar.gz"
|
|
|
|
sha256 "50b6f157849174217d0656f99dc82fe932884fb250826c18350e159ec6cdf342"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "urllib3" do
|
|
|
|
url "https://files.pythonhosted.org/packages/4f/5a/597ef5911cb8919efe4d86206aa8b2658616d676a7088f0825ca08bd7cb8/urllib3-1.26.6.tar.gz"
|
|
|
|
sha256 "f57b4c16c62fa2760b7e3d97c35b255512fb6b59a259730f36ba32ce9f8e342f"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
virtualenv_install_with_resources
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"charmcraft", "version"
|
|
|
|
system bin/"charmcraft", "help"
|
|
|
|
system bin/"charmcraft", "init", "--author", "Foo Bar", "-p", testpath/"charm"
|
|
|
|
assert_predicate testpath/"charm/charmcraft.yaml", :exist?
|
|
|
|
end
|
|
|
|
end
|