15
0
forked from pool/python-flower
Files
python-flower/python-flower.spec
Steve Kowalik 1bbbbb9e8a - Update to 1.1.0:
* Disable authentication of /metrics endpoint. (#1129)
  * read custom histogram latency buckets from env (#1134)
  * making PrometheusMetrics class singleton (#1149)
  * Fix attribute error caused by newest humanize package. (#1156)
  * pass sentinel_kwargs to Sentinel() broker (#1208)
  * Fixing CORS support (#1200)
  * Encode worker and task names in URL (#1204)
  * Add compatibility with older humanize versions (#1196)
  * Diable API if auth is enabled (#1225)
- Remove patch python-flower-new-humanize.patch:
  * Included upstream.
- Add patch remove-mock.patch:
  * Remove dependency on mock.
- Remove python-mock from BuildRequires
- Clean up python 2 bcond, it is no longer supported.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flower?expand=0&rev=15
2022-07-13 01:48:20 +00:00

76 lines
2.4 KiB
RPMSpec

#
# spec file for package python-flower
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-flower
Version: 1.1.0
Release: 0
Summary: A web frontend for monitoring and administrating Celery clusters
License: BSD-3-Clause
URL: https://github.com/mher/flower
Source: https://files.pythonhosted.org/packages/source/f/flower/flower-%{version}.tar.gz
# Tornado 5+ update blocked by salt, so backport the missing piece
Patch0: backport_run_in_executor.patch
# PATCH-FIX-UPSTREAM gh#mher/flower#1228
Patch1: remove-mock.patch
BuildRequires: %{python_module Babel >= 1.0}
BuildRequires: %{python_module celery >= 5.0.0}
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module humanize}
BuildRequires: %{python_module kombu}
BuildRequires: %{python_module prometheus_client >= 0.8.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tornado >= 5.0.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Babel >= 1.0
Requires: python-celery >= 5.0.0
Requires: python-certifi
Requires: python-humanize
Requires: python-prometheus_client >= 0.8.0
Requires: python-pytz
Requires: python-tornado >= 5.0.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
%description
Flower is a web based tool for monitoring and administrating Celery clusters.
%prep
%autosetup -p1 -n flower-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog