[pkg] Set an upper bound to passlib
We're using a deprecated API and are getting the following deprecation
warning:
::
the method passlib.context.CryptContext.encrypt() is deprecated as of
Passlib 1.7, and will be removed in Passlib 2.0, use CryptContext.hash()
instead.
So let's make sure we're getting a working library.
[ci skip]
--- a/cubicweb.spec Fri Dec 09 15:08:52 2016 +0100
+++ b/cubicweb.spec Wed Dec 07 14:07:35 2016 +0100
@@ -27,7 +27,7 @@
Requires: %{python}-rql >= 0.34.0
Requires: %{python}-yams >= 0.44.0
Requires: %{python}-logilab-database >= 1.15.0
-Requires: %{python}-passlib
+Requires: %{python}-passlib < 2.0
Requires: %{python}-lxml
Requires: %{python}-twisted-web < 16.0.0
Requires: %{python}-markdown
--- a/debian/control Fri Dec 09 15:08:52 2016 +0100
+++ b/debian/control Wed Dec 07 14:07:35 2016 +0100
@@ -25,7 +25,7 @@
python-pyramid,
python-pyramid-multiauth,
python-waitress,
- python-passlib,
+ python-passlib (<< 2.0),
python-wsgicors,
sphinx-common,
Standards-Version: 3.9.6
--- a/setup.py Fri Dec 09 15:08:52 2016 +0100
+++ b/setup.py Wed Dec 07 14:07:35 2016 +0100
@@ -223,7 +223,7 @@
'yams >= 0.44.0',
'lxml',
'logilab-database >= 1.15.0',
- 'passlib',
+ 'passlib < 2.0',
'pytz',
'Markdown',
'unittest2 >= 0.7.0',