[PATCH 2 of 2 V2] [pkg] make cubicweb[crypto] depends on pycryptodome instead of pycrypto

Philippe Pepiot philippe.pepiot at logilab.fr
Fri May 17 17:49:51 CEST 2019


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1558105860 -7200
#      Fri May 17 17:11:00 2019 +0200
# Node ID 6db2f58729087686fd40ad87dcf1e8745bb91836
# Parent  f5ed5dc5d9d5e131875febcc16c61cb683243ade
# Available At https://hg.logilab.org/review/cubicweb
#              hg pull https://hg.logilab.org/review/cubicweb -r 6db2f5872908
[pkg] make cubicweb[crypto] depends on pycryptodome instead of pycrypto

pycrypto isn't maintained anymore, the last release 2.6.1 is from 2014.

Use the drop-in replacement fork pycryptodome instead.
pycryptodome is packaged in debian starting from stretch-backports.

BTW, our debian packaging is broken because we are now python3 only and we still package for python2...

diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -59,7 +59,7 @@ Recommends:
  python-cubicweb-pyramid (= ${source:Version}),
 # common recommends
  python-simpletal (>= 4.0),
- python-crypto,
+ python-pycryptodome,
 # web recommends (mostly)
  python-docutils (>= 0.6),
  python-vobject,
diff --git a/requirements/test-misc.txt b/requirements/test-misc.txt
--- a/requirements/test-misc.txt
+++ b/requirements/test-misc.txt
@@ -6,6 +6,7 @@ webtest
 
 ## cubicweb/test
 Pygments
+pycryptodome
 #fyzz XXX pip install fails
 
 ## cubicweb/devtools/test
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -87,7 +87,7 @@ setup(
             'Pillow',
         ],
         'crypto': [
-            'pycrypto',
+            'pycryptodome',
         ],
         'ext': [
             'docutils >= 0.6',



More information about the cubicweb-devel mailing list