Skip to content
Snippets Groups Projects
Commit ba845ff8 authored by Ondřej Nový's avatar Ondřej Nový
Browse files

Use pybuild for building package.

parent b3e13213
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ python-validictory (0.8.3-4) UNRELEASED; urgency=medium ...@@ -3,6 +3,7 @@ python-validictory (0.8.3-4) UNRELEASED; urgency=medium
* Use debhelper-compat instead of debian/compat. * Use debhelper-compat instead of debian/compat.
* Use Python 3 for building docs. * Use Python 3 for building docs.
* Drop Python 2 support. * Drop Python 2 support.
* Use pybuild for building package.
-- Ondřej Nový <onovy@debian.org> Fri, 19 Jul 2019 23:56:45 +0200 -- Ondřej Nový <onovy@debian.org> Fri, 19 Jul 2019 23:56:45 +0200
......
#!/usr/bin/make -f #!/usr/bin/make -f
DOC_PACKAGE_NAME=python-validictory-doc export PYBUILD_NAME=validictory
PY2_PACKAGE_NAME=python-validictory
PY3_PACKAGE_NAME=python3-validictory
PACKAGE_DOCDIR=debian/$(DOC_PACKAGE_NAME)/usr/share/doc/$(DOC_PACKAGE_NAME)
PYVERS = $(shell pyversions -r)
PY3VERS = $(shell py3versions -r)
%: %:
dh $@ --with python3,sphinxdoc dh $@ --with python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_clean: override_dh_auto_clean:
dh_auto_clean dh_auto_clean
rm -rvf ./docs/build ./*.egg-info ./build rm -rvf ./docs/build ./*.egg-info ./build
override_dh_auto_build: override_dh_auto_build:
set -xe; \ dh_auto_build
for py in $(PYVERS) $(PY3VERS); do \
$$py setup.py build; \
done
make -C docs html make -C docs html
override_dh_auto_install:
set -xe; \
for py in $(PYVERS); do \
$$py setup.py install --skip-build --root debian/$(PY2_PACKAGE_NAME) \
--install-layout deb; \
done
set -xe; \
for py in $(PY3VERS); do \
$$py setup.py install --skip-build --root debian/$(PY3_PACKAGE_NAME) \
--install-layout deb; \
done
# Remove me when dh_python2 can handle this file
rm -vf debian/*/usr/lib/python*/*-packages/*.egg-info/SOURCES.txt
override_dh_installchangelogs: override_dh_installchangelogs:
dh_installchangelogs docs/changelog.rst dh_installchangelogs docs/changelog.rst
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment