Skip to content

Commit 7eff471

Browse files
Menno Finlay-Smitsmjs
authored andcommitted
Support Python 3.8 - 3.13
Drop support for 3.7, add 3.12 and 3.13.
1 parent 16495e1 commit 7eff471

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version:
18-
- "3.7"
1918
- "3.8"
2019
- "3.9"
2120
- "3.10"
2221
- "3.11"
22+
- "3.12"
23+
- "3.13"
2324
- "pypy-3.9"
2425
steps:
2526
- uses: actions/checkout@v3

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ library.
55

66
========================= ========================================
77
Current version 3.0.1
8-
Supported Python versions 3.7 - 3.11
8+
Supported Python versions 3.8 - 3.13
99
License New BSD
1010
Project home https://github.com/mjs/imapclient/
1111
PyPI https://pypi.python.org/pypi/IMAPClient

doc/src/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ installed and your user account can sudo to root the following should work::
7070
./tox-all
7171

7272
The script passes any arguments on to tox. For example to run just the tests
73-
just against Python 3.7 do::
73+
just against Python 3.10 do::
7474

75-
./tox-all -e py37
75+
./tox-all -e py310
7676

7777
Writing Unit Tests
7878
------------------

doc/src/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ explains IMAP in detail. Other RFCs also apply to various extensions
3030
to the base protocol. These are referred to in the documentation below
3131
where relevant.
3232

33-
Python versions 3.7 through 3.11 are officially supported.
33+
Python versions 3.8 through 3.13 are officially supported.
3434

3535
Getting Started
3636
---------------

imapclient/testable_imapclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Released subject to the New BSD License
33
# Please see http://en.wikipedia.org/wiki/BSD_licenses
44

5-
from typing import Any, Dict
5+
from typing import Any, Dict, List
66
from unittest.mock import Mock
77

88
from .imapclient import IMAPClient
@@ -31,7 +31,7 @@ def __init__(self, *args: Any, **kwargs: Any):
3131
self.sent = b"" # Accumulates what was given to send()
3232
self.tagged_commands: Dict[Any, Any] = {}
3333
self.untagged_responses: Dict[Any, Any] = {}
34-
self.capabilities = []
34+
self.capabilities: List[str] = []
3535
self._starttls_done = False
3636

3737
def send(self, data: bytes) -> None:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Convenience methods are provided for commonly used functionality.
2828
* Exceptions are raised when errors occur.
2929
30-
Python versions 3.7 through 3.11 are officially supported.
30+
Python versions 3.8 through 3.13 are officially supported.
3131
3232
IMAPClient includes comprehensive units tests and automated
3333
functional tests that can be run against a live IMAP server.
@@ -50,7 +50,7 @@
5050
package_data=dict(imapclient=["examples/*.py"]),
5151
extras_require={"doc": doc_deps},
5252
long_description=desc,
53-
python_requires=">=3.7.0",
53+
python_requires=">=3.8.0",
5454
classifiers=[
5555
"Development Status :: 5 - Production/Stable",
5656
"Intended Audience :: Developers",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
skipsdist = True
33
minversion = 3.0
4-
envlist=py37,py38,py39,py310,py311,black,isort,flake8,mypy,pylint
4+
envlist=py38,py39,py310,py311,py312,py313,black,isort,flake8,mypy,pylint
55

66
[testenv]
77
commands=python -m unittest

0 commit comments

Comments
 (0)