From 20d5b71575c9af0c3dd659738e235d5216d10cdd Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 19 Apr 2026 22:53:32 +0900 Subject: [PATCH] internal/rosa/python: install iniconfig from source This also required the setuptools-scm hack. 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 34cabe73..754c68c1 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -429,13 +429,26 @@ func init() { } func init() { - artifactsM[PythonIniConfig] = newPypi( + const ( + version = "2.3.0" + checksum = "mH7VBZaXcYatBPE3RQQZvSzz_Ay8IPPek60NpPHZulPq4ReAFUUsA4EPWfiyMknZ" + ) + artifactsM[PythonIniConfig] = newPythonPackage( "iniconfig", 114778, "a small and simple INI-file parser module", - "2.3.0", "py3", "none", "any", - "SDgs4S5bXi77aVOeKTPv2TUrS3M9rduiK4DpU0hCmDsSBWqnZcWInq9lsx6INxut", + "https://github.com/pytest-dev/iniconfig", + version, newFromGitHub( + "pytest-dev/iniconfig", + "v"+version, checksum, + ), &PackageAttr{ + Env: []string{ + "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_INICONFIG=" + version, + }, + }, nil, P{PythonSetuptoolsSCM}, ) +} +func init() { artifactsM[PythonPyTest] = newPypi( "pytest", 3765, "the pytest framework",