diff --git a/internal/rosa/all.go b/internal/rosa/all.go index ffbdde85..dc50fcee 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -139,12 +139,14 @@ const ( PythonPyTest PythonPyYAML PythonPygments + PythonSetuptools + PythonSetuptoolsSCM + PythonVCSVersioning QEMU Rdfind Readline Rsync Sed - Setuptools SPIRVHeaders SPIRVTools SquashfsTools diff --git a/internal/rosa/meson.go b/internal/rosa/meson.go index 163a0deb..cb735e55 100644 --- a/internal/rosa/meson.go +++ b/internal/rosa/meson.go @@ -44,7 +44,7 @@ python3 ./run_project_tests.py \ --backend=ninja `, }, - Setuptools, + PythonSetuptools, PkgConfig, CMake, Ninja, diff --git a/internal/rosa/python.go b/internal/rosa/python.go index 7eefb8e4..f8f753a9 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -244,7 +244,7 @@ func init() { version = "82.0.1" checksum = "nznP46Tj539yqswtOrIM4nQgwLA1h-ApKX7z7ghazROCpyF5swtQGwsZoI93wkhc" ) - artifactsM[Setuptools] = newPythonPackage( + artifactsM[PythonSetuptools] = newPythonPackage( "setuptools", 4021, "the autotools of the Python ecosystem", "https://pypi.org/project/setuptools/", @@ -256,6 +256,54 @@ func init() { }, nil) } +func init() { + const ( + version = "1.1.1" + checksum = "rXZixTsZcRcIoUC1LvWrjySsiXSv5uhW6ng2P-yXZrbdj7FrSrDeJLCfC2b-ladV" + ) + artifactsM[PythonVCSVersioning] = newPythonPackage( + "vcs-versioning", 389421, + "core VCS versioning functionality extracted as a standalone library", + "https://setuptools-scm.readthedocs.io/en/latest/", + version, newFromGitHub( + "pypa/setuptools-scm", + "vcs-versioning-v"+version, checksum, + ), &PackageAttr{ + Env: []string{ + "SETUPTOOLS_SCM_PRETEND_VERSION=" + version, + }, + }, &PipHelper{ + Append: []string{"vcs-versioning"}, + }, nil, + PythonSetuptools, + PythonPackaging, + ) +} + +func init() { + const ( + version = "10.0.5" + checksum = "vTN_TPd-b4Wbsw5WmAcsWjrs-FNXXznOeVTDnb54NtXve9Oy-eb2HPy-RG3FzNqp" + ) + artifactsM[PythonSetuptoolsSCM] = newPythonPackage( + "setuptools-scm", 7874, + "extracts Python package versions from Git or Mercurial metadata", + "https://setuptools-scm.readthedocs.io/en/latest/", + version, newFromGitHub( + "pypa/setuptools-scm", + "setuptools-scm-v"+version, checksum, + ), &PackageAttr{ + Env: []string{ + "SETUPTOOLS_SCM_PRETEND_VERSION=" + version, + }, + }, &PipHelper{ + Append: []string{"setuptools-scm"}, + }, nil, + PythonSetuptools, + PythonVCSVersioning, + ) +} + func init() { const ( version = "3.12.0"