diff --git a/debian/control b/debian/control index 1e0dae2e20f19d246485e20fe127ab7a90eac879..519c5d695be543377248885f696560d5887b6746 100644 --- a/debian/control +++ b/debian/control @@ -6,8 +6,10 @@ Build-Depends: debhelper (>= 9), dh-python (>= 2), python3-all, python3-click, + python3-django (>= 2:2.2.11~), python3-keycloak, python3-pytest, + python3-pytest-django, python3-setuptools, python3-setuptools-scm, python3-swh.core, @@ -20,3 +22,9 @@ Depends: python3-swh.core, ${misc:Depends}, ${python3:Depends} Description: Software Heritage Authentication library + +Package: python3-swh.auth.django +Architecture: all +Depends: python3-swh.auth (= ${binary:Version}), + ${misc:Depends}, ${python3:Depends} +Description: Software Heritage Deposit Loader diff --git a/debian/rules b/debian/rules index eac880122f753a61c5438c6ab51c8b88bc4b489d..2a525bcaf860624f1baadcadd3a98c93e7d13423 100644 --- a/debian/rules +++ b/debian/rules @@ -9,3 +9,8 @@ export PYBUILD_TEST_ARGS=-x -v -m "not db and not fs and not network" 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.auth.django/usr/lib/python$$pyvers/dist-packages/swh/auth/django ; \ + mv $(CURDIR)/debian/python3-swh.auth/usr/lib/python$$pyvers/dist-packages/swh/auth/django/* \ + $(CURDIR)/debian/python3-swh.auth.django/usr/lib/python$$pyvers/dist-packages/swh/auth/django/ ; \ + done