Releases: DSD-DBS/py-capellambse
capellambse v0.5.59
Reverted earlier changes
- model: Remove stop-gap to use old diagram IDs again by @Wuestengecko (3ba8f34)
New features
- model: Don't show
all_*
contents in repr by @Wuestengecko (150f210) - model: Specify format converter dependencies by @Wuestengecko (5269d3d)
Bug fixes
- diagram: Ignore labels with transforms by @ewuerger (9d3f776)
- git: Keep cache locked during init by @Wuestengecko (d38d285)
- model: Ignore UUID dups within AIRD fragments by @Wuestengecko (3f96fb5)
- model: Make DataType.pattern optional by @Wuestengecko (c0512ab)
- model: Expect >1 involving functional chain by @Wuestengecko (83e00c9)
- model: Fix rare exception in ElementList dir() by @Wuestengecko (799c529)
CI/CD changes
- Update to types-lxml stable release by @Wuestengecko (1eb96d9)
capellambse v0.5.58
New features
- model: Use enum's value for XML by @Wuestengecko (d1f9553)
- model: Import all Enums from the metamodel by @Wuestengecko (70117a5)
- model: Forward diagram XML objects to Diagram by @Wuestengecko (66eb25e)
- decl: Resolve promises for sync find by @huyenngn (33edeae)
- loader: Automate namespace management by @Wuestengecko (aa654a7)
- Add methods for viewpoint management by @Wuestengecko (763ed2d)
- Add viewpoint names to known namespaces by @Wuestengecko (2c674d0)
Performance improvements
- glart: Only look up the cache once by @Wuestengecko (f03db80)
Bug fixes
- Add Capella nature to test project by @jamilraichouni (46328de)
- model: Declare R/O diagram attributes statically R/O by @Wuestengecko (ba19ef8)
- model: Ignore missing follow in LinkAccessor by @Wuestengecko (8f4a483)
- svg: Fix symbol label wrapping by @ewuerger (ec537eb)
- readme: Fix second link to intro notebook by @Wuestengecko (006f9ba)
- model: Modify existing object instead of replacing for RoleTagAccessor by @huyenngn (01b93ab)
- Remove broken
Association.source_role
by @Wuestengecko (801c8cd) - svg: Fix labels of objects with feature lines by @ewuerger (83e5544)
Documentation changes
- Fix broken anchor for "Specifying models" by @Wuestengecko (f4a6e9c)
- repl: Improve documentation of the REPL by @Wuestengecko (2831d6b)
Code refactorings
- model: Adjust Enums to match metamodel by @Wuestengecko (debbbe2)
- model: Use Accessor for OperationalActivity inputs/outputs by @ewuerger (c2fe605)
- Simplify namespace version checks by @Wuestengecko (d7eb8f4)
capellambse v0.5.57
New features
- repl: Add a little fzf wrapper function by @Wuestengecko (d9a3de0)
- model: Allow specifying classes on RoleTagAccessor by @Wuestengecko (e68c3a4)
- model: Recognize wildcard classes in search by @Wuestengecko (1e2b069)
- model: Generate hlink URLs in
_short_html_
by @Wuestengecko (f550180)
Bug fixes
- model: Use correct XML tags for
*Function
classes by @Wuestengecko (429a753) - model: Fix links to owned functions by @Wuestengecko (6cdd5a3)
- model: Fix functional allocations and deployment links by @Wuestengecko (86d3d53)
Documentation changes
- Use markdown for README and CONTRIBUTING by @Wuestengecko (d3966f5, d00da25)
capellambse v0.5.56
Notable changes
- With this release, capellambse supports the new environment variable
CAPELLAMBSE_LEGACY_DIAGRAM_IDS
. When set to a non-empty string,capellambse.model.diagram.Diagram
objects will report the pre-0.5.52 IDs on theiruuid
field. This is intended as a stop-gap measure to aid in migrating code that expects the old IDs, and should not be used or relied on with newly written code. It will eventually be removed again.
Full changelog
New features
- model: Expose SA metamodel as
model.sa
by @Wuestengecko (1529d16) - model: Expose the representation path on diagrams by @Wuestengecko (c8cd58e)
- Add a helper for transforming
hlink://
URLs by @Wuestengecko (0bc2bdd) - Implement replacing model objects for RoleTagAccessors by @huyenngn (4f05ca2)
Performance improvements
- git: Use tree-less partial clones by @Wuestengecko (b00b6b6)
Bug fixes
- git: Resolve default branch by @huyenngn (203041c)
- model: Add stop-gap to use old diagram IDs downstream by @Wuestengecko (44712de)
Documentation changes
- Update
load_model_extensions
docstring by @Wuestengecko (be93e53)
CI/CD changes
- Add pyupgrade hook by @Wuestengecko (79ce1b6)
Unit test changes
- Move git-specific test over to git test file by @Wuestengecko (a91c83a)
Code refactorings
- Type-check with
types-lxml
by @Wuestengecko (2e7b39e)
capellambse v0.5.55
capellambse v0.5.54
Notable changes
-
Declarative YAML gained a new
!find
tag, an alternative to!uuid
that finds a model element by looking for specific attribute values. -
The declarative YAML gained a new "sync" operation, which can greatly help when trying to bring in content into a model from external sources. Acting like a combination of "extend" and "modify" combined with the new
!find
tag, they allow to more easily avoid duplication and enable great simplifications in code that generates the YAML.Check out the new documentation for more details: https://dsd-dbs.github.io/py-capellambse/start/declarative.html#synchronizing-objects
Full changelog
New features
- decl: Implement
!find
by @Wuestengecko (e5d991a) - decl: Implement a "sync" operation by @Wuestengecko (e29ec8b, 291f318, d541fae)
- decl: Resolve promises for
parent
by @Wuestengecko (f16f64a) - decl: Support
capellambse.new_object
by @Wuestengecko (687057a) - decl: Un-deprecate the "create" key by @Wuestengecko (119e777)
- model: Implement delete for RoleTagAccessors by @huyenngn (30bd3e4)
Performance improvements
- model: Add more efficient "contains" check to ElementList instances by @Wuestengecko (6514f44)
- model: Memoize Diagram.nodes by @Wuestengecko (3f10866)
Bug fixes
- decl: Delete lists using
clear
by @Wuestengecko (06d3207) - model: Unify naming schema for min/max_value by @Wuestengecko (0805c94)
- svg: Use the same font definitions everywhere by @Wuestengecko (056bebd)
Unit test changes
- model: Fix double-space in function name by @Wuestengecko (c6aa43d)
- Ensure that capellambse is installed by @Wuestengecko (0246f70)
capellambse v0.5.53
Bug fixes
- aird: Unquote viewpoint string by @Wuestengecko (ea8c2bb)
- loader: Report
<Project>
name as model title by @Wuestengecko (8acc074)
capellambse v0.5.52
Notable changes
-
The UUIDs reported for diagrams have changed. Diagram caches created before this version of py-capellambse are incompatible with the new release and have to be recreated.
-
You can now load models from ZIP files, including ones hosted on remote servers, using URLs like
zip+https://some.url/path/to/mymodel.zip
. See the documentation about the ZIP file handler for more details and examples.
Full changelog
New features
- cli: Fall back to treating strings as URLs by @Wuestengecko (0b4ca00)
- filehandler: Allow is_file/dir on FileHandler by @Wuestengecko (8667e1a)
- http: Log requested URL and response status by @Wuestengecko (2c9c1ef)
- Add Capella's demo models as "known models" by @Wuestengecko (ff5249f)
- Add support for loading models from ZIP files by @Wuestengecko (0121b50)
- Work with DRepresentationDescriptor objects by @Wuestengecko (6dcdaee)
Bug fixes
- loader: Handle resources in write_tmp_project_dir by @Wuestengecko (5cf9cc3)
- native: Remove destination before copying into container by @Wuestengecko (0114b06)
CI/CD changes
- Update pre-commit hooks by @Wuestengecko (b29590d)
Unit test changes
- Shorten code in printed stack traces by @Wuestengecko (c11062d)
capellambse v0.5.51
New features
- diagram: Add styling for primitive
Class
es by @ewuerger (097891e) - repl: Improve help text and banner by @Wuestengecko (dcafcb8)
Bug fixes
- filehandler: Normalize 'self.subdir' by @Wuestengecko (e69e7e2)
- svg: Add dependency for LogicalHumanActorSymbol by @ewuerger (70a0dfc)
- Replace references to deprecated
capella/cli
image by @MoritzWeber0 (c1b0204)
Documentation changes
- git: Move cache_dir docstring to the attribute by @Wuestengecko (c20586b)
- Remove make.bat by @Wuestengecko (f246ed0)
- Repair various APIDOC / docstring related issues by @freshavocado7, @Wuestengecko (e273f7c, f16f2ea, c0e00e5)
- Treat Sphinx warnings as errors by @Wuestengecko (28a86a1)
Build system changes
- Simplify dependency management by @Wuestengecko (97e9cd8)
CI/CD changes
- Enforce
pre-commit
version >= 3.2.0 by @MoritzWeber0 (9eb62cf) - Use custom fork of 'reuse' tool by @Wuestengecko (f577f47)
- Use upstream pylint hook by @Wuestengecko (6abf823)
capellambse v0.5.50
Bug fixes
- model: Fix CapabilityRealization.involved_components by @Wuestengecko (2006c0a)
- svg: Remove invalid Path attributes by @ewuerger (87105cb)
CI changes
- Ignore D1xx warnings globally by @Wuestengecko (ecfc5fe)
- Update pre-commit hooks once more by @Wuestengecko (40dd3fa)