Skip to content
Snippets Groups Projects
Verified Commit e7eb9d09 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

d/control: Make a python3-swh.auth.django package

Separate python3-swh.auth from python3-swh.auth.django to avoid pulling too much
dependencies.

Not all applications will require the django part.

Related to T3079
parent 4846f714
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment