From f0f06cd266738f79b0f848a54b433e5f889f8438d8d3388004ed3eb8ab65a100 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 10 Nov 2020 04:09:23 +0000 Subject: [PATCH] - Update to 5.0.1: * Require vine 5.0.0. * Stop to use deprecated method ssl.wrap_socket. * Dropped Python 3.5 support. * Removed additional compatibility code. * Dropped Python 2.x support. * Dropped Python 3.4 support. - Add vine-no-double-equals-deps.patch that loosens the vine requirement OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-amqp?expand=0&rev=70 --- amqp-2.6.1.tar.gz | 3 --- amqp-5.0.1.tar.gz | 3 +++ python-amqp.changes | 12 ++++++++++++ python-amqp.spec | 10 ++++++---- vine-no-double-equals-deps.patch | 7 +++++++ 5 files changed, 28 insertions(+), 7 deletions(-) delete mode 100644 amqp-2.6.1.tar.gz create mode 100644 amqp-5.0.1.tar.gz create mode 100644 vine-no-double-equals-deps.patch diff --git a/amqp-2.6.1.tar.gz b/amqp-2.6.1.tar.gz deleted file mode 100644 index 045a163..0000000 --- a/amqp-2.6.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:70cdb10628468ff14e57ec2f751c7aa9e48e7e3651cfd62d431213c0c4e58f21 -size 119956 diff --git a/amqp-5.0.1.tar.gz b/amqp-5.0.1.tar.gz new file mode 100644 index 0000000..26c96e8 --- /dev/null +++ b/amqp-5.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9881f8e6fe23e3db9faa6cfd8c05390213e1d1b95c0162bc50552cad75bffa5f +size 118759 diff --git a/python-amqp.changes b/python-amqp.changes index 110420b..b50213e 100644 --- a/python-amqp.changes +++ b/python-amqp.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Nov 10 03:55:27 UTC 2020 - Steve Kowalik + +- Update to 5.0.1: + * Require vine 5.0.0. + * Stop to use deprecated method ssl.wrap_socket. + * Dropped Python 3.5 support. + * Removed additional compatibility code. + * Dropped Python 2.x support. + * Dropped Python 3.4 support. +- Add vine-no-double-equals-deps.patch that loosens the vine requirement + ------------------------------------------------------------------- Tue Aug 4 12:09:50 UTC 2020 - Dirk Mueller diff --git a/python-amqp.spec b/python-amqp.spec index 8e16134..2aaa350 100644 --- a/python-amqp.spec +++ b/python-amqp.spec @@ -17,21 +17,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-amqp -Version: 2.6.1 +Version: 5.0.1 Release: 0 Summary: Low-level AMQP client for Python (fork of amqplib) License: LGPL-2.1-or-later -Group: Development/Languages/Python URL: http://github.com/celery/py-amqp Source: https://files.pythonhosted.org/packages/source/a/amqp/amqp-%{version}.tar.gz +Patch0: vine-no-double-equals-deps.patch BuildRequires: %{python_module case >= 1.3.1} BuildRequires: %{python_module pytest >= 3.0} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module vine >= 1.1.3} +BuildRequires: %{python_module vine >= 5.0.0} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-vine >= 1.1.3 +Requires: python-vine >= 5.0.0 BuildArch: noarch %python_subpackages @@ -43,6 +44,7 @@ This library should be API compatible with librabbitmq. %prep %setup -q -n amqp-%{version} +%autopatch -p1 # requires internet connection: rm t/integration/test_rmq.py diff --git a/vine-no-double-equals-deps.patch b/vine-no-double-equals-deps.patch new file mode 100644 index 0000000..9f119d2 --- /dev/null +++ b/vine-no-double-equals-deps.patch @@ -0,0 +1,7 @@ +Index: amqp-5.0.1/requirements/default.txt +=================================================================== +--- amqp-5.0.1.orig/requirements/default.txt ++++ amqp-5.0.1/requirements/default.txt +@@ -1 +1 @@ +-vine==5.0.0 ++vine>=5.0.0