Skip to content

Commit eec92d6

Browse files
authored
Merge pull request #250599 from branchvincent/[email protected]
ansible, ansible-lint, molecule: migrate to `[email protected]`
2 parents c1d07a7 + 7c20392 commit eec92d6

File tree

3 files changed

+47
-36
lines changed

3 files changed

+47
-36
lines changed

Formula/a/ansible-lint.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ class AnsibleLint < Formula
99
revision 1
1010

1111
bottle do
12-
sha256 cellar: :any, arm64_tahoe: "07354a27a18eed9bf6c2595ca9f9fe60f7a4fb28b6af7e54bcbdb8f8dd13e153"
13-
sha256 cellar: :any, arm64_sequoia: "fe33c4769e065742edc894889b55571e7b782d31618fcee087a061a5265998e0"
14-
sha256 cellar: :any, arm64_sonoma: "f0df4bf7be3c08ea6f3289e88a38643dbf5f06233b05d22ca2b3eabd7c81e7c0"
15-
sha256 cellar: :any, sonoma: "5e199fd09e3844a8556407212cc02edfb31cceef5060d088ee6ff34a2c4dc5dd"
16-
sha256 cellar: :any_skip_relocation, arm64_linux: "8500da32043460560f8bed3e9e6537759fd01c363ac63367cc783b2c46de334c"
17-
sha256 cellar: :any_skip_relocation, x86_64_linux: "868c643e5c7c555eb9688a50eeff340a922533dc1f684883f9cf2487f2316df4"
12+
rebuild 1
13+
sha256 cellar: :any, arm64_tahoe: "588d745eacc428a1e9562f38ed73dd479c77e25779bafa6af917f16812caf47c"
14+
sha256 cellar: :any, arm64_sequoia: "be944be788f49247b06db4ccb56cd0838774b0a32dccfb41e3bf6d0e4c862aea"
15+
sha256 cellar: :any, arm64_sonoma: "7dad98c12817547cbd9bfb55d0e5f630348b9f81c0621d47e26115e8bd62c3be"
16+
sha256 cellar: :any, sonoma: "06b2ef1cda00e25e3b7631bac74ca4b8c6e502fa9760ca85d5d5192b4c3c02c6"
17+
sha256 cellar: :any_skip_relocation, arm64_linux: "ee283e791843ded4fbb7c187b5651500c8df1969b2cc445c276d5031da6acbf7"
18+
sha256 cellar: :any_skip_relocation, x86_64_linux: "32c8082feffc08c8ed1cd066b0d4208ace1f78f382be640d6ea5346c1a4cb08f"
1819
end
1920

2021
depends_on "pkgconf" => :build
2122
depends_on "ansible" => :test
2223
depends_on "cryptography" => :no_linkage
2324
depends_on "libyaml"
24-
depends_on "python@3.13" # cannot use py3.14 due to bcrypt v5+ issue for ansible
25+
depends_on "python@3.14"
2526
depends_on "rpds-py" => :no_linkage
2627

2728
pypi_packages exclude_packages: ["cryptography", "rpds-py"]

Formula/a/ansible.rb

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ class Ansible < Formula
99
head "https://github.com/ansible/ansible.git", branch: "devel"
1010

1111
bottle do
12-
sha256 cellar: :any, arm64_tahoe: "4df254059fee6ee70cfcdaf5f39711ac79cf9ed37b8a7cfef5e4973f19f38e45"
13-
sha256 cellar: :any, arm64_sequoia: "a75f3bd37d9c75ab47d3686c838ee877814eb678ae4d26d8c9c225bbcf7778c5"
14-
sha256 cellar: :any, arm64_sonoma: "ae55994b08b26e9214e86fcde79c11c731e19f63dce34d17705b2c4b525fc143"
15-
sha256 cellar: :any, sonoma: "f5cabac6b32842c48596fb174b06df48fc9c41bb62d7e2c89d885415a882f30e"
16-
sha256 cellar: :any_skip_relocation, arm64_linux: "a2115c4d65b912f0e7776be604869d15c531e16ebef37d8741a48ed31c5a597f"
17-
sha256 cellar: :any_skip_relocation, x86_64_linux: "ca1b2779ba622a9ecbaad6aacf682404a32ffef8930a1901df06468272ed875a"
12+
rebuild 1
13+
sha256 cellar: :any, arm64_tahoe: "cc16bbe89bbabb08a53bcebe2e447adc2154bd003428aa717d9e7d4b420d8865"
14+
sha256 cellar: :any, arm64_sequoia: "4146688d02670b1bd5234902df9e8b8cbd2064790d92437e6712a1116f3398f6"
15+
sha256 cellar: :any, arm64_sonoma: "9f681233f36458e5ef39296c0782fd72e042729e53533aefa679edcf6a66582c"
16+
sha256 cellar: :any, sonoma: "37bbe665f86050eacf683781b29a2ad8b88f6a5c242f1524df444bd289954483"
17+
sha256 cellar: :any_skip_relocation, arm64_linux: "752dc3be865a7326cf08193b6d72b410bd8fa9fe7d2e4cad60860a814edb8e9e"
18+
sha256 cellar: :any_skip_relocation, x86_64_linux: "9b4e400522527c80761b1181c62dd2c8a0de30808632b1f06fd45f5088c1a5a7"
1819
end
1920

2021
# `pkgconf` and `rust` are for bcrypt
@@ -25,17 +26,16 @@ class Ansible < Formula
2526
depends_on "libsodium" # for pynacl
2627
depends_on "libssh"
2728
depends_on "libyaml"
28-
depends_on "python@3.13" # needs bcrypt v5+ foro py3.14
29+
depends_on "python@3.14"
2930
depends_on "tree" # for ansible-role-init
3031

3132
uses_from_macos "krb5"
3233
uses_from_macos "libxml2", since: :ventura
3334
uses_from_macos "libxslt"
3435
uses_from_macos "openldap" # for python-ldap
3536

36-
# passlib doesn't work with bcrypt v5+: https://github.com/ansible/ansible/issues/85919
3737
pypi_packages exclude_packages: %w[certifi cryptography gnureadline],
38-
extra_packages: %w[ansible-pylibssh apache-libcloud bcrypt<5 boto3 dnspython docker
38+
extra_packages: %w[ansible-pylibssh apache-libcloud boto3 dnspython docker
3939
fqdn junos-eznc jxmlease kerberos ntc-templates openshift
4040
passlib pexpect proxmoxer pynetbox pysphere3 python-consul
4141
python-ldap python-neutronclient pytz pywinrm requests-credssp
@@ -76,8 +76,8 @@ class Ansible < Formula
7676
end
7777

7878
resource "bcrypt" do
79-
url "https://files.pythonhosted.org/packages/bb/5d/6d7433e0f3cd46ce0b43cd65e1db465ea024dbb8216fb2404e919c2ad77b/bcrypt-4.3.0.tar.gz"
80-
sha256 "3a3fd2204178b6d2adcf09cb4f6426ffef54762577a7c9b54c159008cb288c18"
79+
url "https://files.pythonhosted.org/packages/d4/36/3329e2518d70ad8e2e5817d5a4cac6bba05a47767ec416c7d020a965f408/bcrypt-5.0.0.tar.gz"
80+
sha256 "f748f7c2d6fd375cc93d3fba7ef4a9e3a092421b8dbf34d8d4dc06be9492dfdd"
8181
end
8282

8383
resource "boto3" do
@@ -323,6 +323,11 @@ class Ansible < Formula
323323
resource "passlib" do
324324
url "https://files.pythonhosted.org/packages/b6/06/9da9ee59a67fae7761aab3ccc84fa4f3f33f125b370f1ccdb915bf967c11/passlib-1.7.4.tar.gz"
325325
sha256 "defd50f72b65c5402ab2c573830a6978e5f202ad0d984793c8dde2c4152ebe04"
326+
327+
# bcrypt no longer truncates long passwords: https://github.com/pyca/bcrypt/commit/d50ab05b2bece07d5c8d6a4179064fc714fd9126
328+
# And breaks unmaintained passlib: https://foss.heptapod.net/python-libs/passlib/-/issues/196
329+
# See also https://github.com/ansible/ansible/issues/85919
330+
patch :DATA
326331
end
327332

328333
resource "pbr" do
@@ -638,3 +643,17 @@ def install
638643
end
639644
end
640645
end
646+
647+
__END__
648+
diff --git a/passlib/handlers/bcrypt.py b/passlib/handlers/bcrypt.py
649+
--- a/passlib/handlers/bcrypt.py
650+
+++ b/passlib/handlers/bcrypt.py
651+
@@ -644,7 +644,7 @@
652+
config = self._get_config(ident)
653+
if isinstance(config, str):
654+
config = config.encode("ascii")
655+
- hash = _bcrypt.hashpw(secret, config)
656+
+ hash = _bcrypt.hashpw(secret[:72], config)
657+
assert isinstance(hash, bytes)
658+
if not hash.startswith(config) or len(hash) != len(config)+31:
659+
raise uh.exc.CryptBackendError(self, config, hash, source="`bcrypt` package")

Formula/m/molecule.rb

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ class Molecule < Formula
88
license "MIT"
99

1010
bottle do
11-
sha256 cellar: :any, arm64_tahoe: "696240463635bc5b968243ebd2e71b42ee11c3f5aefb88d8426e4ea9e85342da"
12-
sha256 cellar: :any, arm64_sequoia: "fc5de0e3ae7fef837b36df41c649cc13dbd00a0cb591e8041341a135451d3abd"
13-
sha256 cellar: :any, arm64_sonoma: "8a03d5017e0e1abd95b5ea4956eddc283f030d94f9af2cfdeba310d8ad3a18a4"
14-
sha256 cellar: :any, sonoma: "0b30eca96f81ee2514878393c1a350bff3007cc4294dd0cbd89e4e56a428d467"
15-
sha256 cellar: :any_skip_relocation, arm64_linux: "7c2886e049eee0c98993e3142ad9838e1da0c00bcebfd5ca86c1cca202ade2a3"
16-
sha256 cellar: :any_skip_relocation, x86_64_linux: "990a120b934393943143c80d2d55a162fac37345ab3894163d026e0cf789f681"
11+
rebuild 1
12+
sha256 cellar: :any, arm64_tahoe: "3496cb6d30037033158224f1f7cf92d484650dc0f9cc0e829f3abfd7c6e28856"
13+
sha256 cellar: :any, arm64_sequoia: "844e30ba078a1a5b262fbd303d0842320c5df77f6255586acfe176f4d13fc96d"
14+
sha256 cellar: :any, arm64_sonoma: "1f67fa4e8ae2626bf6a56598a4ea44edb80d5f338dfe5c29efed52d7d248147c"
15+
sha256 cellar: :any, sonoma: "c11b6605a432abde1d674d278a84180bca6beccdf27424a1a75c358d91a58e51"
16+
sha256 cellar: :any_skip_relocation, arm64_linux: "d09508ef53bf9a23450241bd2a41353e03613d8bc38bc2d9fe6addfe1867942c"
17+
sha256 cellar: :any_skip_relocation, x86_64_linux: "41cc0c6451573682ebf14062e6347883dadaf2fbd0523214a2be556da0a1f107"
1718
end
1819

1920
depends_on "ansible"
2021
depends_on "certifi" => :no_linkage
2122
depends_on "cryptography" => :no_linkage
2223
depends_on "libyaml"
23-
depends_on "python@3.13"
24+
depends_on "python@3.14"
2425
depends_on "rpds-py" => :no_linkage
2526

2627
uses_from_macos "libffi"
@@ -77,11 +78,6 @@ class Molecule < Formula
7778
sha256 "65f266143752f734b0a7cc83c46f4618af75b8c5911b00ccb61d0ac9b6da0360"
7879
end
7980

80-
resource "distro" do
81-
url "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz"
82-
sha256 "2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"
83-
end
84-
8581
resource "docker" do
8682
url "https://files.pythonhosted.org/packages/91/9b/4a2ea29aeba62471211598dac5d96825bb49348fa07e906ea930394a83ce/docker-7.1.0.tar.gz"
8783
sha256 "ad8c70e6e3f8926cb8a92619b832b4ea5299e2831c14284663184e200546fa6c"
@@ -257,11 +253,6 @@ class Molecule < Formula
257253
sha256 "e7bdbfdb5497da4c07dfd35530e1a902659db6ff241e39d9953cad06ebd0ae75"
258254
end
259255

260-
resource "selinux" do
261-
url "https://files.pythonhosted.org/packages/25/07/51acd62e1e15e1172d46f7e32faf138725b147f8c08dbf2d512159d7a310/selinux-0.3.0.tar.gz"
262-
sha256 "2a88b337ac46ad0f06f557b2806c3df62421972f766673dd8bf26732fb75a9ea"
263-
end
264-
265256
resource "setuptools" do
266257
url "https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz"
267258
sha256 "f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c"
@@ -293,7 +284,7 @@ class Molecule < Formula
293284
end
294285

295286
def python3
296-
"python3.13"
287+
"python3.14"
297288
end
298289

299290
def install

0 commit comments

Comments
 (0)