dev-python/pylibmc: Enable py3.11

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-05-22 12:27:58 +02:00
parent 7d0d3093ca
commit aa4df450bf
2 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
From 22854a4ba8f7e926099219c107104723089bcad8 Mon Sep 17 00:00:00 2001
From: Ludvig Ericson <ludvig@lericson.se>
Date: Mon, 29 Jun 2020 14:59:36 +0200
Subject: [PATCH] =?UTF-8?q?2020:=20Do=20not=20pass=20=E2=80=98U=E2=80=99?=
=?UTF-8?q?=20flag=20to=20open?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
setup.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 9bea257..89871ea 100644
--- a/setup.py
+++ b/setup.py
@@ -95,9 +95,9 @@ def append_env(L, e):
s.write(line + "\n")
sys.exit(0)
-with open("README.rst", "U", encoding="utf-8") as r:
+with open("README.rst", encoding="utf-8") as r:
readme_text = r.read()
-with open("src/pylibmc-version.h", "U", encoding="utf-8") as r:
+with open("src/pylibmc-version.h", encoding="utf-8") as r:
version = r.read().strip().split("\"")[1]
setup(

View File

@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..10} pypy3 )
PYTHON_COMPAT=( python3_{8..11} pypy3 )
inherit distutils-r1
@@ -39,6 +39,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}/pylibmc-1.6.1-fix-test-failures-r1.patch"
"${FILESDIR}/pylibmc-1.6.1-py311.patch"
"${DISTDIR}/${P}-no-nose.patch"
)