File: rules

package info (click to toggle)
python-django-import-export 4.3.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,300 kB
  • sloc: python: 11,650; makefile: 180; sh: 63; javascript: 50
file content (18 lines) | stat: -rwxr-xr-x 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
export PYBUILD_NAME=django-import-export
export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)
export DJANGO_SETTINGS_MODULE=tests.settings

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

override_dh_auto_build:
	find import_export/ -type f | sed 's/^/include /' > MANIFEST.in
	dh_auto_build

override_dh_auto_clean:
	rm -f import_export/_version.py
	rm -rf .pybuild/ django_import_export.egg-info/
	rm -f MANIFEST.in