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

Sylvain Thénault sylvain.thenault at logilab.fr
Fri Mar 3 16:30:16 CET 2017



Le 03/03/2017 à 16:05, Denis Laxalde a écrit :
> 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.

but it isn't. it doesn't work once moved to new layout. I should add a
word about that in the commit message
>
>> +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
>
grmpfh. Can't we see this as a part of cubicweb? ;)

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the saem-devel mailing list