[PATCH] [setup] make sonarqube happy

Denis Laxalde denis.laxalde at logilab.fr
Mon Jun 11 15:56:43 CEST 2018


Nicolas Chauvat a écrit :
> # HG changeset patch
> # User Nicolas Chauvat <nicolas.chauvat at logilab.fr>
> # Date 1528304414 -7200
> #      Wed Jun 06 19:00:14 2018 +0200
> # Node ID 4502211155a5213024dc6a670ebc1bf8529b9408
> # Parent  ea81a3f572bce63c0f5a61839a70ddbb1f7178ab
> [setup] make sonarqube happy
> 
> diff --git a/setup.py b/setup.py
> --- a/setup.py
> +++ b/setup.py
> @@ -34,11 +34,11 @@ data_files = __pkginfo__.get('data_files
>  dependency_links = __pkginfo__.get('dependency_links', ())
>  
>  requires = {}
>  for entry in ("__depends__",):  # "__recommends__"):
>      requires.update(__pkginfo__.get(entry, {}))
> -install_requires = ["{0} {1}".format(d, v and v or "").strip()
> +install_requires = ["{0} {1}".format(d, v if v else "").strip()
>                      for d, v in requires.items()]

What is the base revision this patch should be applied on? This code
does not exist anymore in cubicweb >= 3.24 I think (dropped in
6c263b8091d3, in 2016).

>  
>  setup(
>      name=distname,
>      version=version,
> 


More information about the cubicweb-devel mailing list