commit:     4ea674be4a225ac59c03cc6e2db0584bbc368ae4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 25 03:47:34 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 25 03:47:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ea674be

dev-python/werkzeug: Bump to 3.0.5

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/werkzeug/Manifest              |  1 +
 dev-python/werkzeug/werkzeug-3.0.5.ebuild | 64 +++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/dev-python/werkzeug/Manifest b/dev-python/werkzeug/Manifest
index 2f6e1debcde4..70307cc851f1 100644
--- a/dev-python/werkzeug/Manifest
+++ b/dev-python/werkzeug/Manifest
@@ -1 +1,2 @@
 DIST werkzeug-3.0.4.tar.gz 803966 BLAKE2B 
56e992c61ed977a677ae4ca403adfb335457df2f096eed3589d74f5539282b144e70895e4d403c9fb72621bc145c91315fab0d3ddca5afcc0040c0e582cf05ec
 SHA512 
40ca7a6c54ba5593a854d6fda6c6b0fed08f03aa970ac83c86aa16b434b6f24f204ca425a0fae3f42610ce6e7ff9220224cc927018a7181d673b48b71b848422
+DIST werkzeug-3.0.5.tar.gz 804673 BLAKE2B 
f094c5efe6a38ed74e571aead1c0981594351625a5c93fd17e6cfb4cba8135d08c5222b47ca4aa688436418f0dd6a00b1a7a354f0ee80f0a7607073883ca50ec
 SHA512 
83db714067fcc29339b9fbdd4d20f849d7e4c0ce5f67e222241f3a3948204ff58d2bca97058b6f5e2aaa99328fa5ae5c68d09496f62c8095fa024f2d4532f9d8

diff --git a/dev-python/werkzeug/werkzeug-3.0.5.ebuild 
b/dev-python/werkzeug/werkzeug-3.0.5.ebuild
new file mode 100644
index 000000000000..192a5e46f8aa
--- /dev/null
+++ b/dev-python/werkzeug/werkzeug-3.0.5.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Collection of various utilities for WSGI applications"
+HOMEPAGE="
+       https://palletsprojects.com/p/werkzeug/
+       https://pypi.org/project/Werkzeug/
+       https://github.com/pallets/werkzeug/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+IUSE="test-rust"
+
+RDEPEND="
+       >=dev-python/markupsafe-2.1.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/ephemeral-port-reserve[${PYTHON_USEDEP}]
+               dev-python/pytest-timeout[${PYTHON_USEDEP}]
+               >=dev-python/pytest-xprocess-1[${PYTHON_USEDEP}]
+               >=dev-python/watchdog-2.3[${PYTHON_USEDEP}]
+               test-rust? (
+                       dev-python/cryptography[${PYTHON_USEDEP}]
+               )
+       )
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+       # https://github.com/pallets/werkzeug/issues/2875
+       "${FILESDIR}/${PN}-3.0.2-pytest-xprocess-1.patch"
+)
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # RequestRedirect class started incidentally being tested
+               # with pytest-8, though the test isn't prepared for that
+               # https://github.com/pallets/werkzeug/issues/2845
+               'tests/test_exceptions.py::test_response_body[RequestRedirect]'
+       )
+       if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then
+               EPYTEST_DESELECT+=(
+                       "tests/test_serving.py::test_server[https]"
+                       tests/test_serving.py::test_ssl_dev_cert
+                       tests/test_serving.py::test_ssl_object
+               )
+       fi
+
+       # the default portage tempdir is too long for AF_UNIX sockets
+       local -x TMPDIR=/tmp
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest -p xprocess -p timeout tests
+}

Reply via email to