Skip to content

Commit 2a6d897

Browse files
clintonsteinerp-linnane
authored andcommitted
pulp-cli 0.35.0 (new formula)
pulp-cli: update dependencies and test Signed-off-by: Patrick Linnane <[email protected]>
1 parent 45256b1 commit 2a6d897

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

Formula/p/pulp-cli.rb

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
class PulpCli < Formula
2+
include Language::Python::Virtualenv
3+
4+
desc "Command-line interface for Pulp 3"
5+
homepage "https://github.com/pulp/pulp-cli"
6+
url "https://files.pythonhosted.org/packages/03/f4/dd18d423d9759949fdbb45b43f96540ac3e909b56fa94d83401e4aa8e15f/pulp-cli-0.35.0.tar.gz"
7+
sha256 "b4214a87795b61765513f5a42537f7183b67064e5e744f4cbfbe5cdf2b01828a"
8+
license "GPL-2.0-or-later"
9+
10+
depends_on "certifi"
11+
depends_on "libyaml"
12+
depends_on "[email protected]"
13+
14+
resource "charset-normalizer" do
15+
url "https://files.pythonhosted.org/packages/e4/33/89c2ced2b67d1c2a61c19c6751aa8902d46ce3dacb23600a283619f5a12d/charset_normalizer-3.4.2.tar.gz"
16+
sha256 "5baececa9ecba31eff645232d59845c07aa030f0c81ee70184a90d35099a0e63"
17+
end
18+
19+
resource "click" do
20+
url "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz"
21+
sha256 "27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202"
22+
end
23+
24+
resource "idna" do
25+
url "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz"
26+
sha256 "12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"
27+
end
28+
29+
resource "multidict" do
30+
url "https://files.pythonhosted.org/packages/3d/2c/5dad12e82fbdf7470f29bff2171484bf07cb3b16ada60a6589af8f376440/multidict-6.6.3.tar.gz"
31+
sha256 "798a9eb12dab0a6c2e29c1de6f3468af5cb2da6053a20dfa3344907eed0937cc"
32+
end
33+
34+
resource "packaging" do
35+
url "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz"
36+
sha256 "d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f"
37+
end
38+
39+
resource "pulp-glue" do
40+
url "https://files.pythonhosted.org/packages/8c/ab/ca246483b2ca017303617cd6e41510407320157fe2e0e9f269706a7dd628/pulp-glue-0.35.0.tar.gz"
41+
sha256 "4cef1b333765501c61f16f76f8c5a6b47bbc80f5c7ad9344a351b7a000c609bf"
42+
end
43+
44+
resource "pyyaml" do
45+
url "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz"
46+
sha256 "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"
47+
end
48+
49+
resource "requests" do
50+
url "https://files.pythonhosted.org/packages/e1/0a/929373653770d8a0d7ea76c37de6e41f11eb07559b103b1c02cafb3f7cf8/requests-2.32.4.tar.gz"
51+
sha256 "27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422"
52+
end
53+
54+
resource "schema" do
55+
url "https://files.pythonhosted.org/packages/d4/01/0ea2e66bad2f13271e93b729c653747614784d3ebde219679e41ccdceecd/schema-0.7.7.tar.gz"
56+
sha256 "7da553abd2958a19dc2547c388cde53398b39196175a9be59ea1caf5ab0a1807"
57+
end
58+
59+
resource "tomli-w" do
60+
url "https://files.pythonhosted.org/packages/19/75/241269d1da26b624c0d5e110e8149093c759b7a286138f4efd61a60e75fe/tomli_w-1.2.0.tar.gz"
61+
sha256 "2dd14fac5a47c27be9cd4c976af5a12d87fb1f0b4512f81d69cce3b35ae25021"
62+
end
63+
64+
resource "urllib3" do
65+
url "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz"
66+
sha256 "3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760"
67+
end
68+
69+
def install
70+
virtualenv_install_with_resources
71+
end
72+
73+
test do
74+
assert_match version.to_s, shell_output("#{bin}/pulp --version")
75+
76+
(testpath/"config.toml").write <<~TEXT
77+
[cli]
78+
base_url = "https://pulp.dev"
79+
verify_ssl = false
80+
format = "json"
81+
TEXT
82+
83+
output = shell_output("#{bin}/pulp config validate --location #{testpath}/config.toml")
84+
assert_match "valid pulp-cli config", output
85+
end
86+
end

pypi_formula_mappings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,9 @@
714714
"prowler": {
715715
"exclude_packages": ["certifi", "cryptography", "numpy"]
716716
},
717+
"pulp-cli": {
718+
"exclude_packages": ["certifi"]
719+
},
717720
"pwntools": {
718721
"exclude_packages": ["capstone", "certifi", "cryptography"]
719722
},

0 commit comments

Comments
 (0)