commit: 00bcf47c44493ea76aa698cd1e98a451f9ea4000
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 29 19:27:17 2023 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 29 19:27:17 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00bcf47c
dev-python/fs: fix most issues for python3.12
This isn't done, but fixes most of the issues, and we are left with
2 failing tests which looks like a real issue. But I still prefer to
push current changes to minimize future work to enable py3.12
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-python/fs/fs-2.4.16.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dev-python/fs/fs-2.4.16.ebuild b/dev-python/fs/fs-2.4.16.ebuild
index 89667905fa83..42594826f09b 100644
--- a/dev-python/fs/fs-2.4.16.ebuild
+++ b/dev-python/fs/fs-2.4.16.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{9..11} )
+PYTHON_COMPAT=( pypy3 python3_{10..11} )
inherit distutils-r1 optfeature pypi
DESCRIPTION="Filesystem abstraction layer"
@@ -40,6 +40,13 @@ EPYTEST_IGNORE=(
tests/test_ftpfs.py
)
+src_prepare() {
+ # fix for python 3.12
+ sed -e 's/self.assertRaisesRegexp/self.assertRaisesRegex/g' -i
fs/test.py || die
+
+ distutils-r1_src_prepare
+}
+
pkg_postinst() {
optfeature "S3 support" dev-python/boto
optfeature "SFTP support" dev-python/paramiko