Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin: Support Py 3.13 #7984

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading