diff --git a/debian/control b/debian/control --- a/debian/control +++ b/debian/control @@ -34,5 +34,30 @@ Package: python3-swh.core Architecture: all -Depends: ${misc:Depends}, ${python3:Depends}, python3-systemd +Depends: python3-aiohttp, + python3-aiohttp-utils, + python3-arrow, + python3-dateutil, + python3-decorator, + python3-deprecated, + python3-flask, + python3-iso8601, + python3-msgpack (>= 0.5~), + python3-tz, + python3-psycopg2, + python3-typing-extensions, + python3-requests, + python3-sentry-sdk, + python3-systemd, + python3-yaml, + ${misc:Depends} Description: Software Heritage core utilities + +Package: python3-swh.core.db.pytestplugin +Architecture: all +Depends: python3-pytest-postgresql, + python3-psycopg2, + python3-typing-extensions, + python3-swh.core (= ${binary:Version}), + ${misc:Depends} +Description: Software Heritage Core Db Pytest Utilities diff --git a/debian/rules b/debian/rules --- a/debian/rules +++ b/debian/rules @@ -6,5 +6,15 @@ %: dh $@ --with python3 --buildsystem=pybuild -override_dh_python3: - dh_python3 --requires=requirements-db.txt --requires=requirements-http.txt +override_dh_install: + dh_install + for pyvers in $(shell py3versions -vr); do \ + mkdir -p $(CURDIR)/debian/python3-swh.core.db.pytestplugin/usr/lib/python$$pyvers/dist-packages/swh/core/db/tests/data ; \ + touch $(CURDIR)/debian/python3-swh.core.db.pytestplugin/usr/lib/python$$pyvers/dist-packages/swh/core/db/__init__.py \ + mv $(CURDIR)/debian/python3-swh.core/usr/lib/python$$pyvers/dist-packages/swh/core/db/pytest_plugin.py \ + $(CURDIR)/debian/python3-swh.core.db.pytestplugin/usr/lib/python$$pyvers/dist-packages/swh/core/db/pytest_plugin.py ; \ + mv $(CURDIR)/debian/python3-swh.core/usr/lib/python$$pyvers/dist-packages/swh/core/db/tests/test_cli.py \ + $(CURDIR)/debian/python3-swh.core.db.pytestplugin/usr/lib/python$$pyvers/dist-packages/swh/core/db/tests/ ; \ + mv $(CURDIR)/debian/python3-swh.core/usr/lib/python$$pyvers/dist-packages/swh/core/db/tests/data \ + $(CURDIR)/debian/python3-swh.core.db.pytestplugin/usr/lib/python$$pyvers/dist-packages/swh/core/db/tests/ ; \ + done