mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/pylibmc: Enable py3.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
29
dev-python/pylibmc/files/pylibmc-1.6.1-py311.patch
Normal file
29
dev-python/pylibmc/files/pylibmc-1.6.1-py311.patch
Normal 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(
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user