forked from pool/python-pika
Accepting request 638342 from devel:languages:python
- Add 1119-increase_timeouts.patch to increase timeouts and hopefully make tests more resilient. - Fix %files section double inclduing egg files. - Switch to github tarball in order to get tests - Run the tests - Version update to 0.12.0: * BlockingConnection now supports the add_callback_threadsafe method which allows a function to be executed correctly on the IO loop thread. - Added Dep: Pika requires ssl python module provided by python - Fix license macro OBS-URL: https://build.opensuse.org/request/show/638342 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pika?expand=0&rev=9
This commit is contained in:
3
0.12.0.tar.gz
Normal file
3
0.12.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3b1bd9025b63ad6fdd183dd79010620fa168966adda6154a23a7d5ed4f88cf9d
|
||||||
|
size 243292
|
22
1119-increase_timeouts.patch
Normal file
22
1119-increase_timeouts.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
diff --git a/tests/unit/select_connection_ioloop_tests.py b/tests/unit/select_connection_ioloop_tests.py
|
||||||
|
index d5c9cf1..a9a49de 100644
|
||||||
|
--- a/tests/unit/select_connection_ioloop_tests.py
|
||||||
|
+++ b/tests/unit/select_connection_ioloop_tests.py
|
||||||
|
@@ -33,7 +33,7 @@ KQUEUE_SUPPORTED = hasattr(select, 'kqueue')
|
||||||
|
|
||||||
|
class IOLoopBaseTest(unittest.TestCase):
|
||||||
|
SELECT_POLLER = None
|
||||||
|
- TIMEOUT = 1.0
|
||||||
|
+ TIMEOUT = 1.5
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
select_type_patch = mock.patch.multiple(
|
||||||
|
@@ -182,7 +182,7 @@ class IOLoopTimerTestSelect(IOLoopBaseTest):
|
||||||
|
|
||||||
|
"""
|
||||||
|
NUM_TIMERS = 5
|
||||||
|
- TIMER_INTERVAL = 0.02
|
||||||
|
+ TIMER_INTERVAL = 0.25
|
||||||
|
SELECT_POLLER = 'select'
|
||||||
|
|
||||||
|
def set_timers(self):
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b87fd6b339450f531b8cba3bc02d8448cab15798032c02b7601367d09abc3818
|
|
||||||
size 96381
|
|
@@ -1,3 +1,33 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 22 14:27:35 UTC 2018 - Matěj Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add 1119-increase_timeouts.patch to increase timeouts and hopefully
|
||||||
|
make tests more resilient.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 21 12:08:33 CEST 2018 - mcepl@suse.com
|
||||||
|
|
||||||
|
- Fix %files section double inclduing egg files.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 19 10:57:35 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to github tarball in order to get tests
|
||||||
|
- Run the tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 19 10:56:13 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Version update to 0.12.0:
|
||||||
|
* BlockingConnection now supports the add_callback_threadsafe method which
|
||||||
|
allows a function to be executed correctly on the IO loop thread.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 19 09:57:08 UTC 2018 - Dominik Heidler <dheidler@suse.de>
|
||||||
|
|
||||||
|
- Added Dep: Pika requires ssl python module provided by python
|
||||||
|
- Fix license macro
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 17 19:43:21 UTC 2017 - sean.marlow@suse.com
|
Tue Oct 17 19:43:21 UTC 2017 - sean.marlow@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pika
|
# spec file for package python-pika
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,28 +12,32 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define mod_name pika
|
%define mod_name pika
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-%{mod_name}
|
Name: python-%{mod_name}
|
||||||
Version: 0.11.0
|
Version: 0.12.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://pika.github.com/
|
|
||||||
Summary: Pika Python AMQP Client Library
|
Summary: Pika Python AMQP Client Library
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pika/pika-%{version}.tar.gz
|
URL: https://github.com/pika/pika
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: https://github.com/pika/pika/archive/%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
Patch: 1119-increase_timeouts.patch
|
||||||
|
BuildRequires: %{python_module Twisted}
|
||||||
|
BuildRequires: %{python_module mock}
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module tornado}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python
|
||||||
|
Recommends: python-Twisted
|
||||||
|
Recommends: python-tornado
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -44,6 +48,10 @@ should also work with other AMQP 0-9-1 brokers.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{mod_name}-%{version}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
|
%patch -p1
|
||||||
|
# acceptance needs running configured server
|
||||||
|
rm -rf tests/acceptance/
|
||||||
|
sed -i -e 's:,tests/acceptance::' setup.cfg
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -53,11 +61,15 @@ should also work with other AMQP 0-9-1 brokers.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{mod_name}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{mod_name}
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/*.egg-info
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/*.egg-info
|
||||||
|
|
||||||
|
%check
|
||||||
|
for i in $(seq 5) ; do
|
||||||
|
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}"% nosetests-%{$python_bin_suffix} tests/
|
||||||
|
done
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%doc README.rst CHANGELOG.rst
|
||||||
%doc README.rst LICENSE
|
%license LICENSE
|
||||||
# You may have to add additional files here (documentation and binaries mostly)
|
# You may have to add additional files here (documentation and binaries mostly)
|
||||||
%python_sitelib/%{mod_name}*
|
%{python_sitelib}/%{mod_name}*
|
||||||
%python_sitelib/*.egg-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user