diff --git a/debian/control b/debian/control index ed0b7a2..f08c2a1 100644 --- a/debian/control +++ b/debian/control @@ -1,26 +1,32 @@ Source: swh-scheduler Maintainer: Software Heritage developers Section: python Priority: optional Build-Depends: debhelper (>= 9), dh-python (>= 2), python3-all, python3-arrow, python3-celery, python3-click, python3-elasticsearch (>= 5.4.0), python3-flask, python3-hypothesis, python3-kombu, python3-nose, python3-psycopg2, python3-setuptools, python3-swh.core (>= 0.0.40~), python3-vcversioner Standards-Version: 3.9.6 Homepage: https://forge.softwareheritage.org/diffusion/DSCH/ Package: python3-swh.scheduler Architecture: all Depends: python3-swh.core (>= 0.0.40~), ${misc:Depends}, ${python3:Depends} Description: Software Heritage Scheduler + +Package: python3-swh.scheduler.updater +Architecture: all +Depends: python3-swh.scheduler (= ${binary:Version}), + ${misc:Depends}, ${python3:Depends} +Description: Software Heritage Scheduler Updater diff --git a/debian/rules b/debian/rules index d5e8b00..1fe0e24 100755 --- a/debian/rules +++ b/debian/rules @@ -1,11 +1,17 @@ #!/usr/bin/make -f export PYBUILD_NAME=swh.scheduler export PYBUILD_TEST_ARGS=-sv -a !db,!fs %: dh $@ --with python3 --buildsystem=pybuild override_dh_install: dh_install rm -v $(CURDIR)/debian/python3-*/usr/lib/python*/dist-packages/swh/__init__.py + + for pyvers in $(shell py3versions -vr); do \ + mkdir -p $(CURDIR)/debian/python3-swh.scheduler.updater/usr/lib/python$$pyvers/dist-packages/swh/scheduler/updater/ ; \ + mv $(CURDIR)/debian/python3-swh.scheduler/usr/lib/python$$pyvers/dist-packages/swh/scheduler/updater/ \ + $(CURDIR)/debian/python3-swh.scheduler.updater/usr/lib/python$$pyvers/dist-packages/swh/scheduler/ ; \ + done