mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
Merge updates from master
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -37,6 +37,12 @@ BDEPEND="
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
|
||||
PATCHES=(
|
||||
# Update for dj-database-url == 2.2.0
|
||||
# https://github.com/jazzband/django-configurations/issues/387
|
||||
"${FILESDIR}/${P}-test.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
local -x DJANGO_SETTINGS_MODULE=tests.settings.main
|
||||
local -x DJANGO_CONFIGURATION=Test
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git a/tests/test_values.py b/tests/test_values.py
|
||||
index 55478e6..0b37907 100644
|
||||
--- a/tests/test_values.py
|
||||
+++ b/tests/test_values.py
|
||||
@@ -377,6 +377,7 @@ class ValueTests(TestCase):
|
||||
'default': {
|
||||
'CONN_HEALTH_CHECKS': False,
|
||||
'CONN_MAX_AGE': 0,
|
||||
+ 'DISABLE_SERVER_SIDE_CURSORS': False,
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'HOST': '',
|
||||
'NAME': ':memory:',
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
PYTHON_REQ_USE='sqlite?,threads(+)'
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 multiprocessing optfeature verify-sig
|
||||
@@ -57,6 +57,8 @@ BDEPEND="
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/django-4.0-bashcomp.patch
|
||||
"${WORKDIR}"/django-5.0-pypy3.patch
|
||||
# https://github.com/django/django/commit/3426a5c33c36266af42128ee9eca4921e68ea876
|
||||
"${FILESDIR}"/django-5.0.6-py313.patch
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs --no-autodoc
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
From 3426a5c33c36266af42128ee9eca4921e68ea876 Mon Sep 17 00:00:00 2001
|
||||
From: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
||||
Date: Tue, 20 Feb 2024 20:59:26 +0100
|
||||
Subject: [PATCH] Refs #34900 -- Fixed
|
||||
CommandTypes.test_help_default_options_with_custom_arguments test on Python
|
||||
3.13+.
|
||||
|
||||
https://github.com/python/cpython/commit/c4a2e8a2c5188c3288d57b80852e92c83f46f6f3
|
||||
---
|
||||
django/utils/version.py | 1 +
|
||||
tests/admin_scripts/tests.py | 15 +++++++++++----
|
||||
2 files changed, 12 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/django/utils/version.py b/django/utils/version.py
|
||||
index ecd41dac897ab..6f8171ffe0cfe 100644
|
||||
--- a/django/utils/version.py
|
||||
+++ b/django/utils/version.py
|
||||
@@ -20,6 +20,7 @@
|
||||
PY310 = sys.version_info >= (3, 10)
|
||||
PY311 = sys.version_info >= (3, 11)
|
||||
PY312 = sys.version_info >= (3, 12)
|
||||
+PY313 = sys.version_info >= (3, 13)
|
||||
|
||||
|
||||
def get_version(version=None):
|
||||
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
|
||||
index 50e8d4a3b1eda..688aaa0a2f8de 100644
|
||||
--- a/tests/admin_scripts/tests.py
|
||||
+++ b/tests/admin_scripts/tests.py
|
||||
@@ -33,6 +33,7 @@
|
||||
from django.test import LiveServerTestCase, SimpleTestCase, TestCase, override_settings
|
||||
from django.test.utils import captured_stderr, captured_stdout
|
||||
from django.urls import path
|
||||
+from django.utils.version import PY313
|
||||
from django.views.static import serve
|
||||
|
||||
from . import urls
|
||||
@@ -1901,10 +1902,16 @@ def test_help_default_options_with_custom_arguments(self):
|
||||
]
|
||||
for option in expected_options:
|
||||
self.assertOutput(out, f"[{option}]")
|
||||
- self.assertOutput(out, "--option_a OPTION_A, -a OPTION_A")
|
||||
- self.assertOutput(out, "--option_b OPTION_B, -b OPTION_B")
|
||||
- self.assertOutput(out, "--option_c OPTION_C, -c OPTION_C")
|
||||
- self.assertOutput(out, "-v {0,1,2,3}, --verbosity {0,1,2,3}")
|
||||
+ if PY313:
|
||||
+ self.assertOutput(out, "--option_a, -a OPTION_A")
|
||||
+ self.assertOutput(out, "--option_b, -b OPTION_B")
|
||||
+ self.assertOutput(out, "--option_c, -c OPTION_C")
|
||||
+ self.assertOutput(out, "-v, --verbosity {0,1,2,3}")
|
||||
+ else:
|
||||
+ self.assertOutput(out, "--option_a OPTION_A, -a OPTION_A")
|
||||
+ self.assertOutput(out, "--option_b OPTION_B, -b OPTION_B")
|
||||
+ self.assertOutput(out, "--option_c OPTION_C, -c OPTION_C")
|
||||
+ self.assertOutput(out, "-v {0,1,2,3}, --verbosity {0,1,2,3}")
|
||||
|
||||
def test_color_style(self):
|
||||
style = color.no_style()
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -20,8 +20,8 @@ SRC_URI="
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pytest-7.0.0[${PYTHON_USEDEP}]
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} pypy3 )
|
||||
PYTHON_TESTED=( python3_{10..12} pypy3 )
|
||||
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_13 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} pypy3 )
|
||||
PYTHON_COMPAT=( python3_{10..13} pypy3 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -23,7 +23,9 @@ RDEPEND="
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/twisted[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/twisted[${PYTHON_USEDEP}]
|
||||
' 3.{10..12})
|
||||
)
|
||||
"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -24,7 +24,9 @@ BDEPEND="
|
||||
dev-python/django[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-django[${PYTHON_USEDEP}]
|
||||
>=dev-python/sybil-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-18[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/twisted-18[${PYTHON_USEDEP}]
|
||||
' 3.{10..12})
|
||||
sys-libs/timezone-data
|
||||
)
|
||||
"
|
||||
@@ -42,6 +44,20 @@ python_test() {
|
||||
testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_missing
|
||||
testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_present
|
||||
)
|
||||
case ${EPYTHON} in
|
||||
python3.13)
|
||||
EPYTEST_DESELECT+=(
|
||||
# changed exception message
|
||||
testfixtures/tests/test_replace.py::TestReplaceWithInterestingOriginsNotStrict::test_invalid_attribute_on_instance_of_slotted_cl
|
||||
)
|
||||
esac
|
||||
|
||||
local EPYTEST_IGNORE=()
|
||||
if ! has_version "dev-python/twisted[${PYTHON_USEDEP}]"; then
|
||||
EPYTEST_IGNORE+=(
|
||||
testfixtures/tests/test_twisted.py
|
||||
)
|
||||
fi
|
||||
|
||||
epytest
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -39,6 +39,18 @@ BDEPEND="
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# exception tests are broken with trio-0.25
|
||||
# https://github.com/python-trio/trio-websocket/issues/187
|
||||
tests/test_connection.py::test_handshake_exception_before_accept
|
||||
tests/test_connection.py::test_reject_handshake
|
||||
tests/test_connection.py::test_reject_handshake_invalid_info_status
|
||||
tests/test_connection.py::test_client_open_timeout
|
||||
tests/test_connection.py::test_client_close_timeout
|
||||
tests/test_connection.py::test_client_connect_networking_error
|
||||
tests/test_connection.py::test_finalization_dropped_exception
|
||||
)
|
||||
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest -p trio
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user