osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/41379?usp=email )
Change subject: OBS: fix building pyosmocom for debian 12 ......................................................................
OBS: fix building pyosmocom for debian 12
Related: pyosmocom I8416234ea02f337fabd075cc345af964c1b71adf Related: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#licens... Change-Id: Ia8ef3a0301aeaad4691c197ed780e86b497def4a --- M scripts/obs/lib/srcpkg.py 1 file changed, 12 insertions(+), 0 deletions(-)
Approvals: Jenkins Builder: Verified osmith: Looks good to me, approved
diff --git a/scripts/obs/lib/srcpkg.py b/scripts/obs/lib/srcpkg.py index 1b31f84..b3e0422 100644 --- a/scripts/obs/lib/srcpkg.py +++ b/scripts/obs/lib/srcpkg.py @@ -147,6 +147,18 @@ lib.run_cmd(["sh", "-e", script], cwd=repo_path)
+def prepare_project_pyosmocom(): + """The format of the license field in pyproject.toml was changed from a + "table" to a a string with an SPDX license expression. The sources have + been adjusted to use the new format to appease a warning ("By 2026-Feb-18, + you need to update your project and remove deprecated calls or your builds + will no longer be supported."). However now the build fails with setuptools + from Debian 12. Remove the license line from pyproject.toml, the debian + packaging has its own license information in debian/copyright.""" + repo_path = lib.git.get_repo_path("pyosmocom") + lib.run_cmd(["sed", "-i", "/^license = /d", "pyproject.toml"], cwd=repo_path) + + def run_generate_build_dep(project): """Run contrib/generate_build_dep.sh if it exists in the given project, to to download sources for dependencies (see e.g. osmo_dia2gsup.git)."""