From 39227b41ded8766e53277ec676c2f587783ca21440ef51c81d1aa039e2371268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 19 Sep 2018 11:08:34 +0000 Subject: [PATCH] - 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pika?expand=0&rev=17 --- 0.12.0.tar.gz | 3 +++ pika-0.11.0.tar.gz | 3 --- python-pika.changes | 13 +++++++++++++ python-pika.spec | 30 +++++++++++++++++++----------- 4 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 0.12.0.tar.gz delete mode 100644 pika-0.11.0.tar.gz diff --git a/0.12.0.tar.gz b/0.12.0.tar.gz new file mode 100644 index 0000000..a01cead --- /dev/null +++ b/0.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b1bd9025b63ad6fdd183dd79010620fa168966adda6154a23a7d5ed4f88cf9d +size 243292 diff --git a/pika-0.11.0.tar.gz b/pika-0.11.0.tar.gz deleted file mode 100644 index 65eede3..0000000 --- a/pika-0.11.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b87fd6b339450f531b8cba3bc02d8448cab15798032c02b7601367d09abc3818 -size 96381 diff --git a/python-pika.changes b/python-pika.changes index ea6e5b8..9d1fdcc 100644 --- a/python-pika.changes +++ b/python-pika.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Sep 19 10:57:35 UTC 2018 - Tomáš Chvátal + +- Switch to github tarball in order to get tests +- Run the tests + +------------------------------------------------------------------- +Wed Sep 19 10:56:13 UTC 2018 - Tomáš Chvátal + +- 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 diff --git a/python-pika.spec b/python-pika.spec index 611254b..73bef2d 100644 --- a/python-pika.spec +++ b/python-pika.spec @@ -12,28 +12,31 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define mod_name pika - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-%{mod_name} -Version: 0.11.0 +Version: 0.12.0 Release: 0 -Url: http://pika.github.com/ Summary: Pika Python AMQP Client Library License: BSD-3-Clause Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/p/pika/pika-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +URL: https://github.com/pika/pika +Source: https://github.com/pika/pika/archive/%{version}.tar.gz +BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module tornado} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python +Recommends: python-Twisted +Recommends: python-tornado BuildArch: noarch - %python_subpackages %description @@ -44,6 +47,9 @@ should also work with other AMQP 0-9-1 brokers. %prep %setup -q -n %{mod_name}-%{version} +# acceptance needs running configured server +rm -rf tests/acceptance/ +sed -i -e 's:,tests/acceptance::' setup.cfg %build %python_build @@ -53,12 +59,14 @@ should also work with other AMQP 0-9-1 brokers. %python_expand %fdupes %{buildroot}%{$python_sitelib}/%{mod_name} %python_expand %fdupes %{buildroot}%{$python_sitelib}/*.egg-info +%check +%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}"% nosetests-%{$python_bin_suffix} tests/ + %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst +%doc README.rst CHANGELOG.rst %license LICENSE # You may have to add additional files here (documentation and binaries mostly) -%python_sitelib/%{mod_name}* -%python_sitelib/*.egg-info +%{python_sitelib}/%{mod_name}* +%{python_sitelib}/*.egg-info %changelog