From 343613bc05504558f1d932afe4753b07c7885875 Mon Sep 17 00:00:00 2001 From: Julien Enselme Date: Aug 01 2019 19:57:52 +0000 Subject: Lower requirement on python-cryptography. --- diff --git a/lower-deps-cryptographie.patch b/lower-deps-cryptographie.patch new file mode 100644 index 0000000..dbd4eb5 --- /dev/null +++ b/lower-deps-cryptographie.patch @@ -0,0 +1,11 @@ +--- a/setup.py 2019-07-22 20:18:46.000000000 +0200 ++++ b/setup.py 2019-08-01 21:49:28.107607851 +0200 +@@ -238,7 +238,7 @@ + install_requires=[ + 'six>=1.11.0', # MIT license + 'txaio>=18.8.1', # MIT license +- 'cryptography>=2.7', # BSD *or* Apache license ++ 'cryptography>=2.6.1', # BSD *or* Apache license + ], + extras_require={ + 'all': extras_require_all, diff --git a/python-autobahn.spec b/python-autobahn.spec index 56a2898..350ae08 100644 --- a/python-autobahn.spec +++ b/python-autobahn.spec @@ -8,7 +8,7 @@ Name: python-%{pypi_name} Version: 19.7.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python networking library for WebSocket and WAMP License: MIT @@ -16,6 +16,10 @@ URL: https://pypi.python.org/pypi/%{pypi_name} # pypi release doen't include README, nor doc, so using github instead # See: https://github.com/tavendo/AutobahnPython/issues/429 Source0: https://github.com/%{project_owner}/%{github_name}/archive/v%{version}/%{github_name}-%{version}.tar.gz +# By default it requires version 2.7 but according to tests and the requirement on twilio, it works with 2.6.1 which is in fedora. +# Until https://bugzilla.redhat.com/show_bug.cgi?id=1715680 is done, this is required. +# Take tare before updating that it is still the case with the updated version. +Patch0: lower-deps-cryptographie.patch BuildArch: noarch %if 0%{with_doc} @@ -89,6 +93,7 @@ HTML documentation %prep %setup -qn %{github_name}-%{version} +%patch0 -p1 # Remove upstream's egg-info rm -rf %{pypi_name}.egg-info @@ -132,6 +137,9 @@ USE_ASYNCIO=1 PYTHONPATH=$(pwd) py.test-%{python3_version} --pyargs autobahn -k %changelog +* Thu Aug 01 2019 Julien Enselme - 19.7.2-2 +- Lower requirement on python-cryptography. + * Tue Jul 30 2019 Julien Enselme - 19.7.2-1 - Update to 19.7.2 - Skip test about random generator which can make build hang.