File: rules

package info (click to toggle)
astroquery 0.3.4%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,528 kB
  • ctags: 3,402
  • sloc: xml: 113,303; python: 21,713; makefile: 135; ansic: 88; sh: 46
file content (39 lines) | stat: -rwxr-xr-x 1,260 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=astroquery
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS=../../../astroquery
export http_proxy=127.0.0.1:9
export HOME=$(shell mktemp -d)

LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)" -D html_show_copyright=0

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. sphinx-build $(SPHINXOPTS) -N -bhtml docs/ build/html # HTML generator

override_dh_sphinxdoc:
	dh_sphinxdoc
	rm -rf debian/python-astroquery-doc/usr/share/doc/python-astroquery-doc/html/_sources/license.txt

override_dh_auto_clean:
	dh_auto_clean
	rm -f astroquery/version.py
	rm -rf api
	rm -rf .cache

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/python-astroquery/usr/astroquery.splatalogue
	rm -rf debian/python3-astroquery/usr/astroquery.splatalogue

override_dh_fixperms:
	dh_fixperms
	chmod a+x debian/python-astroquery/usr/lib/python2.7/dist-packages/astroquery/alma/tests/data/downloadRequest*
	chmod a+x debian/python3-astroquery/usr/lib/python3/dist-packages/astroquery/alma/tests/data/downloadRequest*