osmith has uploaded this change for review. ( 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/#license-and-license-files Change-Id: Ia8ef3a0301aeaad4691c197ed780e86b497def4a --- M scripts/obs/lib/srcpkg.py 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/79/41379/1 diff --git a/scripts/obs/lib/srcpkg.py b/scripts/obs/lib/srcpkg.py index 1b31f84..6f15764 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.tml, 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).""" -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/41379?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ia8ef3a0301aeaad4691c197ed780e86b497def4a Gerrit-Change-Number: 41379 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <[email protected]>
