Skip to content

Commit c33351d

Browse files
Add Python 3.13 to test matrix (#9566)
1 parent d49a7f3 commit c33351d

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

.github/workflows/run-bundle-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
os: [ubuntu-latest, macOS-latest]
1919
steps:
2020
- uses: actions/checkout@v4

.github/workflows/run-dep-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1616
os: [ubuntu-latest, macOS-latest, windows-latest]
1717

1818
steps:

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1616
os: [ubuntu-latest, macOS-latest, windows-latest]
1717

1818
steps:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The list below are guidelines to use when submitting pull requests. These are th
2121
- The SDK is released under the [Apache license](http://aws.amazon.com/apache2.0/). Any code you submit will be released under that license.
2222
- We maintain a high percentage of code coverage in our unit tests. As a general rule of thumb, code changes should not lower the overall code coverage percentage for the project. In practice, this means that **every bug fix and feature addition should include tests.**
2323
- Code should follow [pep8](https://www.python.org/dev/peps/pep-0008/), although if you are modifying an existing module, it is more important for the code to be consistent if there are any discrepancies. Using [`flake8`](https://flake8.pycqa.org/en/latest/) can assist in identifying `pep8` compliance issues.
24-
- Code must work on `python3.7` and higher.
24+
- Code must work on `python3.9` and higher.
2525
- The AWS CLI is cross platform and code must work on at least Linux, Windows, and Mac OS X. Avoid platform specific behavior.
2626
- If you would like to implement support for a significant feature that is not yet available in the AWS CLI, please talk to us beforehand to avoid any duplication of effort. You can file an [issue](https://github.com/aws/aws-cli/issues) to discuss the feature request further.
2727

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exclude = [
4444
line-length = 79
4545
indent-width = 4
4646

47-
target-version = "py38"
47+
target-version = "py39"
4848

4949
[tool.ruff.lint]
5050
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def find_version(*file_paths):
6262
'Programming Language :: Python :: 3.10',
6363
'Programming Language :: Python :: 3.11',
6464
'Programming Language :: Python :: 3.12',
65+
'Programming Language :: Python :: 3.13',
6566
],
6667
project_urls={
6768
'Source': 'https://github.com/aws/aws-cli',

tests/unit/customizations/cloudformation/test_artifact_exporter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ def test_export_serverless_application_no_upload_path_is_dictionary(self):
893893

894894
@mock.patch("awscli.customizations.cloudformation.artifact_exporter.yaml_parse")
895895
def test_template_export_metadata(self, yaml_parse_mock):
896-
parent_dir = os.path.sep
896+
parent_dir = os.path.abspath(os.path.sep)
897897
template_dir = os.path.join(parent_dir, 'foo', 'bar')
898898
template_path = os.path.join(template_dir, 'path')
899899
template_str = self.example_yaml_template()
@@ -953,7 +953,7 @@ def test_template_export_metadata(self, yaml_parse_mock):
953953

954954
@mock.patch("awscli.customizations.cloudformation.artifact_exporter.yaml_parse")
955955
def test_template_export(self, yaml_parse_mock):
956-
parent_dir = os.path.sep
956+
parent_dir = os.path.abspath(os.path.sep)
957957
template_dir = os.path.join(parent_dir, 'foo', 'bar')
958958
template_path = os.path.join(template_dir, 'path')
959959
template_str = self.example_yaml_template()
@@ -1018,7 +1018,7 @@ def test_template_export(self, yaml_parse_mock):
10181018

10191019
@mock.patch("awscli.customizations.cloudformation.artifact_exporter.yaml_parse")
10201020
def test_template_export_foreach_valid(self, yaml_parse_mock):
1021-
parent_dir = os.path.sep
1021+
parent_dir = os.path.abspath(os.path.sep)
10221022
template_dir = os.path.join(parent_dir, 'foo', 'bar')
10231023
template_path = os.path.join(template_dir, 'path')
10241024
template_str = self.example_yaml_template()
@@ -1113,7 +1113,7 @@ def test_template_export_foreach_valid(self, yaml_parse_mock):
11131113

11141114
@mock.patch("awscli.customizations.cloudformation.artifact_exporter.yaml_parse")
11151115
def test_template_export_foreach_invalid(self, yaml_parse_mock):
1116-
parent_dir = os.path.sep
1116+
parent_dir = os.path.abspath(os.path.sep)
11171117
template_dir = os.path.join(parent_dir, 'foo', 'bar')
11181118
template_path = os.path.join(template_dir, 'path')
11191119
template_str = self.example_yaml_template()
@@ -1173,7 +1173,7 @@ def test_template_export_foreach_invalid(self, yaml_parse_mock):
11731173

11741174
@mock.patch("awscli.customizations.cloudformation.artifact_exporter.yaml_parse")
11751175
def test_template_global_export(self, yaml_parse_mock):
1176-
parent_dir = os.path.sep
1176+
parent_dir = os.path.abspath(os.path.sep)
11771177
template_dir = os.path.join(parent_dir, 'foo', 'bar')
11781178
template_path = os.path.join(template_dir, 'path')
11791179
template_str = self.example_yaml_template()

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py39,py310,py311,py312
2+
envlist = py39,py310,py311,py312,py313
33

44
skipsdist = True
55

0 commit comments

Comments
 (0)