Skip to content

Commit

Permalink
Admin: Support Py 3.13 (#7984)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers authored Aug 15, 2024
1 parent f5df94a commit 856ded1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12" ]
python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12", "3.13.0-rc.1" ]

steps:
- uses: actions/checkout@v4
Expand All @@ -30,6 +30,11 @@ jobs:
if: ${{ steps.pip-cache.outputs.cache-hit != 'true' }}
run: |
python -m pip install --upgrade pip
- name: Install XML dependencies
if: ${{ matrix.python-version == '3.13.0-rc.1' }}
run: |
echo "The libxml dependency needs these system packages to compile in Python 3.13"
sudo apt install -y libxml2-dev libxslt-dev
- name: Install project dependencies
if: ${{ steps.pip-cache.outputs.cache-hit != 'true' }}
run: |
Expand All @@ -42,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13.0-rc.1"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_decoratormode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13.0-rc.1"]

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion moto/ses/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ def send_raw_email(
f"Did not have authority to send from email {source}"
)

fieldvalues = [message.get(header, "") for header in ["TO", "CC", "BCC"]]
fieldvalues = [
message[header] for header in ["TO", "CC", "BCC"] if header in message
]
destinations += [
formataddr((realname, email_address))
for realname, email_address in getaddresses(fieldvalues)
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers =
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
License :: OSI Approved :: Apache Software License
Topic :: Software Development :: Testing
keywords = aws ec2 s3 boto3 mock
Expand Down

0 comments on commit 856ded1

Please sign in to comment.