diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..308e86f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-procrunner (1.1.0-1) unstable; urgency=medium + + * First release (Closes: #962456) + + -- Sebastien Delafond Mon, 08 Jun 2020 13:47:32 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1b54e41 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: python-procrunner +Section: python +Priority: optional +Maintainer: Debian Science Maintainers +Uploaders: Sebastien Delafond +Build-Depends: debhelper (>= 12), dh-python, python3-setuptools, python3-all, python3-pytest-runner, python3-pytest, python3-mock +Standards-Version: 4.5.0 +Homepage: https://github.com/DiamondLightSource/python-procrunner +Vcs-Browser: https://salsa.debian.org/science-team/python-procrunner +Vcs-Git: https://salsa.debian.org/science-team/python-procrunner.git + +Package: python3-procrunner +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, ${python3:Depends} +Description: Versatile utility function to run external processes from Python + Versatile utility function to run external processes from Python, with many + features: + * runs an external process and waits for it to finish + * does not deadlock, no matter the process stdout/stderr output + behaviour + * returns the exit code, stdout, stderr (separately, both as + bytestrings), and the total process runtime as a dictionary + * process can run in a custom environment, either as a modification + of the current environment or in a new environment from scratch + * stdin can be fed to the process, the returned dictionary contains + information how much was read by the process + * stdout and stderr is printed by default, can be disabled + * stdout and stderr can be passed to any arbitrary function for live + processing (separately, both as unicode strings) + * optionally enforces a time limit on the process diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a6e703f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-procrunner +Source: https://github.com/DiamondLightSource/python-procrunner + +Files: * +Copyright: Markus Gerstel; 2018 Diamond Light Source. +License: BSD-3 + +Files: debian/* +Copyright: 2020 Sebastien Delafond +License: BSD-3 + +License: BSD-3 + Copyright (c) The Regents of the University of California. + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..2541c07 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +debian-branch = debian/master +upstream-branch = upstream/latest diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..96ec63c --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=python-procrunner +#export PYBUILD_DISABLE=test +# export PYBUILD_VERSIONS=3.8 +# export PYBUILD_INTERPRETERS=python{version} + +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..33c3a64 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml 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) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..b2f28a4 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://github.com/DiamondLightSource/python-procrunner/tags .*/v(\d[\d\.]*)\.tar\.gz debian uupdate