Skip to content
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
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.15']

steps:
- uses: actions/checkout@v4
Expand All @@ -23,6 +23,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]
description = "A tool that parses emails by enhancing the Python standard library, extracting all details into a comprehensive object."
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.9,<3.15"
requires-python = ">=3.9"
keywords = ["email", "mail", "parser", "security", "forensics", "threat detection", "phishing", "malware", "spam"]
classifiers = [
"Natural Language :: English",
Expand All @@ -19,6 +19,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
authors = [
{ name = "Fedele Mantuano", email = "mantuano.fedele@gmail.com" }
Expand Down
2 changes: 1 addition & 1 deletion src/mailparser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

# The ``strict`` keyword was added to ``email.utils.getaddresses`` in Python
# 3.13 (and backported only to later security patch releases of 3.9-3.12,
# e.g. 3.11.10). mail-parser supports ``requires-python >=3.9,<3.15``, so on
# e.g. 3.11.10). mail-parser supports Python 3.9 and later, so on
# an earlier patch release the keyword is absent and passing it raises
# ``TypeError: getaddresses() got an unexpected keyword argument 'strict'``
# (parsedmarc #808). The signature is fixed for the running interpreter, so
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def test_get_addresses_without_strict_parameter(self):

The ``strict`` parameter was added to ``email.utils.getaddresses`` in
Python 3.13 (and backported only to later security patch releases of
3.9-3.12). mail-parser targets ``requires-python >=3.9,<3.15``, so on
3.9-3.12). mail-parser targets Python 3.9 and later, so on
an earlier patch release (e.g. CPython 3.11.3) the call raised::

TypeError: getaddresses() got an unexpected keyword argument 'strict'
Expand Down
26 changes: 25 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading