Page MenuHomeSoftware Heritage

D4384.id16116.diff
No OneTemporary

D4384.id16116.diff

diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -36,3 +36,11 @@
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3-systemd
Description: Software Heritage core utilities
+
+Package: python3-swh.core.db.pytestplugin
+Architecture: all
+Depends: python3-pytest-postgresql,
+ python3-swh.core (= ${binary:Version}),
+ ${misc:Depends},
+ ${python3:Depends}
+Description: Software Heritage Core Db Pytest Utilities
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,11 @@
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 ; \
+ 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 ; \
+ done

File Metadata

Mime Type
text/plain
Expires
Nov 5 2024, 4:58 AM (8 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217548

Event Timeline