14
0
forked from pool/python-textX

Commit Graph

  • 42e36e2c01 Accepting request 1277023 from devel:languages:python main Ana Guerrero 2025-05-13 18:07:02 +00:00
  • 9aca68299f - limit check to tests/functional as upstream does - update to version 4.2.2: - Fixed: - tests for subcommands. Click 8.2.0 now returns exit code 2 when command is not correct. See [433]. - update to version 4.2.1: - Fixed: - regression where textx generate/check command didn't report location info. - removed encoding of unicode strings in textx exceptions. - update to version 4.2.0: - Changed: - Moved from click.echo to logging. Sebastian Wagner 2025-05-13 06:49:23 +00:00
  • 318b8c09b7 Accepting request 1219183 from devel:languages:python Dominique Leuenberger 2024-10-30 16:36:19 +00:00
  • bf8fa1e8a1 - update to 4.1.0: * nchar attribute to TextXError class, which represents the substring length for the model object where the error was found. * linetype parameter to PlantUML generator which controls line style. See the tip in the visualization docs * Rendering of multiplicities of association in PlantUML generator. * Meta-model diagram export now raises attributes/references to abstract * meta-classes along the inheritance chain. See [423]. * The Python version limit "<3.13" has been removed from the pyproject.toml file. The library should run on all Python versions starting from 3.8 * Removed vendored six library. We don't need 2.x support anymore. Thanks - Added RREL-'fixed name'-extension, allowing to follow model elements [#273]). Also, using base classes for rules from imported grammars in Dirk Mueller 2024-10-29 20:59:12 +00:00
  • cb1a4b2305 Accepting request 1165411 from devel:languages:python Ana Guerrero 2024-04-05 18:27:47 +00:00
  • 80459b8dc3 - Update to 4.0.1: * Use flit-core for test projects. * Removed word boundary from INT rule regex. * Removed Python support for 3.6 and 3.7. The minimal supported version is 3.8. * Migrated to pyproject.toml for project configuration. * Migrated to importlib for language/generator registration/discovery as setuptools pkg_resources is deprecated and unsupported from Python 3.12. * Added dependency to importlib-metadata backward compatibility package for Python versions < 3.10. * Relaxed dependency for click to accept 8.x. * Use flit for package building and publishing. - Use build and installer for the test projects so we do not pollute the build root. Steve Kowalik 2024-04-05 06:06:48 +00:00
  • 14523e7c46 Accepting request 1146195 from devel:languages:python Ana Guerrero 2024-02-12 17:53:45 +00:00
  • 70d264b656 - Require Arpeggio >= 2.0.0 fixing build fails Sebastian Wagner 2024-02-05 13:30:29 +00:00
  • 19c61be808 Accepting request 1110197 from devel:languages:python Ana Guerrero 2023-09-11 19:21:58 +00:00
  • 2d591aa2a6 - Update to 3.1.1: * Source distribution packaging issue ([392]). Thanks yurivict@GitHub. * Fixed RREL lookup in case of multi-meta models (some special cases were not handled correctly; [#379]). * Fixed test suite invocation to use pytest over py.test that stopped working in pytest-7.2.0. ([#389]). Thanks mgorny@GitHub. * Changed separator in obj. rule refs from | to :. Old separator will still be allowed until version 4.0. ([#385], [#384]) * Removed the dependency on future package ([#388]). Thanks mgorny@GitHub. * Removed vendored six library. We don't need 2.x support anymore. Thanks davidchall@GitHub for reporting the issue ([#390]). - Switch to pyproject macros. - Stop using greedy globs in %files. - Drop a Python 2 requires. Steve Kowalik 2023-09-11 05:43:15 +00:00
  • a6e5aac682 Accepting request 965770 from devel:languages:python Dominique Leuenberger 2022-04-03 19:30:48 +00:00
  • 0a1d02a680 - update to version 3.0.0: - Added: - Added RREL-'fixed name'-extension, allowing to follow model elements given a fixed name (e.g. an object defined in a builtin model). Details described in rrel.md ([#364]). - Added ability to access the full path of named objects traversed while resolving a RREL expression ([#304]). - Added decorator textx.textxerror_wrap for object processors to automatically transform non-TextXErrors to TextXErrors in order to indicate the filename and position of the element being processed ([#306]). - Fixed: - model_param_defs on TextXMetaMetaModel ([#360]). - Interpreting of backslash special chars (e.g. \n, \t) in grammar string matches ([#323]). Possible **(BIC)** - backslash chars were not interpreted in grammar files and raw Python strings prior to this fix. - Exception/error messages ([#320]) - Relaxed assert in model creation enabling some model changes in user classes ([#311]) - Model export to dot in cases where textX object is replaced in the processor([#301]) - Do not allow "empty" RREL expressions (compare unittests in test_rrel.py; [#355]) - Changed: - Inheritance chain calculation. Possible **(BIC)** ([#369]). - Added def_file_name attribute to RefRulePosition for storing the definition's model file name in case of cross-references between models. ([#313],[#277]) - Migrated from Travis CI to GitHub Actions ([#307]) - Dropped support for deprecated Python versions. The lowest supported version is 3.6. **(BIC)** Sebastian Wagner 2022-03-22 20:52:17 +00:00
  • 6cd4fbce45 Accepting request 905644 from devel:languages:python Dominique Leuenberger 2021-07-11 23:25:01 +00:00
  • 88986c68ba - Fix package builds for Leap 15.2 and 15.3, python-xml dependency was missing. Sebastian Wagner 2021-07-04 09:56:52 +00:00
  • b284ce8daa Accepting request 846971 from devel:languages:python Dominique Leuenberger 2020-11-09 12:57:49 +00:00
  • 44ad1bf3fe remove leftover file Sebastian Wagner 2020-11-08 19:57:25 +00:00
  • 58327fb08d - 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. Sebastian Wagner 2020-11-01 17:58:41 +00:00
  • 3c4968c147 -This line, and those below, will be ignored-- Sebastian Wagner 2020-11-01 17:57:59 +00:00
  • 6c8ab14694 Accepting request 825373 from devel:languages:python Dominique Leuenberger 2020-08-18 13:05:31 +00:00
  • 3dbbdb46ed - Add patch to fix tests: * fix_tests_setupcfg.patch Tomáš Chvátal 2020-08-10 11:51:33 +00:00
  • 4d535fb634 - update to version 2.2.0: - Added: - Initial docs for Jinja code generator support (from [textX-jinja](https://github.com/textX/textX-jinja)) ([#264]). - Analyzing grammars programmatically as plain textX models (grammar_model_from_str/file) ([#235]) - Initial startproject scaffolding (from [textX-dev](https://github.com/textX/textX-dev)) docs ([#234]) - Generator helper functions get_output_filename and gen_file ([#233]) - textx version command ([#219]) - Versions for languages/packages in list-languages and list-generators commands ([#228]) - Added the ability to specify extra parameters during model_from_file or model_from_str and to define which extra parameters exist in the meta-model ([#243]). - Fixed: - Fixed several instances of invalid truthiness checking. Thanks markusschmaus@GitHub ([#250]) - Fixed applying multiple grammar rule modifiers ([#246]) - Fixed exception on calling check CLI command with relative path name. - Fixed return value of textx generate and check commands: we return a failure on error now ([#222]) - Fixed type checking for references to builtin elements ([#218]) - Changed: - User classes can now be immutable (e.g. attr.frozen) or can use __slots__. Thanks markusschmaus@GitHub ([#256, #260, #261]) - Cleanup of setup configuration and install scripts [#231] - Dot/PlantUML rendering of meta-models: remove rendering of base types, improve rendering of required/optional, render match rules as a single table. ([#225]) Sebastian Wagner 2020-08-08 12:01:33 +00:00
  • ebb29e1dc9 Accepting request 806971 from devel:languages:python Dominique Leuenberger 2020-05-19 12:48:54 +00:00
  • 8959b67229 Accepting request 806909 from home:pgajdos:python Tomáš Chvátal 2020-05-18 13:03:11 +00:00
  • e45d7dfc60 Accepting request 783798 from devel:languages:python Dominique Leuenberger 2020-03-11 17:54:30 +00:00
  • edfee96d21 Accepting request 783789 from home:pgajdos:python Tomáš Chvátal 2020-03-11 11:46:33 +00:00
  • acf00b45ff Accepting request 715677 from devel:languages:python Dominique Leuenberger 2019-07-17 11:20:42 +00:00
  • 7c8d5d2309 - Fix Tests for Leap 15.1: click requires UTF-8 locale. Sebastian Wagner 2019-07-09 11:55:46 +00:00
  • 1d310560f5 Accepting request 710112 from devel:languages:python Dominique Leuenberger 2019-06-17 08:34:09 +00:00
  • 6bfd8f5297 Accepting request 708274 from devel:languages:python Dominique Leuenberger 2019-06-12 11:12:58 +00:00
  • 22f4b43e8e - Use documentation page as homepage instead of repository. Sebastian Wagner 2019-06-08 14:10:15 +00:00
  • 6b19a733f4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textX?expand=0&rev=17 Tomáš Chvátal 2019-06-07 10:44:02 +00:00
  • a25a57af84 - Fix the tests Sebastian Wagner 2019-06-06 18:57:22 +00:00
  • 30f6189e89 - Make sure the package actually again gets to the test phase * the tests are actually failing now Tomáš Chvátal 2019-06-04 14:23:45 +00:00
  • 2989ed14b9 - update to version 2.0.1: - Added: - [Registration and discovery] of languages and generators ([#187]) - New textx CLI commands for listing generators and languages (list-generators, list-languages) and calling a generator (generate) ([#187]) - Meta-models may now [reference other registered meta-models] using the reference statement ([#187]) - Adding examples and documentation related to scope providers (related to model modification through scope providers) ([#168]) - metamodel export feature for [PlantUML] ([#165]) - textx_isinstance from textx.scoping.tools made available in textx ([#164], [#157]) - CLI extensibility ([#162], [#161]) - An initial version of FAQ page ([#138]). Thanks Aluriak@GitHub - A version of calc.py exercises usage of text.scoping.tools.textx_isinstance() to inspect model objects types during traversal. ([#136], [#123]). Thanks dkrikun@GitHub - A version of calc.py in expression example that exercises dynamically adding properties to object classes ([#126]). Thanks dkrikun@GitHub - python like imports (named import rules, scope providers affected) ([#114]) - Added STRICTFLOAT as buildin type to allow to distinguish ints from floats in NUMBER. Fixed docu link ([#98]). Possible **(BIC)** - Added [flake8] and [coverage] checking ([#92]) - Changed: - All textX commands implemented using textX CLI extensibility. check command reworked to support the new registration feature ([#187]) **(BIC)** - (Meta-)model visualization reworked as a set of textX generators ([#187]). **(BIC)** - Made scope provider implementation of RelativeName and ExtRelativeName more readable ([#186]). Minor functional changes, not very probable to have Sebastian Wagner 2019-06-02 15:23:46 +00:00
  • f901288f2d Accepting request 691983 from devel:languages:python Dominique Leuenberger 2019-04-08 08:39:02 +00:00
  • c19e5e2614 Accepting request 691739 from home:pgajdos Tomáš Chvátal 2019-04-06 10:13:52 +00:00
  • 03dbcbf028 Accepting request 659717 from devel:languages:python Dominique Leuenberger 2018-12-24 10:45:12 +00:00
  • b60157ed54 Remove superfluous devel dependency for noarch package Matej Cepl 2018-12-04 14:09:36 +00:00
  • 7d94809843 Accepting request 651222 from devel:languages:python Dominique Leuenberger 2018-11-26 09:28:52 +00:00
  • b0c962254e Accepting request 651138 from home:bmwiedemann:branches:devel:languages:python Sebastian Wagner 2018-11-22 20:27:39 +00:00
  • 35d88b854e Accepting request 622800 from devel:languages:python Dominique Leuenberger 2018-07-18 20:54:29 +00:00
  • aadbacf0ff - update to version 1.7.0: - A major feature of this release is multi-(meta-)model support with configurable resolving techniques. Thanks Pierre Bayerl (goto40@GitHub)! The docs sections are [here](http://www.igordejanovic.net/textX/scoping/) and [here](http://www.igordejanovic.net/textX/multimetamodel/). Details follow: - added new function textx.get_model.children to search arbritrary children using a lambda predicate. - remapped textx.model.get_children_of_type to the new children function (changed the logic, such that the root node is also checked to be model object). - added new metamodel function to register scope providers. Scope providers are callables, which return the referenced object. - added optional attribute "_tx_model_repository", see metamodel.py documentation - added attribute "scope_provider" like "obj_processors" to organize scope providers - added an optional argument to model_from_str and model_from_file: "pre_ref_resolution_callback": this is required internally to prepare the loading of other model files. - changed reference resolution in model.py - moved default resolution to textx.scoping.py - select the scope provider based on rule and rule-attribute (see scoping.py documentation) - added a Postponed type to postpone the resolution - introduced a multi-pass resolution (implemented at the end of parse_tree_to_objgraph; introduced new helper argument, e.g., a new optional argument "is_this_the_main_model" and "pre_ref_resolution_callback" (see metamodel.py above) to support reference resolution in the presence of different model files. Sebastian Wagner 2018-07-07 09:18:41 +00:00
  • 82e1fa4557 Accepting request 579970 from devel:languages:python Dominique Leuenberger 2018-02-26 22:25:29 +00:00
  • f9f60a148f Accepting request 577862 from home:jengelh:branches:devel:languages:python Sebastian Wagner 2018-02-18 20:59:15 +00:00
  • fa0ab96561 Accepting request 577743 from devel:languages:python Dominique Leuenberger 2018-02-19 12:01:40 +00:00
  • 43dd2638d8 - update to version 1.6.1. No notable changes. - update to version 1.6.0. Shortened changelog: * Introduced _tx_fqn class attribute. * textX api functions and classes are now available directly from textx module. * bugfixes - update to version 1.5.2. Bugfixes. Sebastian Wagner 2018-01-31 14:25:41 +00:00
  • 4ff19f1e82 Accepting request 519127 from home:sebix:branches:devel:languages:python Jan Matejek 2017-08-28 14:55:37 +00:00