File: rules

package info (click to toggle)
astroquery 0.3.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,220 kB
  • sloc: xml: 113,675; python: 31,588; makefile: 137; ansic: 88; sh: 46
file content (42 lines) | stat: -rwxr-xr-x 1,272 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
40
41
42
#!/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)

BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")
SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)" -D html_show_copyright=0

%:
	dh $@ --with 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.rst.txt

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

override_dh_python3:
	dh_python3
	rm -rf debian/python3-astroquery/usr/lib/python3/dist-packages/astroquery/data/README.rst
	rmdir debian/python3-astroquery/usr/lib/python3/dist-packages/astroquery/data

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

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