File: rules

package info (click to toggle)
django-oauth-toolkit 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,156 kB
  • sloc: python: 11,100; makefile: 159; javascript: 9; sh: 6
file content (21 lines) | stat: -rwxr-xr-x 870 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
#!/usr/bin/make -f

export PYBUILD_NAME=django-oauth-toolkit
export PYBUILD_TEST_ARGS=--ds tests.settings
export PYBUILD_AFTER_TEST=rm -f {build_dir}/.coverage

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

execute_after_dh_python3:
	mkdir -p debian/python3-django-oauth-toolkit/usr/lib/python3/dist-packages/oauth2_provider/static/oauth2_provider
	ln -s ../../../../../../share/javascript/bootstrap/css/bootstrap.min.css debian/python3-django-oauth-toolkit/usr/lib/python3/dist-packages/oauth2_provider/static/oauth2_provider/

override_dh_installchangelogs:
	dh_installchangelogs -- docs/changelog.rst


execute_before_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=$(CURDIR) python3 -m sphinx -b html -N $(CURDIR)/docs/ $(CURDIR)/debian/python-django-oauth-toolkit-doc/usr/share/doc/python-django-oauth-toolkit-doc/html
endif