Commit 24a2d936 authored by Marcelo Jorge Vieira's avatar Marcelo Jorge Vieira

Importing debian folder from Gilles Dubuc repository

https://github.com/gi11es/thumbor-debian
parent 590a96d6
pyres (1.5-1) unstable; urgency=low
* Initial release. (Closes: #825896)
-- Gilles Dubuc <gilles@wikimedia.org> Wed, 18 May 2016 16:16:36 +0000
Source: pyres
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Gilles Dubuc <gilles@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.
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@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.
README.markdown
debian/pyres_manager.1
debian/pyres_scheduler.1
debian/pyres_worker.1
#!/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
.\" 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.
[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
.\" 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.
[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
.\" 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.
[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
#!/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
version=3
opts="filenamemangle=s/.+\/v?(.*)\.tar\.gz/pyres-$1.tar.gz/" \
https://github.com/binarydud/pyres/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment