[PATCH 1 of 4 compound V2] Move to package layout

Denis Laxalde denis.laxalde at logilab.fr
Fri Mar 3 16:05:30 CET 2017


Sylvain Thenault a écrit :
> # HG changeset patch
> # User Sylvain Thénault <sylvain.thenault at logilab.fr>
> # Date 1488550677 -3600
> #      Fri Mar 03 15:17:57 2017 +0100
> # Node ID 390dc681b9201acfccacbe85c348351ba352cb10
> # Parent  d7e9816bb2fe64e9911acdb2d60da34f293afb9a
> Move to package layout
>

> diff --git a/entities.py b/cubicweb_compound/entities.py
> rename from entities.py
> rename to cubicweb_compound/entities.py
> --- a/entities.py
> +++ b/cubicweb_compound/entities.py
> @@ -27,19 +27,14 @@ Assumptions:
>  .. _container: https://www.cubicweb.org/project/cubicweb-container
>  """
>
>  from itertools import chain
>
> -from logilab.common import deprecation
> -
>  from cubicweb.view import EntityAdapter
>  from cubicweb.predicates import is_instance, partial_relation_possible
>
> -from cubes.compound import CompositeGraph
> -
> -deprecator = deprecation.DeprecationManager("cubes.compound")
> -structure_def = deprecator.moved('0.3', 'cubes.compound', 'structure_def')

This looks unrelated.

> +from . import CompositeGraph
>
>
>  def copy_entity(original, **attributes):
>      """Return a copy of an entity.
>

> diff --git a/setup.py b/setup.py
> --- a/setup.py
> +++ b/setup.py
> @@ -2,11 +2,11 @@
>  # pylint: disable=W0142,W0403,W0404,W0613,W0622,W0622,W0704,R0904,C0103,E0611
>  #
>  # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
>  # contact http://www.logilab.fr/ -- mailto:contact at logilab.fr
>  #
> -# This file is part of CubicWeb tag cube.
> +# This file is part of CubicWeb.

This file is part of cubicweb-compound



More information about the saem-devel mailing list