Accept '==' operator in cubes dependencies
authorChristophe de Vienne <christophe@unlish.com>
Fri, 19 Sep 2014 13:08:26 +0200
changeset 10060 08dc10ef9ab1
parent 10059 dab538127d72
child 10061 ecbfec2da8a2
Accept '==' operator in cubes dependencies '==' is the operator used in the python dependencies specifications. See PEP 440 http://legacy.python.org/dev/peps/pep-0440/#version-specifiers Using the same operator in cubes dependencies allow to make setuptools handle the cubes dependencies while keeping cubicweb happy about the dependencies. Closes #4375144
migration.py
--- a/migration.py	Tue Sep 23 13:51:12 2014 +0200
+++ b/migration.py	Fri Sep 19 13:08:26 2014 +0200
@@ -524,7 +524,7 @@
                 self.errors.append( ('add', cube, version, source) )
             elif versions:
                 lower_strict = version_strictly_lower(self.cubes[cube], version)
-                if oper in ('>=','='):
+                if oper in ('>=','=','=='):
                     if lower_strict:
                         self.errors.append( ('update', cube, version, source) )
                 elif oper is None: