From 58327fb08d2affb6220cd6e46961bb13d3730d82dd946a95db212b2514e65703 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 1 Nov 2020 17:58:41 +0000 Subject: [PATCH] - Added: - `textx generate`. Documented passing in arbitrary parameters which can be used in the generator function. Also, implemented passing of model parameters defined in the meta-model (`model_param_defs` and `_tx_model_params`) ([#299]) - `get_location` function for producing `line/col/filename` from any textX object. ([#294]) - `builtin_models` of type `ModelRepository` to meta-model constructor. Used to supply pre-loaded models for `ImportURI` based scoping providers as a fallback to search into. ([#284]) - Initial implementation of TEP-001 ([#111]) allowing to specify scope provider behavior within the grammar itself. [#274] and [#287] introduce the RREL (reference resolving expression language) to define how references are resolved. Details see `rrel.md`. - Parameter `should_follow` of callable type to `get_children` and `get_children_of_type` model API calls to decide if the element should be traversed. ([#281]) - Fixed: - Fixed bug with Falsy user classes in `get_children` ([#288]) - Fixed bug with unhashable objects during dot export ([#283]) - Fixed bug where (Ext)RelativeName scope providers accepted any referenced object that contained the lookup name in its name. Thanks ipa-mdl@GitHub ([#267]) - Fixed bug in `flow_dsl` test project causing static files not being included in package build/installation. Thanks sebix@GitHub ([#272]). - Fixed bug, where user classes not used in the grammar caused exceptions ([#270]): now, when passing a list of user classes, you need to use them in your grammar. You can alternatively also pass a callable (see metamodel.md; [#273]). Also, using base classes for rules from imported grammars in conjunction with user classes is not allowed and results in an exception. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textX?expand=0&rev=31 --- python-textX.changes | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/python-textX.changes b/python-textX.changes index 9df3ac5..25800d6 100644 --- a/python-textX.changes +++ b/python-textX.changes @@ -3,6 +3,47 @@ Sun Nov 1 17:56:21 UTC 2020 - Sebastian Wagner - remove fix_tests_setupcfg.patch, included upstream - update to version 2.3.0: + - Added: + - `textx generate`. Documented passing in arbitrary parameters which can be + used in the generator function. Also, implemented passing of model + parameters defined in the meta-model (`model_param_defs` and + `_tx_model_params`) ([#299]) + - `get_location` function for producing `line/col/filename` from any textX + object. ([#294]) + - `builtin_models` of type `ModelRepository` to meta-model constructor. Used + to supply pre-loaded models for `ImportURI` based scoping providers as a + fallback to search into. ([#284]) + - Initial implementation of TEP-001 ([#111]) allowing to specify scope + provider behavior within the grammar itself. [#274] and [#287] introduce + the RREL (reference resolving expression language) to define how + references are resolved. Details see `rrel.md`. + - Parameter `should_follow` of callable type to `get_children` and + `get_children_of_type` model API calls to decide if the element should be + traversed. ([#281]) + - Fixed: + - Fixed bug with Falsy user classes in `get_children` ([#288]) + - Fixed bug with unhashable objects during dot export ([#283]) + - Fixed bug where (Ext)RelativeName scope providers accepted any referenced + object that contained the lookup name in its name. Thanks ipa-mdl@GitHub + ([#267]) + - Fixed bug in `flow_dsl` test project causing static files not being included + in package build/installation. Thanks sebix@GitHub ([#272]). + - Fixed bug, where user classes not used in the grammar caused exceptions + ([#270]): now, when passing a list of user classes, you need to use them in + your grammar. You can alternatively also pass a callable (see metamodel.md; + [#273]). Also, using base classes for rules from imported grammars in + conjunction with user classes is not allowed and results in an exception. + - Fixed bug in `export.py` concerning html escaping in the dot export of a + textx meta-model ([#276]). + - Changed: + - `_tx_model_param_definitions` deprecated in favor of `model_param_defs` ([#298]). + - `click` is now an optional dependency, only when CLI is needed ([#292]) + - Make warning about not overwriting generated file more visible + ([01341ec3](https://github.com/textX/textX/commit/01341ec381bfb4c8c27bcec5d2998a34d207f430)) + - Truncate long strings during dot export for better diagram readability ([#282]). + - Changed `unhashable type` exception when a list is used for `name` attributes by + raising a more informative exception and extending docs to document the issue + and a proper way to solve it ([#40], [#266]). ------------------------------------------------------------------- Thu Aug 6 13:16:43 UTC 2020 - Sebastian Wagner