From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/pytest-flask/Manifest | 1 + .../pytest-flask/files/flask-1.3.0-py3.14.patch | 27 ++++++++++++++++++ dev-python/pytest-flask/metadata.xml | 21 ++++++++++++++ dev-python/pytest-flask/pytest-flask-1.3.0.ebuild | 33 ++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 dev-python/pytest-flask/Manifest create mode 100644 dev-python/pytest-flask/files/flask-1.3.0-py3.14.patch create mode 100644 dev-python/pytest-flask/metadata.xml create mode 100644 dev-python/pytest-flask/pytest-flask-1.3.0.ebuild (limited to 'dev-python/pytest-flask') diff --git a/dev-python/pytest-flask/Manifest b/dev-python/pytest-flask/Manifest new file mode 100644 index 000000000000..2812cc719cff --- /dev/null +++ b/dev-python/pytest-flask/Manifest @@ -0,0 +1 @@ +DIST pytest-flask-1.3.0.tar.gz 35816 BLAKE2B 008c7f2acdc320dcab3e1745fb8e546a1f4cbdf75155db85f00bb70aea2eb3efa46d68f39fac114e3ddc3675b45d3d6d9a7bba8eb0c331c36e7f3d08c83c5da0 SHA512 4512e261cf6b284540ea9dda4cade52be57776c16f0cc7185755cbec294e526268753dbe663200a6ab3dee2ac0cc42df080d8f0045f88feac5de115fcc71ac21 diff --git a/dev-python/pytest-flask/files/flask-1.3.0-py3.14.patch b/dev-python/pytest-flask/files/flask-1.3.0-py3.14.patch new file mode 100644 index 000000000000..e5c748b61174 --- /dev/null +++ b/dev-python/pytest-flask/files/flask-1.3.0-py3.14.patch @@ -0,0 +1,27 @@ +From 6cc0d1162f31302cd95fcca49744847da3071672 Mon Sep 17 00:00:00 2001 +From: Alfred Wingate +Date: Sat, 21 Mar 2026 21:01:11 +0200 +Subject: [PATCH] Explicitly use the fork start method on all platforms + +The default has changed away from fork on all platforms in python 3.14. + +See-Also: cfc804776f24c7230627b15bd935e5da5f809db7 +See-Also: https://github.com/python/cpython/issues/84559 +Signed-off-by: Alfred Wingate +--- a/src/pytest_flask/live_server.py ++++ b/src/pytest_flask/live_server.py +@@ -9,9 +9,8 @@ import time + import pytest + + +-# force 'fork' on macOS +-if platform.system() == "Darwin": +- multiprocessing = multiprocessing.get_context("fork") ++# errors on start methods other than "fork". Default changed away from it for MacOS in 3.8 and the rest of the platforms in 3.14. ++multiprocessing = multiprocessing.get_context("fork") # type: ignore[assignment] + + + class LiveServer: # pragma: no cover +-- +2.54.0 + diff --git a/dev-python/pytest-flask/metadata.xml b/dev-python/pytest-flask/metadata.xml new file mode 100644 index 000000000000..7c97556f1ef6 --- /dev/null +++ b/dev-python/pytest-flask/metadata.xml @@ -0,0 +1,21 @@ + + + + + arsen@gentoo.org + Arsen Arsenović + + + stkw0@disroot.org + David Roman + + + proxy-maint@gentoo.org + Proxy Maintainers + + + python@gentoo.org + Python + + baldeagleos-repo + diff --git a/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild b/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild new file mode 100644 index 000000000000..74803228b96f --- /dev/null +++ b/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{13..14} ) +inherit distutils-r1 pypi + +DESCRIPTION="A set of pytest fixtures to test Flask applications" +HOMEPAGE=" + https://pytest-flask.readthedocs.io/ + https://github.com/pytest-dev/pytest-flask/ + https://pypi.org/project/pytest-flask/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64" + +RDEPEND=" + dev-python/flask[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +EPYTEST_PLUGINS=( "${PN}" ) +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/flask-1.3.0-py3.14.patch +) -- cgit v1.3