Skip to content

Commit 820005e

Browse files
authored
Merge pull request #251183 from Homebrew/awscli@1-py314
awscli@1: backport support for Python 3.14
2 parents ea9bae6 + a7f214c commit 820005e

File tree

1 file changed

+51
-7
lines changed

1 file changed

+51
-7
lines changed

Formula/a/[email protected]

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ class AwscliAT1 < Formula
1515
end
1616

1717
bottle do
18-
sha256 cellar: :any, arm64_tahoe: "5f296f596784fe18e9a66c83f98db7570711671a56e6bc4607a24a9573393e1c"
19-
sha256 cellar: :any, arm64_sequoia: "9954aa6cf33e5ca9b4c53563ca7afd8dfc9cb00fefd5019f9d7001dbcc6a759f"
20-
sha256 cellar: :any, arm64_sonoma: "b0dabaa44dabd9f6e22e216f56d05f6a403a40447367c7811bc2cf7140ed2bef"
21-
sha256 cellar: :any, sonoma: "d1c19c8f5f940111bdaf8776cf9602a34680eb1f96540fdd9b6055d86637819f"
22-
sha256 cellar: :any_skip_relocation, arm64_linux: "eb6194b5b32a15a520d117d9d3e57671f71fb62bead41556f64e175f5d2689d6"
23-
sha256 cellar: :any_skip_relocation, x86_64_linux: "afc46ec3a63cdad1e91d6402e2bb0facde56cab251d350bf7656950c2b2914b5"
18+
rebuild 1
19+
sha256 cellar: :any, arm64_tahoe: "b38c24950cea605a56ed689e66f8dca1aced519b3ff1bf7b886d06aa84325a1d"
20+
sha256 cellar: :any, arm64_sequoia: "4a95e4c3b2af5266c4f5f087f7c5fd1f6f24a8a0538938bfc9619d4ee8819994"
21+
sha256 cellar: :any, arm64_sonoma: "44bd7267af50a0c2fb26fd8b5f36d4d9f14ce726b9bee5d9d0ec0d565e28cab3"
22+
sha256 cellar: :any, sonoma: "495a4fdb4502e1d220256abf3455c9d96e0729c4cf8b7ba5c986f2c57ec57c00"
23+
sha256 cellar: :any_skip_relocation, arm64_linux: "06709f31a47ffaed78ec78f458f910d1d02306c5e4896df7b09fdc17c1302023"
24+
sha256 cellar: :any_skip_relocation, x86_64_linux: "3e5765a1b7b9391da5a1782147f03ba641c1127d3a74577cfa70c167a5a5ac4a"
2425
end
2526

2627
keg_only :versioned_formula
2728

2829
depends_on "libyaml"
29-
depends_on "python@3.13"
30+
depends_on "python@3.14"
3031

3132
uses_from_macos "mandoc"
3233

@@ -85,6 +86,10 @@ class AwscliAT1 < Formula
8586
sha256 "3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760"
8687
end
8788

89+
# Backport Python 3.14 support without CI changes. Remove next release (1.42.60)
90+
# https://github.com/aws/aws-cli/commit/44e446748504ed5a17df7c41c77c190bcba9fc5a
91+
patch :DATA
92+
8893
def install
8994
virtualenv_install_with_resources
9095
pkgshare.install "awscli/examples"
@@ -113,3 +118,42 @@ def caveats
113118
assert_match "topics", shell_output("#{bin}/aws help")
114119
end
115120
end
121+
122+
__END__
123+
diff --git a/README.rst b/README.rst
124+
index 51cdb7b9969a7092a77aaaa9c5eb0426391f68b5..063798c14912406788d37dd01ebee65be2f79719 100644
125+
--- a/README.rst
126+
+++ b/README.rst
127+
@@ -31,6 +31,7 @@ The aws-cli package works on Python versions:
128+
- 3.11.x and greater
129+
- 3.12.x and greater
130+
- 3.13.x and greater
131+
+- 3.14.x and greater
132+
133+
Notices
134+
~~~~~~~
135+
diff --git a/awscli/arguments.py b/awscli/arguments.py
136+
index 1c621b8657408273e75f6319aeb65811bde7f00e..686253ad0f6a5e9bf2c25ce926290755853408ca 100644
137+
--- a/awscli/arguments.py
138+
+++ b/awscli/arguments.py
139+
@@ -449,7 +449,7 @@ def add_to_parser(self, parser):
140+
cli_name = self.cli_name
141+
parser.add_argument(
142+
cli_name,
143+
- help=self.documentation,
144+
+ help=self.documentation.replace('%', '%%'),
145+
type=self.cli_type,
146+
required=self.required,
147+
)
148+
diff --git a/setup.py b/setup.py
149+
index bccbddab5134d481d7dea38af990f526d41af9ad..1daa35629cf75646d5aa35e085da212a4e15f2c8 100644
150+
--- a/setup.py
151+
+++ b/setup.py
152+
@@ -63,6 +63,7 @@ def find_version(*file_paths):
153+
'Programming Language :: Python :: 3.11',
154+
'Programming Language :: Python :: 3.12',
155+
'Programming Language :: Python :: 3.13',
156+
+ 'Programming Language :: Python :: 3.14',
157+
],
158+
project_urls={
159+
'Source': 'https://github.com/aws/aws-cli',

0 commit comments

Comments
 (0)