Skip to content

Commit db774ee

Browse files
committed
Add support for Python 3.10
1 parent 92933b8 commit db774ee

File tree

3 files changed

+26
-23
lines changed

3 files changed

+26
-23
lines changed

docs/installation.rst

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,29 @@ Python Support
1515

1616
Pillow supports these Python versions.
1717

18-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
19-
| **Python** |**3.9**|**3.8**|**3.7**|**3.6**|**3.5**|**3.4**|**3.3**|**3.2**|**2.7**|**2.6**|**2.5**|**2.4**|
20-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
21-
| Pillow >= 8.0 | Yes | Yes | Yes | Yes | | | | | | | | |
22-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
23-
| Pillow 7.0 - 7.2 | | Yes | Yes | Yes | Yes | | | | | | | |
24-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
25-
| Pillow 6.2.1 - 6.2.2 | | Yes | Yes | Yes | Yes | | | | Yes | | | |
26-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
27-
| Pillow 6.0 - 6.2.0 | | | Yes | Yes | Yes | | | | Yes | | | |
28-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
29-
| Pillow 5.2 - 5.4 | | | Yes | Yes | Yes | Yes | | | Yes | | | |
30-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
31-
| Pillow 5.0 - 5.1 | | | | Yes | Yes | Yes | | | Yes | | | |
32-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
33-
| Pillow 4 | | | | Yes | Yes | Yes | Yes | | Yes | | | |
34-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
35-
| Pillow 2 - 3 | | | | | Yes | Yes | Yes | Yes | Yes | Yes | | |
36-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
37-
| Pillow < 2 | | | | | | | | | Yes | Yes | Yes | Yes |
38-
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
18+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
19+
| Python |3.10 | 3.9 | 3.8 | 3.7 | 3.6 | 3.5 | 3.4 | 3.3 | 3.2 | 2.7 | 2.6 | 2.5 | 2.4 |
20+
+======================+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+
21+
| Pillow >= 8.3 | Yes | Yes | Yes | Yes | Yes | | | | | | | | |
22+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
23+
| Pillow 8.0 - 8.2 | | Yes | Yes | Yes | Yes | | | | | | | | |
24+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
25+
| Pillow 7.0 - 7.2 | | | Yes | Yes | Yes | Yes | | | | | | | |
26+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
27+
| Pillow 6.2.1 - 6.2.2 | | | Yes | Yes | Yes | Yes | | | | Yes | | | |
28+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
29+
| Pillow 6.0 - 6.2.0 | | | | Yes | Yes | Yes | | | | Yes | | | |
30+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
31+
| Pillow 5.2 - 5.4 | | | | Yes | Yes | Yes | Yes | | | Yes | | | |
32+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
33+
| Pillow 5.0 - 5.1 | | | | | Yes | Yes | Yes | | | Yes | | | |
34+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
35+
| Pillow 4 | | | | | Yes | Yes | Yes | Yes | | Yes | | | |
36+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
37+
| Pillow 2 - 3 | | | | | | Yes | Yes | Yes | Yes | Yes | Yes | | |
38+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
39+
| Pillow < 2 | | | | | | | | | | Yes | Yes | Yes | Yes |
40+
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
3941

4042
Basic Installation
4143
------------------

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_version():
3939
ZLIB_ROOT = None
4040
FUZZING_BUILD = "LIB_FUZZING_ENGINE" in os.environ
4141

42-
if sys.platform == "win32" and sys.version_info >= (3, 10):
42+
if sys.platform == "win32" and sys.version_info >= (3, 11):
4343
import atexit
4444

4545
atexit.register(
@@ -1002,6 +1002,7 @@ def debug_build():
10021002
"Programming Language :: Python :: 3.7",
10031003
"Programming Language :: Python :: 3.8",
10041004
"Programming Language :: Python :: 3.9",
1005+
"Programming Language :: Python :: 3.10",
10051006
"Programming Language :: Python :: 3 :: Only",
10061007
"Programming Language :: Python :: Implementation :: CPython",
10071008
"Programming Language :: Python :: Implementation :: PyPy",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[tox]
77
envlist =
88
lint
9-
py{36,37,38,39,py3}
9+
py{36,37,38,39,310,py3}
1010
minversion = 1.9
1111

1212
[testenv]

0 commit comments

Comments
 (0)