[PATCH 3 of 5 i18nfield] Fix cubicweb version

Philippe Pepiot philippe.pepiot at logilab.fr
Tue Mar 17 13:25:03 CET 2020


On 16/03/2020, noe.gaumont at logilab.fr wrote:
> # HG changeset patch
> # User Noe Gaumont <ngaumont at logilab.fr>
> # Date 1584355827 -3600
> #      Mon Mar 16 11:50:27 2020 +0100
> # Node ID 7f826537f3792e6dad5c78db518dc4ad6e89b826
> # Parent  eb927e13444bec5b5ed243e2d23ad887bf122c39
> # Available At https://hg.logilab.org/review/cubes/i18nfield
> #              hg pull https://hg.logilab.org/review/cubes/i18nfield -r 7f826537f379
> Fix cubicweb version

Can you explain why in the commit message ? I guess this is because
cubicweb 3.27 isn't py2 and make tests fails. In this case I'd suggest a
line in tox.ini instead, so people using py3 can install this along with
cubicweb 3.27

[testenv]
deps =
  py27: cubicweb<3.27

Also we have an issue with our cubicweb packaging, our call to
setup() should python_requires=">3.4" (and ">3.6" for default branch).
I was pretty sure to send such commit before 3.27 release but looks I
missed this :/ (yaml & rql are OK regarding this).

> diff --git a/cubicweb_i18nfield/__pkginfo__.py b/cubicweb_i18nfield/__pkginfo__.py
> --- a/cubicweb_i18nfield/__pkginfo__.py
> +++ b/cubicweb_i18nfield/__pkginfo__.py
> @@ -15,7 +15,7 @@ description = 'Provides a way to transla
>  web = 'http://www.cubicweb.org/project/%s' % distname
>  
>  __depends__ = {
> -    'cubicweb': '>= 3.24',
> +    'cubicweb': '>= 3.24,<3.27',
>      'cubicweb-card': '>= 0.5',
>  }
>  
> 



More information about the cubicweb-devel mailing list