diff --git a/debian/control b/debian/control index 1e0dae2..519c5d6 100644 --- a/debian/control +++ b/debian/control @@ -1,22 +1,30 @@ Source: swh-auth Maintainer: Software Heritage developers Section: python Priority: optional 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, Standards-Version: 3.9.6 Homepage: https://forge.softwareheritage.org/source/swh-auth Package: python3-swh.auth Architecture: all 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 eac8801..2a525bc 100644 --- a/debian/rules +++ b/debian/rules @@ -1,11 +1,16 @@ #!/usr/bin/make -f export PYBUILD_NAME=swh.auth export PYBUILD_TEST_ARGS=-x -v -m "not db and not fs and not network" %: 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.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