https://forge.softwareheritage.org/source/swh-deposit.git
Raw File
Tip revision: e1d490e27694202ead38a09f4eb1b8e589e49271 authored by Jenkins for Software Heritage on 09 May 2019, 08:37:26 UTC
Updated backport on stretch-swh from debian/0.0.69-1_swh1 (unstable-swh)
Tip revision: e1d490e
rules
#!/usr/bin/make -f

export PYBUILD_NAME=swh.deposit
export PYBUILD_TEST_ARGS=-v -m "not db and not fs"

%:
	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.deposit.loader/usr/lib/python$$pyvers/dist-packages/swh/deposit/loader ; \
		mv $(CURDIR)/debian/python3-swh.deposit/usr/lib/python$$pyvers/dist-packages/swh/deposit/loader/* \
		   $(CURDIR)/debian/python3-swh.deposit.loader/usr/lib/python$$pyvers/dist-packages/swh/deposit/loader/ ; \
		mkdir -p $(CURDIR)/debian/python3-swh.deposit.client/usr/lib/python$$pyvers/dist-packages/swh/deposit/client ; \
		mv $(CURDIR)/debian/python3-swh.deposit/usr/lib/python$$pyvers/dist-packages/swh/deposit/client/* \
		   $(CURDIR)/debian/python3-swh.deposit.client/usr/lib/python$$pyvers/dist-packages/swh/deposit/client/ ; \
	done

override_dh_auto_test:
back to top