osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/42517?usp=email )
Change subject: OBS: pyhss_download_deps: fix dependency loop ......................................................................
OBS: pyhss_download_deps: fix dependency loop
Fix that the Osmocom_OBS_nightly job is failing for the pyhss package with a dependency loop in hatchling:
LookupError: https://files.pythonhosted.org/%E2%80%A6/hatchling-1.29.0.tar.gz (from https://pypi.org/simple/hatchling/) (requires-python:>=3.10) is already being built: hatchling>=1.21.0 from https://files.pythonhosted.org/%E2%80%A6/hatchling-1.29.0.tar.gz
This happens as it recursively collects source packages and their (build) dependencies:
pymongo -> dnspython -> hatchling -> pluggy -> setuptools-scm -> vcs-versioning -> hatchling
When only ignoring the hatchling source package, we get a similar dependency loop with pluggy, so ignore both source packages. Hatchling gets added later as binary package and pluggy is only a build-time dependency for hatchling. The resulting PyHSS package builds fine with this change.
Change-Id: I0484627fd105627fabe9435379e704db54e72ae3 --- M scripts/obs/data/pyhss_download_deps.sh 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/17/42517/1
diff --git a/scripts/obs/data/pyhss_download_deps.sh b/scripts/obs/data/pyhss_download_deps.sh index 7dfd5d9..fb71e9a 100644 --- a/scripts/obs/data/pyhss_download_deps.sh +++ b/scripts/obs/data/pyhss_download_deps.sh @@ -63,6 +63,8 @@ pip download \ --dest debian/deps \ --no-binary=:all: \ + --only-binary=hatchling \ + --only-binary=pluggy \ -r "$srcpkgs"
for py_ver in $python_versions; do