SHA256
1
0
forked from pool/python-kombu

Accepting request 179876 from devel:languages:python

housekeeping sr, necessary due to split between d:l:p and d:l:p3 and (manual) _link removal in Factory.

OBS-URL: https://build.opensuse.org/request/show/179876
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kombu?expand=0&rev=29
This commit is contained in:
Stephan Kulow 2013-06-19 15:02:58 +00:00 committed by Git OBS Bridge
commit 0bb9ef5db8
4 changed files with 27 additions and 229 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Apr 30 09:45:52 UTC 2013 - speilicke@suse.com
- Expanded test coverage
- Don't require python-msgpack-python for testing until issues are fixed.
It's an optional feature anyway
-------------------------------------------------------------------
Sat Apr 13 10:17:23 UTC 2013 - toddrme2178@gmail.com

View File

@ -24,22 +24,30 @@ License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://github.com/ask/kombu/
Source: http://pypi.python.org/packages/source/k/kombu/kombu-%{version}.tar.gz
BuildRequires: python-PyYAML
BuildRequires: python-amqplib
BuildRequires: python-anyjson
BuildRequires: python-devel
BuildRequires: python-distribute
# Test requirements:
BuildRequires: python-PyYAML
BuildRequires: python-amqp
BuildRequires: python-amqplib
BuildRequires: python-anyjson
BuildRequires: python-boto
#BuildRequires: python-couchdb
BuildRequires: python-mock
BuildRequires: python-msgpack-python
#NOTE(saschpe): Disable optional test for now util issues are resolved
#BuildRequires: python-msgpack-python
BuildRequires: python-nose-cover3
BuildRequires: python-simplejson
#BuildRequires: python-pymongo
#BuildRequires: python-redis
BuildRequires: python-unittest2 >= 0.5.0
Requires: python-amqp >= 1.0.11
Requires: python-anyjson >= 0.3.3
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python-importlib
BuildRequires: python-ordereddict
Requires: python-importlib
Requires: python-ordereddict
%endif
Requires: python-amqp >= 1.0.11
Requires: python-anyjson >= 0.3.3
Recommends: couchdb
Recommends: mongodb
Recommends: rabbitmq-server
@ -67,7 +75,10 @@ provide proven and tested solutions to common messaging problems.
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' ./kombu/tests/test_serialization.py
# NOTE(saschpe): We have a newer python-amqp, but this shouldn't be an issue:
sed -i -e "s|amqp>=1.0.5,<1.1.0|amqp>=1.0.5|" requirements/default.txt kombu.egg-info/requires.txt
sed -i -e "s|amqp>=1.0.11,<1.1.0|amqp>=1.0.11|" requirements/default.txt kombu.egg-info/requires.txt
# NOTE(saschpe): Testsuite requires mkgpack-python < 0.2.0 because it dropped
# Python-2.5 support. This makes no sense for us, thus:
#sed -i "s/msgpack-python.*/msgpack-python/" requirements/test.txt
%build
python setup.py build
@ -76,10 +87,7 @@ python setup.py build
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
# Testsuite requires mkgpack-python < 0.2.0 because it dropped Python-2.5 support.
# This makes no sense for us, thus:
#sed -i "s/msgpack-python.*/msgpack-python/" requirements/test.txt
#python setup.py test
python setup.py test
%files
%defattr(-,root,root,-)

View File

@ -1,132 +0,0 @@
-------------------------------------------------------------------
Fri Apr 12 17:47:22 UTC 2013 - alexandre@exatati.com.br
- Update to 2.5.10:
Kombu 3 consumers will no longer accept pickle/yaml or msgpack
by default, and you will have to explicitly enable untrusted deserializers
either globally using kombu.enable_insecure_serializers, or
using the accept argument to kombu.Consumer.
- New utility function to disable/enable untrusted serializers.
- kombu.disable_insecure_serializers
- kombu.enable_insecure_serializers
- Consumer: `accept` can now be used to specify a whitelist
of content types to accept.
If the accept whitelist is set and a message is received
with a content type that is not in the whitelist then a
:exc:`~kombu.exceptions.ContentDisallowed` exception
is raised. Note that this error can be handled by the already
existing `on_decode_error` callback
Examples:
Consumer(accept=['application/json'])
Consumer(accept=['pickle', 'json'])
- Now depends on amqp 1.0.11
- pidbox: Mailbox now supports the `accept` argument.
- Redis: More friendly error for when keys are missing.
- Connection URLs: The parser did not work well when there were
multiple '+' tokens.
- Remove patch that is no longer needed
-------------------------------------------------------------------
Fri Apr 12 12:06:17 UTC 2013 - toddrme2178@gmail.com
- Change suggests to recommends since suggests are not well supported
- Disable simplejson on openSUSE <= 12.2 since it is not supported
-------------------------------------------------------------------
Thu Apr 11 16:51:37 UTC 2013 - alexandre@exatati.com.br
- Update to 2.5.9:
- Pidbox: Now warns if there are multiple nodes consuming from
the same pidbox.
- Adds Queue.on_declared <kombu.Queue.on_declared>
A callback to be called when the queue is declared,
with signature (name, messages, consumers).
- Now uses fuzzy matching to suggest alternatives to typos in transport
names.
- SQS: Adds new transport option queue_prefix.
Contributed by j0hnsmith.
- pyamqp: No longer overrides verify_connection.
- SQS: Now specifies the driver_type and driver_name
attributes.
Fix contributed by Mher Movsisyan.
- Fixed bug with kombu.utils.retry_over_time when no errback
specified.
-------------------------------------------------------------------
Thu Mar 21 19:59:14 UTC 2013 - alexandre@exatati.com.br
- Update to 2.5.8:
- Now depends on amqp 1.0.10 which fixes a Python 3 compatibility
error.
- Redis: Fixed a possible race condition (Issue #171).
- Redis: Ack emulation/visibility_timeout can now be disabled
using a transport option.
Ack emulation adds quite a lot of overhead to ensure data is safe
even in the event of an unclean shutdown. If data loss do not worry
you there is now an `ack_emulation` transport option you can use
to disable it:
Connection('redis://', transport_options={'ack_emulation': False})
- SQS: Fixed boto v2.7 compatibility (Issue #207).
- Exchange: Should not try to re-declare default exchange ("")
(Issue #209).
- SQS: Long polling is now disabled by default as it was not
implemented correctly, resulting in long delays between receiving
messages (Issue #202).
- Fixed Python 2.6 incompatibility depending on exc.errno
being available.
Fix contributed by Ephemera.
-------------------------------------------------------------------
Fri Mar 8 13:10:29 UTC 2013 - alexandre@exatati.com.br
- Update to 2.5.7:
- Now depends on amqp 1.0.9
- Redis: A regression in 2.5.6 caused the redis transport to
ignore options set in transport_options.
- Redis: New socket_timeout transport option.
- Redis: InconsistencyError is now regarded as a recoverable error.
- Resource pools: Will no longer attempt to release resource
that was never acquired.
- MongoDB: Now supports the ssl option.
Contributed by Sebastian Pawlus.
-------------------------------------------------------------------
Thu Feb 7 19:34:46 UTC 2013 - alexandre@exatati.com.br
- Update to 2.5.5:
SQS: Now supports long polling (Issue #176).
The polling interval default has been changed to 0 and a new
transport option (wait_time_seconds) has been added.
This parameter specifies how long to wait for a message from
SQS, and defaults to 20 seconds, which is the maximum
value currently allowed by Amazon SQS.
Contributed by James Saryerwinnie.
- SQS: Now removes unpickleable fields before restoring messages.
- Consumer.__exit__ now ignores exceptions occurring while
cancelling the consumer.
- Virtual: Routing keys can now consist of characters also used
in regular expressions (e.g. parens) (Issue #194).
- Virtual: Fixed compression header when restoring messages.
Fix contributed by Alex Koshelev.
- Virtual: ack/reject/requeue now works while using basic_get.
- Virtual: Message.reject is now supported by virtual transports
(requeue depends on individual transport support).
- Fixed typo in hack used for static analyzers.
Fix contributed by Basil Mironenko.
-------------------------------------------------------------------
Thu Jan 17 01:43:41 UTC 2013 - alexandre@exatati.com.br
- Add LICENSE file to %doc.
-------------------------------------------------------------------
Mon Jan 14 09:48:21 UTC 2013 - saschpe@suse.de
- Drop build requires on python3-2to3, it's in python3-devel now
- Don't require "python(abi)", RPM does that automatically
-------------------------------------------------------------------
Fri Jan 11 16:05:41 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
- Fix rpmlint shebang warning for test_serialization.py

View File

@ -1,85 +0,0 @@
#
# spec file for package python3-kombu
#
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: python3-kombu
Version: 2.5.10
Release: 0
Summary: AMQP Messaging Framework for Python
License: BSD-2-Clause
Group: Development/Languages/Python
Url: http://github.com/ask/kombu/
Source: http://pypi.python.org/packages/source/k/kombu/kombu-%{version}.tar.gz
BuildRequires: python3
BuildRequires: python3-PyYAML
BuildRequires: python3-amqplib
BuildRequires: python3-anyjson
BuildRequires: python3-devel
BuildRequires: python3-distribute
BuildRequires: python3-mock
BuildRequires: python3-msgpack-python
BuildRequires: python3-nose-cover3
# This package is not compatible with python 3.3 for now,
# please re-enable when this builds properly on
# openSUSE 12.3+
%if 0%{?suse_version} >= 1230
BuildRequires: python3-simplejson
%endif
BuildRequires: python3-unittest2
Requires: python3-amqp >= 1.0.11
Requires: python3-anyjson
Recommends: couchdb
Recommends: mongodb
Recommends: rabbitmq-server
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
An AMQP messaging framework for Python.
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
for message orientation, queuing, routing, reliability and security.
One of the most popular implementations of AMQP is RabbitMQ.
The aim of Kombu is to make messaging in Python as easy as possible by
providing an idiomatic high-level interface for the AMQP protocol, and also
provide proven and tested solutions to common messaging problems.
%prep
%setup -q -n kombu-%{version}
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' ./kombu/tests/test_serialization.py
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
# Testsuite requires mkgpack-python < 0.2.0 because it dropped Python-2.5 support.
# This makes no sense for us, thus:
#sed -i "s/msgpack-python.*/msgpack-python/" requirements/test.txt
#python setup.py test
%files
%defattr(-,root,root,-)
%doc AUTHORS Changelog FAQ README THANKS TODO LICENSE
%{python3_sitelib}/*
%changelog