File: rules

package info (click to toggle)
django-mailman3 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 976 kB
  • sloc: python: 1,966; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 934 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

export PYBUILD_NAME=django-mailman3

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e; \
	for python3 in $(shell py3versions -r); do \
                $$python3 $(shell which django-admin) test --pythonpath=. --settings=django_mailman3.tests.settings_test django_mailman3; \
	done
endif

override_dh_python3:
	dh_python3
	# Due to bug #908999, dh_python3 removes the empty directory
	# 'usr/share/python3-django-postorius', so run mkdir manually.
	mkdir -p debian/python3-django-mailman3/usr/share/python3-django-mailman3
	# Move static files outside of the lib directory
	mv debian/python3-django-mailman3/usr/lib/python3/dist-packages/django_mailman3/static \
		debian/python3-django-mailman3/usr/share/python3-django-mailman3/
	dh_link usr/share/python3-django-mailman3/static \
		usr/lib/python3/dist-packages/django_mailman3/static