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
|
#!/usr/bin/make -f
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_build:
# workaround to generate the manpage
sed -i -e "s|python3|python2|g" ./bin/codespell
make codespell.1
sed -i -e "s|python2|python3|g" ./bin/codespell
dh_auto_build
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
make check-dictionary
virtualenv -p python3 venv
( \
. venv/bin/activate; \
python setup.py install; \
pytest-3 codespell_lib; \
)
rm -rf venv
endif
override_dh_clean:
rm -rf codespell.egg-info .cache .coverage dist venv
dh_clean
|