osmith has uploaded this change for review.

View Change

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/…/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/…/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

To view, visit change 42517. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I0484627fd105627fabe9435379e704db54e72ae3
Gerrit-Change-Number: 42517
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>