From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pillow/files/, dev-python/pillow/
Date: Sat, 11 May 2024 11:05:30 +0000 (UTC) [thread overview]
Message-ID: <1715425396.4ba39be3fb5029da026cf61ab8457db454d6f2a5.mgorny@gentoo> (raw)
commit: 4ba39be3fb5029da026cf61ab8457db454d6f2a5
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 11 10:45:01 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 11 11:03:16 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ba39be3
dev-python/pillow: Enable py3.13
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pillow/files/pillow-10.3.0-py313.patch | 23 +++++++++++++++++++++++
dev-python/pillow/pillow-10.3.0.ebuild | 4 +++-
2 files changed, 26 insertions(+), 1 deletion(-)
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() {
next reply other threads:[~2024-05-11 11:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-11 11:05 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-29 12:24 [gentoo-commits] repo/gentoo:master commit in: dev-python/pillow/files/, dev-python/pillow/ Sam James
2024-11-03 15:43 Michał Górny
2024-06-05 17:00 Michał Górny
2024-01-01 12:30 Michał Górny
2020-01-26 13:33 David Seifert
2019-06-05 11:58 Virgil Dupras
2018-10-01 18:46 Virgil Dupras
2018-09-07 18:46 Virgil Dupras
2018-08-04 19:12 Virgil Dupras
2018-07-27 2:59 Virgil Dupras
2015-10-25 9:24 Justin Lecher
2015-10-02 9:41 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1715425396.4ba39be3fb5029da026cf61ab8457db454d6f2a5.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox