Skip to content
Snippets Groups Projects
Commit ebac5e93 authored by anarcat's avatar anarcat
Browse files

generate version.py by hand in debian package

we have to do this because upstream doesn't write it when we fake it
parent 93c63736
Branches
Tags 2.1.4
No related merge requests found
......@@ -13,6 +13,13 @@ export PYTEST_USENETWORK
%:
dh $@ --with=python2,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
echo "# coding: utf-8" > monkeysign/_version.py
echo "# file generated by debian package" >> monkeysign/_version.py
echo "# see https://github.com/pypa/setuptools_scm/issues/101" >> monkeysign/_version.py
echo "version = '$(shell dpkg-parsechangelog -S version)'" >> monkeysign/_version.py
dh_auto_build
override_dh_auto_test:
# override locale to make sure tests pass
LANG=C.UTF-8 dh_auto_test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment