Skip to content

Commit

Permalink
debian: add packaging based on dh_virtualenv
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Luebbe <[email protected]>
  • Loading branch information
jluebbe committed Apr 25, 2018
1 parent fe98293 commit 9e914ac
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deb-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-r crossbar-requirements.txt
-r onewire-requirements.txt
-r modbus-requirements.txt
-r snmp-requirements.txt
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
labgrid (0.1.0) UNRELEASED; urgency=low

* Initial release. (Closes: #XXXXXX)

-- Jan Lübbe <[email protected]> Wed, 04 Apr 2018 17:36:46 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
20 changes: 20 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Source: labgrid
Section: python
Priority: extra
Maintainer: Jan Lübbe <[email protected]>
Build-Depends: debhelper (>= 9), python, dh-virtualenv (>= 0.8), libow-dev
Standards-Version: 3.9.5

Package: labgrid
Architecture: any
Pre-Depends: dpkg (>= 1.16.1), python3, ${misc:Pre-Depends}
Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}
Description: embedded board control python library
Labgrid is a embedded board control python library with a focus on testing,
development and general automation. It includes a remote control layer to
control boards connected to other hosts.
.
The idea behind labgrid is to create an abstraction of the hardware control
layer needed for testing of embedded systems, automatic software installation
and automation during development. Labgrid itself is not a testing framework,
but is intended to be combined with pytest (and additional pytest plugins).
7 changes: 7 additions & 0 deletions debian/labgrid.triggers
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Register interest in Python interpreter changes; and don't make the Python
# package dependent on the virtualenv package processing (noawait)
interest-noawait /usr/bin/python3.5
interest-noawait /usr/bin/python3.6

# Also provide a symbolic trigger for all dh-virtualenv packages
interest dh-virtualenv-interpreter-update
10 changes: 10 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/make -f

%:
dh $@ --with python-virtualenv

override_dh_shlibs:
dh_shlibs -l/opt

override_dh_virtualenv:
dh_virtualenv --python /usr/bin/python3 --builtin-venv --requirements deb-requirements.txt

0 comments on commit 9e914ac

Please sign in to comment.