File: rules

package info (click to toggle)
django-countries 7.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,300 kB
  • sloc: python: 3,226; sh: 27; makefile: 17
file content (27 lines) | stat: -rwxr-xr-x 928 bytes parent folder | download | duplicates (3)
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
26
27
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=django-countries

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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e; \
	for python in $(shell py3versions -r); do \
	  PYTHONPATH="." DJANGO_SETTINGS_MODULE=django_countries.tests.settings $$python $(shell which django-admin) test django_countries.tests;\
	done
endif

override_dh_python3:
	dh_python3
	ln -s /usr/share/python3-django-countries/locale debian/python3-django-countries/usr/lib/python3/dist-packages/django_countries/
	mkdir -p debian/python3-django-countries/usr/lib/python3/dist-packages/django_countries/static
	ln -s /usr/share/flags/countries/16x11 debian/python3-django-countries/usr/lib/python3/dist-packages/django_countries/static/flags

override_dh_installchangelogs:
	dh_installchangelogs -- CHANGES.rst