File: rules

package info (click to toggle)
django-oauth-toolkit 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 728 kB
  • ctags: 785
  • sloc: python: 4,214; makefile: 157
file content (23 lines) | stat: -rwxr-xr-x 695 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
#!/usr/bin/make -f

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

export PYBUILD_NAME=django-oauth-toolkit

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

override_dh_auto_install:
	dh_auto_install
	set -e; \
	for inst in debian/python*-django-oauth-toolkit/usr/lib/python*/*-packages/oauth2_provider; do \
		mkdir -p $$inst/static/oauth2_provider; \
		ln -s ../../../../../../share/twitter-bootstrap/files/css/bootstrap.min.css $$inst/static/oauth2_provider/bootstrap.min.css; \
	done

override_dh_installchangelogs:
	dh_installchangelogs -- docs/changelog.rst

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} runtests.py" dh_auto_test