aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/python.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-19 23:17:38 +0900
committerOphestra <cat@gensokyo.uk>2026-04-19 23:17:38 +0900
commite8f6db38b6d298827025249b5c959c4d589c9796 (patch)
tree38f486b670de28f03b91fc88c0773af3bcf98d5a /internal/rosa/python.go
parent20d5b71575c9af0c3dd659738e235d5216d10cdd (diff)
internal/rosa/python: install pytest from source
Used by many python packages. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/python.go')
-rw-r--r--internal/rosa/python.go19
1 files 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",