dev-python/virtualenv-clone: fix tests on python3_{11,12}

See: https://github.com/edwardgeorge/virtualenv-clone/pull/79
Bug: https://bugs.gentoo.org/918079
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/34903
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Matoro Mahri 2024-01-19 11:52:53 -05:00 committed by Michał Górny
parent 23ad4d7b02
commit 122f0d9495
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,28 @@
https://bugs.gentoo.org/918079
https://github.com/edwardgeorge/virtualenv-clone/pull/79
From 028494ee84cf4626aab291c621b2b9ec23f8688a Mon Sep 17 00:00:00 2001
From: matoro <matoro@users.noreply.github.com>
Date: Mon, 18 Dec 2023 18:18:17 -0500
Subject: [PATCH] Support Python 3.11, 3.12
---
.travis.yml | 2 ++
setup.py | 2 ++
tests/__init__.py | 2 +-
tox.ini | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/__init__.py b/tests/__init__.py
index c9a52ca..14648f4 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -8,7 +8,7 @@
tmplocation = tempfile.mkdtemp()
venv_path = os.path.realpath(os.path.join(tmplocation,'srs_venv'))
clone_path = os.path.realpath(os.path.join(tmplocation,'clone_venv'))
-versions = ['2.7', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
+versions = ['2.7', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
def clean():
if os.path.exists(tmplocation): shutil.rmtree(tmplocation)

View File

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -28,4 +28,6 @@ BDEPEND="
)
"
PATCHES=( "${FILESDIR}/${PN}-0.5.7-backport-pr79.patch" )
distutils_enable_tests pytest