Skip to content

Commit c8afce9

Browse files
committed
awscli@1: backport support for Python 3.14
1 parent dc6db63 commit c8afce9

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

Formula/a/[email protected]

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AwscliAT1 < Formula
2626
keg_only :versioned_formula
2727

2828
depends_on "libyaml"
29-
depends_on "python@3.13"
29+
depends_on "python@3.14"
3030

3131
uses_from_macos "mandoc"
3232

@@ -85,6 +85,10 @@ class AwscliAT1 < Formula
8585
sha256 "3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760"
8686
end
8787

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

0 commit comments

Comments
 (0)