From e8f6db38b6d298827025249b5c959c4d589c9796 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 19 Apr 2026 23:17:38 +0900 Subject: [PATCH] internal/rosa/python: install pytest from source Used by many python packages. Signed-off-by: Ophestra --- internal/rosa/python.go | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/internal/rosa/python.go b/internal/rosa/python.go index 754c68c1..9fbace8b 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -449,17 +449,30 @@ func init() { } func init() { - artifactsM[PythonPyTest] = newPypi( + const ( + version = "9.0.3" + checksum = "qfLL_znWhbJCDbNJvrx9H3-orJ86z4ifhaW0bIn21jl2sDP-FVoX_1yieOypArQe" + ) + artifactsM[PythonPyTest] = newPythonPackage( "pytest", 3765, "the pytest framework", - "9.0.3", "py3", "none", "any", - "57WLrIVOfyoRDjt5qD6LGOaDcDCtzQnKDSTUb7GzHyJDtry_nGHHs4-0tW0tiIJr", + "https://pytest.org", + version, newFromGitHub( + "pytest-dev/pytest", + version, checksum, + ), &PackageAttr{ + Env: []string{ + "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST=" + version, + }, + }, nil, P{PythonSetuptoolsSCM}, PythonIniConfig, PythonPackaging, PythonPluggy, PythonPygments, ) +} +func init() { artifactsM[PythonMarkupSafe] = newPypi( "markupsafe", 3918, "implements a text object that escapes characters so it is safe to use in HTML and XML",