Add support for Python 3.10

This commit is contained in:
Hugo van Kemenade 2021-07-01 12:40:25 +03:00
parent 92933b8657
commit db774eeaa7
3 changed files with 26 additions and 23 deletions

View File

@ -15,27 +15,29 @@ Python Support
Pillow supports these Python versions. Pillow supports these Python versions.
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| **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**| | 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 |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +======================+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+
| Pillow >= 8.0 | Yes | Yes | Yes | Yes | | | | | | | | | | Pillow >= 8.3 | Yes | Yes | Yes | Yes | Yes | | | | | | | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow 7.0 - 7.2 | | Yes | Yes | Yes | Yes | | | | | | | | | Pillow 8.0 - 8.2 | | Yes | Yes | Yes | Yes | | | | | | | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow 6.2.1 - 6.2.2 | | Yes | Yes | Yes | Yes | | | | Yes | | | | | Pillow 7.0 - 7.2 | | | Yes | Yes | Yes | Yes | | | | | | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow 6.0 - 6.2.0 | | | Yes | Yes | Yes | | | | Yes | | | | | Pillow 6.2.1 - 6.2.2 | | | Yes | Yes | Yes | Yes | | | | Yes | | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow 5.2 - 5.4 | | | Yes | Yes | Yes | Yes | | | Yes | | | | | Pillow 6.0 - 6.2.0 | | | | Yes | Yes | Yes | | | | Yes | | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow 5.0 - 5.1 | | | | Yes | Yes | Yes | | | Yes | | | | | Pillow 5.2 - 5.4 | | | | Yes | Yes | Yes | Yes | | | Yes | | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow 4 | | | | Yes | Yes | Yes | Yes | | Yes | | | | | Pillow 5.0 - 5.1 | | | | | Yes | Yes | Yes | | | Yes | | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow 2 - 3 | | | | | Yes | Yes | Yes | Yes | Yes | Yes | | | | Pillow 4 | | | | | Yes | Yes | Yes | Yes | | Yes | | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow < 2 | | | | | | | | | Yes | Yes | Yes | Yes | | Pillow 2 - 3 | | | | | | Yes | Yes | Yes | Yes | Yes | Yes | | |
+----------------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+ +----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Pillow < 2 | | | | | | | | | | Yes | Yes | Yes | Yes |
+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
Basic Installation Basic Installation
------------------ ------------------

View File

@ -39,7 +39,7 @@ TIFF_ROOT = None
ZLIB_ROOT = None ZLIB_ROOT = None
FUZZING_BUILD = "LIB_FUZZING_ENGINE" in os.environ FUZZING_BUILD = "LIB_FUZZING_ENGINE" in os.environ
if sys.platform == "win32" and sys.version_info >= (3, 10): if sys.platform == "win32" and sys.version_info >= (3, 11):
import atexit import atexit
atexit.register( atexit.register(
@ -1002,6 +1002,7 @@ try:
"Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: Implementation :: PyPy",

View File

@ -6,7 +6,7 @@
[tox] [tox]
envlist = envlist =
lint lint
py{36,37,38,39,py3} py{36,37,38,39,310,py3}
minversion = 1.9 minversion = 1.9
[testenv] [testenv]