diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/flower | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/flower')
-rw-r--r-- | dev-python/flower/Manifest | 8 | ||||
-rw-r--r-- | dev-python/flower/files/config.py | 115 | ||||
-rw-r--r-- | dev-python/flower/files/flower.confd | 2 | ||||
-rw-r--r-- | dev-python/flower/files/flower.initd | 15 | ||||
-rw-r--r-- | dev-python/flower/files/flower.logrotated | 7 | ||||
-rw-r--r-- | dev-python/flower/files/flower.service | 13 | ||||
-rw-r--r-- | dev-python/flower/flower-0.9.1-r1.ebuild | 55 | ||||
-rw-r--r-- | dev-python/flower/metadata.xml | 11 |
8 files changed, 226 insertions, 0 deletions
diff --git a/dev-python/flower/Manifest b/dev-python/flower/Manifest new file mode 100644 index 000000000000..4042286d9018 --- /dev/null +++ b/dev-python/flower/Manifest @@ -0,0 +1,8 @@ +AUX config.py 2666 BLAKE2B 4749cb203d608b25ec1410daa40820f48c3b80bac9bc339ebf5c17ef272554a1ec64cba31b65888260e6179e6da739a91ecc5403ed6c158d43972806cb40aa21 SHA512 6f67ebdd7bc5bef3ec9cd384b1b9c8a5edccc03d20fe0bd147ce25d4ca5100ee8cd0734609f4a7bb302f6cbc3bafd92dd7058c6bdae746f483d8c7b1d7c2c7ac +AUX flower.confd 77 BLAKE2B 6e6dcd1ccdd60ad3a89f820ebbe92a18e486cebda1c5fb51acf4be62e5b18c8d62b91d601c23a43b21bc319d77cc80fc711b803b422a19ba10120c6dc169e7f2 SHA512 291df73d16622fbff51c805a1c967d98c461dcfe54324b8f271e812e6afd3f4d3d855ce2acfb3228b096ec0afaa16ebf5e75500e5b84c4bc0d9da31c3230bbc7 +AUX flower.initd 508 BLAKE2B b398accfec2ac5690ae2905fd0dbfec173dfa8475691ca2c34469a367fdf0eeee0a0d94d6769bbcf4f1aeccc7cf64b55a1826cb61de5763024a8463eca828608 SHA512 66d066b2df7f8c6c42d410e8f0c6c1bac6340db994122040c796a0e9ff5440fc155f138a158b1477b6f50c2a627a7a18eeaf9b01d80e05d5273be3358047a960 +AUX flower.logrotated 85 BLAKE2B 145c99ef3e2345782f8616695bd4bf6f6fd9684df57bf2e95b22e67d5efc38afc7fd891079dce6c057ef82113b09f58332d96918e86897bc1dcff04a06d764d4 SHA512 ff230e516d0aeffe9bb7d43bd847abdf1d3bf0f0fe0a6aec087fa7f08e2157e7f15994997ba76fc57a03dc34a0271cb9051bba938138ad95fde46c9774f05ffd +AUX flower.service 331 BLAKE2B f097ef9602998f77248da33e3edda6e2e31957653fe3d9416e6295b61e50b891a069c96da6fcdd53142b312d72894f0bea82f1363cae5a60e00e6c4749004849 SHA512 894d9e3cf4c87ba731ce8089efdce7e5d6f536425ce368825f750fe5367707a12b3b99221b7d9f3ebebf6881fa7bfbca6e13654ae878b046bfa94376c00039c7 +DIST flower-0.9.1.tar.gz 3880608 BLAKE2B 4451601285472fa61577d482ecda11b20244e8050f349ba1e81601ce9a3ec0126a13ad055545d4adb5c1201b6c457919bc5f4b8aa7aca700f3bfcbc3373c6c0c SHA512 519d92209dbdb7956fde30c604956d1cbbc8ec7180ff160ea088847b5b63310cd42dc949d02eef1197588b0353470a0f3ac96b44b2e3ebb093a254d8f94fb407 +EBUILD flower-0.9.1-r1.ebuild 1428 BLAKE2B d6959eef28e153f669536780b17e48946058b6dc1765f197f0fd41f9afa33077047728152adbc635878a9388feeebf7451c49e139ca882189b7dba411b0cf896 SHA512 a562e1c6346a6eef234a6e950a285a710e524844bd40c3a7eb30c72f9dffd728818249bebe0e10b69a05ff9f511f71b6bd6e6eef1cfe568dbc89aae9bd8d0fdf +MISC metadata.xml 348 BLAKE2B 912f96c87bcf9ab4cb89f34a4c84042ba7b0774e85c123e79c2dd79e04b5fda8a7d5c0a2bb8691756fc4553a80ff393db9a53fb3e370e95b184c036cc216d27b SHA512 3ebe07dea33229439c0e810bebe106316ec29481faf9c39ca3449228979d160d42a81161ed59b7109bf0731664d122b68b3ab5a6ea39aaeb35fe9feadf304a4e diff --git a/dev-python/flower/files/config.py b/dev-python/flower/files/config.py new file mode 100644 index 000000000000..da101ab785b5 --- /dev/null +++ b/dev-python/flower/files/config.py @@ -0,0 +1,115 @@ +# Configuration file for the Celery Flower service. Standard Celery +# configuration settings can be overridden in the configuration file. See the +# Celery Configuration documentation for a complete listing of all available +# settings, and their default values. + + +# URL for the broker used by Celery. +# BROKER_URL = 'amqp://guest:guest@localhost:5672//' + + +# Run the HTTP service on the given address. +# +# addess = localhost + + +# Run the HTTP server on the given port. +# +# port = 5555 + + +# Enables Google OpenID authentication. `auth` is a regexp of emails to grant +# access. For more info see google-openid. +# +# auth = None + + +# Refresh dashboards automatically. +# +# auto_refresh = True + + +# Enables HTTP Basic authentication. `basic_auth` is a comma separated list of +# `username:password`. If configured, any client trying to access this Flower +# instance will be prompted to provide the credentials specified in this +# argument. +# +# basic_auth = None + + +# Flower can use the RabbitMQ Management Plugin to get info about queues. +# `broker_api` is a URL of a RabbitMQ HTTP API including user credentials. +# +# broker_api = http://username:password@rabbitmq-server-name:15672/api + + +# A path to ca_certs file. The ca_certs file contains a set of concatenated +# "certification authority" certificates, which are used to validate +# certificates passed from the other end of the connection. +# +# ca_certs = None + + +# A path to an x509 certificate file. +# +# certfile = None + + +# A path to the private key for `certfile`. +# +# keyfile = None + + +# Enable debug mode. +# +# debug = False + + +# Periodically enable Celery events by using `enable_events` command +# +# enable_events = True + + +# Modifies the default task formatting. `format_task` should be a function +# that accepts a task object and returns a modified version. This is useful +# when filtering out sensitive information. +# +# format_task = None + + +# Sets worker inspect timeout in milliseconds. +# +# inspect_timeout = 10000 + + +# Maximum number of tasks to keep in memory. +# +# max_tasks = 10000 + + +# Show time relative to the refresh time. +# +# natural_time = True + + +# Enable persistent mode. If the persistent mode is enabled, Flower saves the +# current state and reloads on restart. +# +# persistent = False + + +# A path to a database file to use if persistent mode is enabled. +# +# db = flower + + +# Enable support of `X-Real-Ip` and `X-Scheme` headers +# +# xheaders = False + + +# Specifies list of comma-delimited columns on the /tasks/ page. Order of slugs +# in the option is unrelated to order of columns on the page. Available slugs +# include: name, uuid, state, args, kwargs, result, received, started, runtime. +# +# tasks_columns = None diff --git a/dev-python/flower/files/flower.confd b/dev-python/flower/files/flower.confd new file mode 100644 index 000000000000..a74ca17f3d2b --- /dev/null +++ b/dev-python/flower/files/flower.confd @@ -0,0 +1,2 @@ +# extra arguments for the flower +command_args="--conf=/etc/flower/config.py" diff --git a/dev-python/flower/files/flower.initd b/dev-python/flower/files/flower.initd new file mode 100644 index 000000000000..1f950c6d2103 --- /dev/null +++ b/dev-python/flower/files/flower.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 2015-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Real-time monitor and web admin for Celery distributed task queue" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +command="/usr/libexec/${RC_SVCNAME}/${RC_SVCNAME}" +command_user="${RC_SVCNAME}" +command_background="true" +start_stop_daemon_args="--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log + --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" + +depend() { + need net +} diff --git a/dev-python/flower/files/flower.logrotated b/dev-python/flower/files/flower.logrotated new file mode 100644 index 000000000000..5c7f0287690e --- /dev/null +++ b/dev-python/flower/files/flower.logrotated @@ -0,0 +1,7 @@ +/var/log/flower/flower.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/dev-python/flower/files/flower.service b/dev-python/flower/files/flower.service new file mode 100644 index 000000000000..dd2f1d9da105 --- /dev/null +++ b/dev-python/flower/files/flower.service @@ -0,0 +1,13 @@ +[Unit] +Description=Real-time monitor and web admin for Celery distributed task queue +Requires=network-online.target +After=network-online.target + +[Service] +User=flower +PrivateDevices=Yes +Environment=_FLOWER_OPTS="--conf=/etc/flower/config.py" +ExecStart=/usr/libexec/flower/flower $_FLOWER_OPTS + +[Install] +WantedBy=multi-user.target diff --git a/dev-python/flower/flower-0.9.1-r1.ebuild b/dev-python/flower/flower-0.9.1-r1.ebuild new file mode 100644 index 000000000000..a727fb00f638 --- /dev/null +++ b/dev-python/flower/flower-0.9.1-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 systemd user + +DESCRIPTION="Real-time monitor and web admin for Celery distributed task queue" +HOMEPAGE="https://flower.readthedocs.org/ https://github.com/mher/flower/ https://pypi.org/project/flower/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="test" + +RDEPEND=">=dev-python/celery-3.1.0[${PYTHON_USEDEP}] + >=www-servers/tornado-4.2.0[${PYTHON_USEDEP}] + >=dev-python/pytz-2015.7[${PYTHON_USEDEP}] + >=dev-python/Babel-2.2.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}]" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /dev/null ${PN} +} + +src_prepare() { + eapply_user + sed -e 's:tornado==4.2.0:tornado>=4.2.0:' \ + -i requirements/default.txt || die +} + +src_install() { + distutils-r1_src_install + insinto /etc/flower + doins "${FILESDIR}/config.py" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} + +python_install() { + distutils-r1_python_install --install-scripts "${EPREFIX}/usr/libexec/flower" +} + +python_test() { + esetup.py test || die +} diff --git a/dev-python/flower/metadata.xml b/dev-python/flower/metadata.xml new file mode 100644 index 000000000000..119189addfa1 --- /dev/null +++ b/dev-python/flower/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">mher/flower</remote-id> + <remote-id type="pypi">flower</remote-id> + </upstream> +</pkgmetadata> |