Pyecore-py2

Latest version: v0.9.0

Safety actively analyzes 621706 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 7

0.9.0

+++++

**Features**

- Add URI mapper like support. This mapper allows you to map a new URI or an
URI start that can be later resolved if required. The typical use case is When
dealing with Eclipse XMI where there is some ``plateforme://xxx/yyy`` uri.

- Add ``iD`` attribute support for ``EAttribute`` in XMI serialization. This
feature ensure that if an ``EAttribute`` is defined in an ``EClass`` with its
``iD`` attribute set to ``True``, then, this attribute value will be used in
the XMI serialization in order to save the reference towards the element.
However, if an ``xmi:id`` is set to the element, the reference will use this
xmi id no matter what.

- Add safe compilation of generated ``EOperation`` using ``RestrictedPython``
(Thanks `CFAndy <https://github.com/CFAndy>`_). The compilation of generated
method is now performed using a 'safe' context. Even is the current generated
code does not use special methods or functions, in future version, it is
planed that PyEcore will be able to fetch behaviors that could be directly
added to the ``.ecore``.


**Bugfixes**

- Fix issue with resolved fragment in resource when loading it. This bug was
affecting resources with crossrefs towards different resources but whith the
same fragment (eg: ``my-uri1//A`` and ``my-uri2//A``). In this case, the
first resolved fragment were always returned, even if it was said as part of
another resource.

- Add missing registration of ``ELong`` datatype.

- Fix issue when an object is moved to another container. An issue was occuring
when an object moved from a container to another container. Currently, the
object properly saw that it moved to another container, but the container
collection/attribute was not aware that the object migrated to another
container.



**Miscellaneous**

- Use a common 'uuid format' for XMI resources (easily overrideable).
- Switch from 'collection' to 'collection.abc' for Python 3.7.
- Update documentation fixing missing ``eType`` in example.

0.8.8

+++++

**Bugfixes**

- Fix out of sync XMI/JSON serialization (Thanks `CFAndy <https://github.com/CFAndy>`_).
When multiple XMI/JSON are serialized at the end of a program, some files are
not serialized properly. To avoid this behavior, a flush of the produced file
is performed at the end of the ``save()`` method for each ``Resource``.

0.8.7

+++++

**Bugfixes**

- Fix Json resource deserialization for primitive collections (Thanks `afonsobspinto <https://github.com/afonsobspinto>`_). The Json deserialization
was always assuming that when a collection was found in the Json, it always
was a collection of ``EObject`` whereas they could also be primitive values.

**Miscellaneous**

- Add some performance improvements in resources deserialization.

0.8.6

+++++

**Bugfixes**

- Fix issue with URI spliting during json deserialization.
- Fix issue with redundant attributes in json format (Thanks `TerryKingston <https://github.com/TerryKingston>`_!).
Having redundant attributes for opposite containment relationship in the json
serialized resource introduced the installation of a new proxy instead of the
proper object resolution.

**Miscellaneous**

- Add performances improvement in json deserialization.

0.8.5

+++++

**Bugfixes**

- Fix issue with the new version of the ``ordered-set`` dependency. The new
version introduces a change in the way the sublist returned from a slices
is managed. The fix proposed in PyEcore introduces a patch for the
``OrderedSet`` class that proposes the same behavior from the new version
while letting the opportunity to change it when subclassing ``OrderedSet``.

0.8.4

+++++

**Bugfixes**

- Fix issue with empty strings in XMI for 'many' ``EAttribute``.

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.