File: rules

package info (click to toggle)
python-future 0.15.2-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,420 kB
  • ctags: 6,337
  • sloc: python: 42,496; makefile: 141; sh: 45
file content (22 lines) | stat: -rwxr-xr-x 945 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

export PYBUILD_NAME=future
export PYBUILD_TEST_ARGS=-k 'not urllib and not test_remove_hooks_then_requests and not test_requests_cm'
export PYBUILD_BEFORE_TEST=cp pasteurize.py futurize.py {build_dir}
export PYBUILD_AFTER_TEST=rm {build_dir}/*.py

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

override_dh_install:
	dh_install
	mv debian/python-future/usr/bin/futurize debian/python-future/usr/bin/python2-futurize
	mv debian/python3-future/usr/bin/futurize debian/python3-future/usr/bin/python3-futurize
	mv debian/python-future/usr/bin/pasteurize debian/python-future/usr/bin/python2-pasteurize
	mv debian/python3-future/usr/bin/pasteurize debian/python3-future/usr/bin/python3-pasteurize

override_dh_sphinxdoc:
	http_proxy=http://127.0.0.1:9 \
	https_proxy=https://127.0.0.1:9 \
	PYTHONPATH=.:./src sphinx-build -b html docs debian/python-future-doc/usr/share/doc/python-future-doc/html
	dh_sphinxdoc