forked from pool/python-flower
Accepting request 676614 from home:jayvdb:django
- Update to use single spec for Python 2 & 3 support - Add missing build dependency certifi - Add missing runtime dependencies - Remove unnecessary build dependency python-devel - Use %license OBS-URL: https://build.opensuse.org/request/show/676614 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flower?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
flower-0.8.3.tar.gz
Normal file
3
flower-0.8.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ca6ae26361e58491d51eaded0ee7134087f4ea3cdd00ac158d903dc02dd0e85b
|
||||
size 2217575
|
||||
16
flower-test_control.diff
Normal file
16
flower-test_control.diff
Normal file
@@ -0,0 +1,16 @@
|
||||
--- flower-0.8.3/tests/api/test_control.py 2015-04-05 02:09:44.000000000 +0200
|
||||
+++ flower-0.8.4/tests/api/test_control.py 2016-01-19 02:55:07.000000000 +0100
|
||||
@@ -34,7 +34,12 @@ def test_pool_restart(self):
|
||||
celery.control.broadcast = MagicMock(return_value=[{'test': 'ok'}])
|
||||
r = self.post('/api/worker/pool/restart/test', body={})
|
||||
self.assertEqual(200, r.code)
|
||||
- celery.control.broadcast.assert_called_once()
|
||||
+ celery.control.broadcast.assert_called_once_with(
|
||||
+ 'pool_restart',
|
||||
+ arguments={'reload': False},
|
||||
+ destination=['test'],
|
||||
+ reply=True,
|
||||
+ )
|
||||
|
||||
def test_pool_grow(self):
|
||||
celery = self._app.capp
|
||||
19
python-flower.changes
Normal file
19
python-flower.changes
Normal file
@@ -0,0 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 16 02:31:41 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Update to use single spec for Python 2 & 3 support
|
||||
- Add missing build dependency certifi
|
||||
- Add missing runtime dependencies
|
||||
- Remove unnecessary build dependency python-devel
|
||||
- Use %license
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 2 12:58:29 UTC 2016 - jgleissner@suse.com
|
||||
|
||||
- fixed one of the unit tests that fails with newer python-mock
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 15 10:46:41 UTC 2015 - jgleissner@suse.com
|
||||
|
||||
- Initial package
|
||||
|
||||
79
python-flower.spec
Normal file
79
python-flower.spec
Normal file
@@ -0,0 +1,79 @@
|
||||
#
|
||||
# spec file for package python-flower
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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: 0.8.3
|
||||
Release: 0
|
||||
Summary: A web frontend for monitoring and administrating Celery clusters
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/mher/flower
|
||||
Source: https://files.pythonhosted.org/packages/source/f/flower/flower-%{version}.tar.gz
|
||||
Patch1: flower-test_control.diff
|
||||
BuildRequires: %{python_module Babel}
|
||||
BuildRequires: %{python_module celery >= 2.5.0}
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module kombu}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module tornado >= 4.0.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-futures
|
||||
Requires: python-celery >= 2.5.0
|
||||
Requires: python-certifi
|
||||
Requires: python-tornado >= 4.0.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-futures
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Flower is a web based tool for monitoring and administrating Celery clusters.
|
||||
|
||||
%prep
|
||||
%setup -q -n flower-%{version}
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/flower
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative flower
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative flower
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGES README.rst
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/flower
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user