mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/virtualenv: Port to py39
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
27
dev-python/virtualenv/files/virtualenv-20.0.21-py39.patch
Normal file
27
dev-python/virtualenv/files/virtualenv-20.0.21-py39.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
From a8717bf6ac3375d7f26738189c32e3bae04d280a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= <bgabor8@bloomberg.net>
|
||||
Date: Fri, 22 May 2020 12:41:32 +0100
|
||||
Subject: [PATCH] Add 3.9 on Linux to the test suite (#1839)
|
||||
|
||||
---
|
||||
azure-pipelines.yml | 10 ++++++----
|
||||
setup.cfg | 3 ++-
|
||||
tests/integration/test_zipapp.py | 2 ++
|
||||
tests/unit/activation/test_xonsh.py | 3 +++
|
||||
tests/unit/discovery/test_py_spec.py | 2 ++
|
||||
tox.ini | 2 +-
|
||||
6 files changed, 16 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/tests/unit/discovery/test_py_spec.py b/tests/unit/discovery/test_py_spec.py
|
||||
index 445412773..52154f14c 100644
|
||||
--- a/tests/unit/discovery/test_py_spec.py
|
||||
+++ b/tests/unit/discovery/test_py_spec.py
|
||||
@@ -95,6 +95,8 @@ def _version_not_satisfies_pairs():
|
||||
for o in [1, -1]:
|
||||
temp = copy(sat_ver)
|
||||
temp[patch] += o
|
||||
+ if temp[patch] < 0:
|
||||
+ continue
|
||||
sat = ".".join(str(i) for i in temp)
|
||||
target.add((req, sat))
|
||||
return sorted(target)
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
|
||||
PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
|
||||
DISTUTILS_USE_SETUPTOOLS=manual
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
|
||||
PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
|
||||
DISTUTILS_USE_SETUPTOOLS=manual
|
||||
|
||||
inherit distutils-r1
|
||||
@@ -58,6 +58,10 @@ distutils_enable_sphinx docs \
|
||||
dev-python/towncrier
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-py39.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# we don't have xonsh
|
||||
rm tests/unit/activation/test_xonsh.py || die
|
||||
|
||||
Reference in New Issue
Block a user