blob: 5b90c9f9c1750bf109598217d651cf3734d9ce5f (
plain)
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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export FLIT_NO_NETWORK=True
export FLIT_ROOT_INSTALL=1
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_clean:
set -e; \
if [ -e _removed ]; then \
mv _removed/vendor flit_core/flit_core/; \
rmdir _removed; \
fi
dh_auto_clean --name flit
dh_auto_clean -d flit_core --name flit_core
override_dh_auto_configure:
set -e; \
if [ -e flit_core/flit_core/vendor ]; then \
mkdir -p _removed; \
mv flit_core/flit_core/vendor _removed/; \
fi
pybuild --configure --name flit
pybuild --configure -d flit_core --name flit_core
override_dh_auto_build:
pybuild --build --name flit
pybuild --build -d flit_core --name flit_core
override_dh_auto_install:
pybuild --install --dest-dir debian/flit --name flit
pybuild --install --dest-dir debian/flit -d flit_core --name flit_core
sphinx-build -b man -D extensions='sphinx.ext.ifconfig' -D man_show_urls=True doc/ debian/
override_dh_auto_test:
pybuild --test -d flit_core --name flit_core --test-pytest --test-args="-k 'not test_find_in_path'"
|