[Python-modules-commits] [pyres] 02/06: Importing debian folder from Gilles Dubuc repository

Marcelo Jorge Vieira metal at moszumanska.debian.org
Fri Sep 8 03:40:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

metal pushed a commit to branch master
in repository pyres.

commit 24a2d9361b4f0c3a0a4866d1c24994c4d65d1927
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date:   Thu Sep 7 23:07:18 2017 -0300

    Importing debian folder from Gilles Dubuc repository
    
    https://github.com/gi11es/thumbor-debian
---
 debian/changelog                |  5 +++
 debian/compat                   |  1 +
 debian/control                  | 40 +++++++++++++++++++++
 debian/copyright                | 77 +++++++++++++++++++++++++++++++++++++++++
 debian/docs                     |  1 +
 debian/pyres.manpages           |  3 ++
 debian/pyres.postinst           | 13 +++++++
 debian/pyres_manager.1          | 59 +++++++++++++++++++++++++++++++
 debian/pyres_manager at .service   | 12 +++++++
 debian/pyres_scheduler.1        | 42 ++++++++++++++++++++++
 debian/pyres_scheduler at .service | 12 +++++++
 debian/pyres_worker.1           | 48 +++++++++++++++++++++++++
 debian/pyres_worker at .service    | 12 +++++++
 debian/rules                    | 18 ++++++++++
 debian/source/format            |  1 +
 debian/watch                    |  3 ++
 16 files changed, 347 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d848557
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pyres (1.5-1) unstable; urgency=low
+
+  * Initial release. (Closes: #825896)
+
+ -- Gilles Dubuc <gilles at wikimedia.org>  Wed, 18 May 2016 16:16:36 +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..db8b1fe
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,40 @@
+Source: pyres
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Gilles Dubuc <gilles at wikimedia.org>
+Section: python
+Priority: optional
+Standards-Version: 3.9.8
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               dh-systemd (>= 1.5),
+               python-all,
+               python-pytest,
+               python-redis,
+               python-setproctitle,
+               python-setuptools,
+               python-simplejson,
+               redis-server
+X-Python-Version: >= 2.7
+Homepage: https://github.com/binarydud/pyres
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pyres.git
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/pyres.git
+
+Package: pyres
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, python-simplejson, python-redis, python-setproctitle
+Description: Python module to provide a Resque-like job queue
+ Pyres - a Resque clone
+ .
+ Resque is a great implementation of a job queue by the people at
+ github. It's written in ruby, which is great, but I primarily work in
+ python. So I took on the task of porting over the code to python and
+ PyRes was the result
+ .
+ Project Goals
+ .
+ Because of some differences between ruby and python, there are a
+ couple of places where I chose speed over correctness. The goal will
+ be to eventually take the application and make it more pythonic
+ without sacrificing the awesome functionality found in resque. At the
+ same time, I hope to stay within the bounds of the original api and
+ web interface.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fd457cd
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,77 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pyres
+Source: https://github.com/binarydud/pyres
+
+Files: *
+Copyright: 2009-2013 Matt George
+License: MIT
+
+Files: docs/source/_theme/flask/static/*
+Copyright: 2010 Armin Ronacher
+License: Flask-Design-License
+
+Files: debian/*
+Copyright: 2009-2013 Matt George,
+           2016 Gilles Dubuc <gilles at wikimedia.org>
+License: MIT
+
+License: MIT
+  Copyright (c) 2009-2013 Matt George
+  .
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to deal
+  in the Software without restriction, including without limitation the rights
+  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+  copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+  .
+  The above copyright notice and this permission notice shall be included in all
+  copies or substantial portions of the Software.
+  .
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+  SOFTWARE.
+
+License: Flask-Design-License
+ Copyright (c) 2010 by Armin Ronacher.
+ .
+ Some rights reserved.
+ .
+ Redistribution and use in source and binary forms of the theme, with or
+ without modification, are permitted provided that the following conditions
+ are met:
+ .
+ * Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+ .
+ * 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.
+ .
+ * The names of the contributors may not be used to endorse or
+   promote products derived from this software without specific
+   prior written permission.
+ .
+ We kindly ask you to only use these themes in an unmodified manner just
+ for Flask and Flask-related products, not for unrelated projects.  If you
+ like the visual style and want to use it for your own projects, please
+ consider making some larger changes to the themes (such as changing
+ font faces, sizes, colors or margins).
+ .
+ THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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 THEME, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..8d526b9
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.markdown
diff --git a/debian/pyres.manpages b/debian/pyres.manpages
new file mode 100644
index 0000000..64f2983
--- /dev/null
+++ b/debian/pyres.manpages
@@ -0,0 +1,3 @@
+debian/pyres_manager.1
+debian/pyres_scheduler.1
+debian/pyres_worker.1
diff --git a/debian/pyres.postinst b/debian/pyres.postinst
new file mode 100644
index 0000000..f427a60
--- /dev/null
+++ b/debian/pyres.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] ; then
+	if ! getent passwd pyres | grep -q pyres; then
+		useradd --system --user-group --home /var/lib/pyres pyres
+	fi
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pyres_manager.1 b/debian/pyres_manager.1
new file mode 100644
index 0000000..24bbbfe
--- /dev/null
+++ b/debian/pyres_manager.1
@@ -0,0 +1,59 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.46.4.
+.TH PYRES_MANAGER "1" "June 2016" "pyres_manager 1.5" "User Commands"
+.SH NAME
+pyres_manager \- Pyres manager
+.SH SYNOPSIS
+.B pyres_manager
+[\fI\,options\/\fR] \fI\,arg1\/\fR
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit
+.HP
+\fB\-\-host\fR=\fI\,HOST\/\fR
+.HP
+\fB\-\-port\fR=\fI\,PORT\/\fR
+.HP
+\fB\-\-password\fR=\fI\,PASSWORD\/\fR
+.TP
+\fB\-i\fR MANAGER_INTERVAL, \fB\-\-interval\fR=\fI\,MANAGER_INTERVAL\/\fR
+the default time interval to sleep between runs \-
+manager
+.TP
+\fB\-\-minions_interval\fR=\fI\,MINIONS_INTERVAL\/\fR
+the default time interval to sleep between runs \-
+minions
+.TP
+\fB\-l\fR LOG_LEVEL, \fB\-\-log\-level\fR=\fI\,LOG_LEVEL\/\fR
+log level.  Valid values are "debug", "info",
+"warning", "error", "critical", in decreasing order of
+verbosity. Defaults to "info" if parameter not
+specified.
+.TP
+\fB\-\-pool\fR=\fI\,POOL_SIZE\/\fR
+Number of minions to spawn under the manager.
+.TP
+\fB\-j\fR MAX_JOBS, \fB\-\-process_max_jobs\fR=\fI\,MAX_JOBS\/\fR
+how many jobs should be processed on worker run.
+.TP
+\fB\-f\fR LOGFILE
+If present, a logfile will be used.  "stderr",
+"stdout", and "syslog" are all special values.
+.TP
+\fB\-p\fR PIDFILE
+If present, a pidfile will be used.
+.TP
+\fB\-\-concat_minions_logs\fR
+Concat all minions logs on same file.
+.SH "SEE ALSO"
+The full documentation for
+.B pyres_manager
+is maintained as a Texinfo manual.  If the
+.B info
+and
+.B pyres_manager
+programs are properly installed at your site, the command
+.IP
+.B info pyres_manager
+.PP
+should give you access to the complete manual.
diff --git a/debian/pyres_manager at .service b/debian/pyres_manager at .service
new file mode 100644
index 0000000..e2f4dc7
--- /dev/null
+++ b/debian/pyres_manager at .service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Pyres, a resque clone in python, manager for queue %I
+Requires=redis-server.service
+After=redis-server.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/pyres_manager %i
+User=pyres
+
+[Install]
+WantedBy=default.target
diff --git a/debian/pyres_scheduler.1 b/debian/pyres_scheduler.1
new file mode 100644
index 0000000..8b5357f
--- /dev/null
+++ b/debian/pyres_scheduler.1
@@ -0,0 +1,42 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.46.4.
+.TH PYRES_SCHEDULER "1" "June 2016" "pyres_scheduler 1.5" "User Commands"
+.SH NAME
+pyres_scheduler \- Pyres scheduler
+.SH SYNOPSIS
+.B pyres_scheduler
+[\fI\,options\/\fR] \fI\,arg1\/\fR
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit
+.HP
+\fB\-\-host\fR=\fI\,HOST\/\fR
+.HP
+\fB\-\-port\fR=\fI\,PORT\/\fR
+.HP
+\fB\-\-password\fR=\fI\,PASSWORD\/\fR
+.TP
+\fB\-l\fR LOG_LEVEL, \fB\-\-log\-level\fR=\fI\,LOG_LEVEL\/\fR
+log level.  Valid values are "debug", "info",
+"warning", "error", "critical", in decreasing order of
+verbosity. Defaults to "info" if parameter not
+specified.
+.TP
+\fB\-f\fR LOGFILE
+If present, a logfile will be used.  "stderr",
+"stdout", and "syslog" are all special values.
+.TP
+\fB\-p\fR PIDFILE
+If present, a pidfile will be used.
+.SH "SEE ALSO"
+The full documentation for
+.B pyres_scheduler
+is maintained as a Texinfo manual.  If the
+.B info
+and
+.B pyres_scheduler
+programs are properly installed at your site, the command
+.IP
+.B info pyres_scheduler
+.PP
+should give you access to the complete manual.
diff --git a/debian/pyres_scheduler at .service b/debian/pyres_scheduler at .service
new file mode 100644
index 0000000..6ed9460
--- /dev/null
+++ b/debian/pyres_scheduler at .service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Pyres, a resque clone in python, scheduler for queue %I
+Requires=redis-server.service
+After=redis-server.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/pyres_scheduler %i
+User=pyres
+
+[Install]
+WantedBy=default.target
diff --git a/debian/pyres_worker.1 b/debian/pyres_worker.1
new file mode 100644
index 0000000..1c150fa
--- /dev/null
+++ b/debian/pyres_worker.1
@@ -0,0 +1,48 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.46.4.
+.TH PYRES_WORKER "1" "June 2016" "pyres_worker 1.5" "User Commands"
+.SH NAME
+pyres_worker \- Pyres worker
+.SH SYNOPSIS
+.B pyres_worker
+[\fI\,options\/\fR] \fI\,arg1\/\fR
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit
+.HP
+\fB\-\-host\fR=\fI\,HOST\/\fR
+.HP
+\fB\-\-port\fR=\fI\,PORT\/\fR
+.HP
+\fB\-\-password\fR=\fI\,PASSWORD\/\fR
+.TP
+\fB\-i\fR INTERVAL, \fB\-\-interval\fR=\fI\,INTERVAL\/\fR
+the default time interval to sleep between runs
+.TP
+\fB\-l\fR LOG_LEVEL, \fB\-\-log\-level\fR=\fI\,LOG_LEVEL\/\fR
+log level.  Valid values are "debug", "info",
+"warning", "error", "critical", in decreasing order of
+verbosity. Defaults to "info" if parameter not
+specified.
+.TP
+\fB\-f\fR LOGFILE
+If present, a logfile will be used.  "stderr",
+"stdout", and "syslog" are all special values.
+.TP
+\fB\-p\fR PIDFILE
+If present, a pidfile will be used.
+.TP
+\fB\-t\fR TIMEOUT, \fB\-\-timeout\fR=\fI\,TIMEOUT\/\fR
+the timeout in seconds for this worker
+.SH "SEE ALSO"
+The full documentation for
+.B pyres_worker
+is maintained as a Texinfo manual.  If the
+.B info
+and
+.B pyres_worker
+programs are properly installed at your site, the command
+.IP
+.B info pyres_worker
+.PP
+should give you access to the complete manual.
diff --git a/debian/pyres_worker at .service b/debian/pyres_worker at .service
new file mode 100644
index 0000000..5340408
--- /dev/null
+++ b/debian/pyres_worker at .service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Pyres, a resque clone in python, worker for queue %I
+Requires=redis-server.service
+After=redis-server.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/pyres_worker %i
+User=pyres
+
+[Install]
+WantedBy=default.target
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1dc1bd4
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+export PYBUILD_NAME=pyres
+export PYBUILD_TEST_PYTEST=1
+export PYBUILD_BEFORE_TEST=cp -R {dir}/tests {build_dir} ; redis-server > /dev/null &
+export PYBUILD_AFTER_TEST=rm -fR {build_dir}/tests ; redis-cli shutdown
+export PYBUILD_TEST_ARGS=-k 'not test_worker_pids'
+
+%:
+	dh $@ --with python2,systemd --buildsystem=pybuild
+
+override_dh_clean:
+	rm -rf pyres.egg-info .cache dump.rdb
+	dh_clean
+
+override_dh_installinit:
+	dh_installinit --name=pyres_manager@ --noscripts
+	dh_installinit --name=pyres_scheduler@ --noscripts
+	dh_installinit --name=pyres_worker@ --noscripts
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..2aa36ee
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="filenamemangle=s/.+\/v?(.*)\.tar\.gz/pyres-$1.tar.gz/" \
+ https://github.com/binarydud/pyres/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyres.git



More information about the Python-modules-commits mailing list