Skip to content

Commit

Permalink
Bring debian packaging up to date
Browse files Browse the repository at this point in the history
Use dh-python instead of the old distutils stuff
  • Loading branch information
waveform80 committed Jul 5, 2018
1 parent 89620bd commit 897c6ea
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
2 changes: 2 additions & 0 deletions debian/clean
@@ -0,0 +1,2 @@
build/
.pybuild/
15 changes: 12 additions & 3 deletions debian/control
Expand Up @@ -3,15 +3,24 @@ Maintainer: Dave Jones <dave@waveform.org.uk>
Homepage: http://sense-emu.readthedocs.io/
Section: python
Priority: extra
Build-Depends: debhelper (>= 8), python-all (>= 2.7), python-setuptools, python3-all, python3-setuptools, python-sphinx (>= 1.0.7+dfsg-1~)
Build-Depends:
debhelper (>= 8),
dh-python,
python-all (>= 2.7),
python-setuptools,
python3-all,
python3-setuptools,
python3-sphinx
Standards-Version: 3.9.6
Vcs-Git: https://github.com/RPi-Distro/python-sense-emu.git
Vcs-Browser: https://github.com/RPi-Distro/python-sense-emu
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.2

Package: python-sense-emu
Architecture: all
Section: python
Depends: ${misc:Depends}, ${python:Depends}, python-numpy, python-pil
Depends: ${misc:Depends}, ${python:Depends}, python-numpy, python-pil, python-pkg-resources
Recommends: sense-emu-tools
Description: Client library for the Raspberry Pi Sense HAT emulator.
sense-emu is an emulator of the Raspberry Pi Sense HAT which runs on multiple
Expand All @@ -26,7 +35,7 @@ Description: Client library for the Raspberry Pi Sense HAT emulator.
Package: python3-sense-emu
Architecture: all
Section: python
Depends: ${misc:Depends}, ${python3:Depends}, python3-numpy, python3-pil
Depends: ${misc:Depends}, ${python3:Depends}, python3-numpy, python3-pil, python3-pkg-resources
Recommends: sense-emu-tools
Description: Client library for the Raspberry Pi Sense HAT emulator.
sense-emu is an emulator of the Raspberry Pi Sense HAT which runs on multiple
Expand Down
1 change: 0 additions & 1 deletion debian/copyright
Expand Up @@ -43,4 +43,3 @@ License: LGPL-2.1+
.
On Debian systems, the complete text of the GNU Lesser General Public License
version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1".

17 changes: 8 additions & 9 deletions debian/rules
Expand Up @@ -4,14 +4,13 @@
#export DH_VERBOSE=1
export DH_OPTIONS

export PYBUILD_NAME=senseemu

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

override_dh_auto_install:
# Perform a full installation of each of the packages
python setup.py install --root debian/python-sense-emu --install-layout=deb
python3 setup.py install --root debian/python3-sense-emu --install-layout=deb
python3 setup.py install --root debian/sense-emu-tools --install-layout=deb
dh_auto_install
# Strip out source from the tools package
rm -fr debian/sense-emu-tools/usr/lib
rm -fr debian/sense-emu-tools/usr/share/pyshared
Expand All @@ -26,7 +25,7 @@ override_dh_auto_install:
#override_dh_auto_test:
# # Don't run the tests!

override_dh_installdocs:
python setup.py build_sphinx -b html
dh_installdocs

override_dh_auto_build:
dh_auto_build
PYTHONPATH=. sphinx-build -N -bhtml docs/ build/html
PYTHONPATH=. sphinx-build -N -bman docs/ build/man

0 comments on commit 897c6ea

Please sign in to comment.