From fa3108544bce9619677e35f7f1256eef5ef6b107 Mon Sep 17 00:00:00 2001 From: Robert Wolterman Date: Sun, 19 Feb 2017 10:06:22 -0600 Subject: [PATCH] First stab as getting a capability to dump out .deb files for both Python2 and Python3. --- Makefile | 7 +++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 23 +++++++++++++++++++++++ debian/files | 2 ++ debian/rules | 9 +++++++++ debian/source/format | 1 + 7 files changed, 48 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/files create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/Makefile b/Makefile index 3a6155d..ad62a72 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,10 @@ clean: rm -f *.pyo *.pyc rm -f *.egg rm -f overlays/*.pyo overlays/*.pyc + rm -rf __pycache__ + rm -rf debian/python-chip-io* + rm -rf debian/python3-chip-io* + tests: py.test @@ -17,3 +21,6 @@ build: install: build python setup.py install --force + +debfile: + dpkg-buildpackage -rfakeroot -uc -b diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c72cd4e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +chip-io (0.4.0-1) unstable; urgency=low + + * source package automatically created by stdeb 0.8.2 + + -- Robert Wolterman Sat, 18 Feb 2017 23:58:48 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..02a234e --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: chip-io +Maintainer: Robert Wolterman +Section: python +Priority: optional +Build-Depends: python-setuptools (>= 0.6b3), python-all-dev (>= 2.6.6-3), debhelper (>= 9), dh-python, + python3-all (>=3.2), python3-setuptools +Standards-Version: 3.9.1 + +Package: python-chip-io +Architecture: any +Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} +Description: A module to control CHIP IO channels + CHIP_IO + ============================ + A CHIP GPIO library + +Package: python3-chip-io +Architecture: any +Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} +Description: A module to control CHIP IO channels + CHIP_IO + ============================ + A CHIP GPIO library diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..6ea9694 --- /dev/null +++ b/debian/files @@ -0,0 +1,2 @@ +python-chip-io_0.4.0-1_armhf.deb python optional +python3-chip-io_0.4.0-1_armhf.deb python optional diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..200a447 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +# This file was automatically generated by stdeb 0.8.2 at +# Sat, 18 Feb 2017 23:58:48 +0000 +export PYBUILD_NAME=chip-io + +%: + dh $@ --with python2,python3 --buildsystem=pybuild + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)