diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-05-11 12:45:01 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-05-11 13:03:16 +0200 |
commit | 4ba39be3fb5029da026cf61ab8457db454d6f2a5 (patch) | |
tree | ca3383549010c45827191e129e8dbc8c97401ceb /dev-python/pillow | |
parent | dev-python/priority: Enable py3.13 (diff) | |
download | gentoo-4ba39be3fb5029da026cf61ab8457db454d6f2a5.tar.gz gentoo-4ba39be3fb5029da026cf61ab8457db454d6f2a5.tar.bz2 gentoo-4ba39be3fb5029da026cf61ab8457db454d6f2a5.zip |
dev-python/pillow: Enable py3.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pillow')
-rw-r--r-- | dev-python/pillow/files/pillow-10.3.0-py313.patch | 23 | ||||
-rw-r--r-- | dev-python/pillow/pillow-10.3.0.ebuild | 4 |
2 files changed, 26 insertions, 1 deletions
diff --git a/dev-python/pillow/files/pillow-10.3.0-py313.patch b/dev-python/pillow/files/pillow-10.3.0-py313.patch new file mode 100644 index 000000000000..1574d6be3cef --- /dev/null +++ b/dev-python/pillow/files/pillow-10.3.0-py313.patch @@ -0,0 +1,23 @@ +From 57399ce204d79c74c80612c622bb788e20d786e8 Mon Sep 17 00:00:00 2001 +From: Andrew Murray <radarhere@users.noreply.github.com> +Date: Fri, 10 May 2024 22:43:56 +1000 +Subject: [PATCH] Parse _version contents instead of using exec() + +--- + setup.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 7d8e1c1ee21..abdd87ea252 100644 +--- a/setup.py ++++ b/setup.py +@@ -23,8 +23,7 @@ + def get_version(): + version_file = "src/PIL/_version.py" + with open(version_file, encoding="utf-8") as f: +- exec(compile(f.read(), version_file, "exec")) +- return locals()["__version__"] ++ return f.read().split('"')[1] + + + configuration = {} diff --git a/dev-python/pillow/pillow-10.3.0.ebuild b/dev-python/pillow/pillow-10.3.0.ebuild index b9f65bc8e4da..114093e158a5 100644 --- a/dev-python/pillow/pillow-10.3.0.ebuild +++ b/dev-python/pillow/pillow-10.3.0.ebuild @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_EXT=1 # setuptools wrapper DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_COMPAT=( python3_{10..13} pypy3 ) PYTHON_REQ_USE='tk?,threads(+)' inherit distutils-r1 toolchain-funcs virtualx @@ -69,6 +69,8 @@ distutils_enable_tests pytest PATCHES=( # https://github.com/python-pillow/pillow/pull/7634 "${FILESDIR}/${PN}-10.2.0-cross.patch" + # https://github.com/python-pillow/Pillow/pull/8050 + "${FILESDIR}/${P}-py313.patch" ) usepil() { |