Hello community, here is the log from the commit of package python-textX for openSUSE:Leap:15.2 checked in at 2020-03-09 18:11:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-textX (Old) and /work/SRC/openSUSE:Leap:15.2/.python-textX.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-textX" Mon Mar 9 18:11:22 2020 rev:12 rq:777213 version:2.0.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-textX/python-textX.changes 2020-01-15 15:53:48.471610439 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-textX.new.26092/python-textX.changes 2020-03-09 18:11:25.173201196 +0100 @@ -1,0 +2,197 @@ +Tue Jul 9 11:53:21 UTC 2019 - Sebastian Wagner <[email protected]> + +- Fix Tests for Leap 15.1: click requires UTF-8 locale. + +------------------------------------------------------------------- +Sat Jun 8 14:09:51 UTC 2019 - Sebastian Wagner <[email protected]> + +- Use documentation page as homepage instead of repository. + +------------------------------------------------------------------- +Thu Jun 6 18:56:06 UTC 2019 - Sebastian Wagner <[email protected]> + +- Fix the tests + +------------------------------------------------------------------- +Tue Jun 4 14:23:23 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Make sure the package actually again gets to the test phase + * the tests are actually failing now + +------------------------------------------------------------------- +Sun Jun 2 15:22:59 UTC 2019 - Sebastian Wagner <[email protected]> + +- 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 + any impact (only affects model-paths containing a list not at the end of the + path; see [#186]). Possible **(BIC)**. + - Improved handling of abstract rules references. Improved the definition of + rules for various cases. Docs + tests ([#185], [#166]) **(BIC)** + - Changed the time of call of match rule object processors to be during the + model construction. This enable proper override of base types processors and + calls on nested match rules ([#183], [#182], [#96]). Possible **(BIC)** + - CLI migrated to the [click] library ([#162]) + - Docs improvements ([#146], [#153], [#151]). Thanks simkimsia@GitHub. + - `FQN` constuctor param `follow_loaded_models` removed and introduced + callback `scope_rediction_logic` to implement arbitrary logic on FQN + resolution ([#133], [#114], [#103]) **(BIC)** + - Changed attribute name for the meta-model object (from `metamodel._parser` + to `metamodel._parser_blueprint`). ([#93]) **(BIC)** + - Started using _[Keep a Changelog][keepachangelog]_ ([#174]) + - Started using _[Semantic Versioning][semver]_ ([#174]) + - Dropped support for Python 3.3 + - Fixed: + - White-spaces in string matches were erroneously stripped ([#188]) + - Calling of match rule object processors ([#183], [#182], [#96]) + - Circular rule references in grammars ([#173], [#159], [#155]) + - Assertion error while calling object processors with multi meta models + (extended grammars) and custom types ([#141], [#140]) + - Using a sequence of matches and rule reference in an abstract rule choice + alternative, and explicitly disallowing referencing more than one rule in an + abstract rule choice alternative ([#134]) + - Unicode requirement for (meta)-model strings API parameters made strict. + This should prevent common errors with Python 2.x. ([#120]) (related: [#99], + [#105], [#117]). Possible **(BIC)** + - OS incompatibility fixes (path separator). ([#114]) + - Object processors called twice for imported models ([#108], [#118]) + - Documentation and examples regarding `NUMBER` base type ([#97], [#100]). + Thanks approxit@GitHub + +------------------------------------------------------------------- +Fri Apr 5 08:46:58 UTC 2019 - [email protected] + +- version update to 1.8.0 + - https://github.com/igordejanovic/textX/pull/71 + - Regular expression with group support + - See [the + docs](http://www.igordejanovic.net/textX/development/grammar/#matches) + for usage. + - https://github.com/igordejanovic/textX/pull/69 + - Added search path feature (issue #66) - search path support for model + files (importURI scope providers; see docs/scoping.md). + - https://github.com/igordejanovic/textX/pull/77 + - New multi meta model support for references-only for better meta model + modularity (referencing models without having access to the grammar, + see docs/multimetamodel.md). + - https://github.com/igordejanovic/textX/pull/79 + - Fixing obj_processors calling. + - https://github.com/igordejanovic/textX/pull/84 + - New contribution guide. + - https://github.com/igordejanovic/textX/pull/81 + - Bugfix: lost encoding for multi meta-model. + - https://github.com/igordejanovic/textX/pull/68 + - changed parser access in metamodel (private attribute "_parser") + - mkdocs documentation now uses [mike](https://github.com/jimporter/mike) for + multiversion support. + +------------------------------------------------------------------- +Tue Dec 4 12:55:15 UTC 2018 - Matej Cepl <[email protected]> + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu Nov 22 14:31:16 UTC 2018 - Bernhard Wiedemann <[email protected]> + +- drop indeterministic .dot files to make package build reproducible + (boo#1114571) + +------------------------------------------------------------------- +Fri Jul 6 20:48:57 UTC 2018 - [email protected] + +- 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. + - added a new module textx.scoping, to provide some scope providers (e.g. a + fully qualified name provider) - see scoping.py: + - full qualified names for reference names (e.g. package.package.class) + - global scope (model distributed over different files - loaded globally) + - import scope (model distributed over different files - loaded when + imported) + - relative scopes (e.g. instance.method where method is defined for the + class of the instance in a model of classes, methods and instances) + - selecting the metamodel based on a file pattern when loading models + - added tests (mostly scope related - some of them also test other stuff, + like buildins) + - exceptions where adapted to include a file name (makes errors more + visible) + - The metamodel now allows to specify a global model repository. With this + you can now share models across metamodels (before you could only do this + within one metamodel or language). + - The metamodel clones the parser when parsing a model file. The meta model + holds one parser, which is clone for every model to be parsed. + - TextXModelParser now has a clone method. + (TBC: is the clone ok: see responsibility of the method) + - model.py: the resolution loop logic now mostly moved to a separate object + ReferenceResolver, which holds the parser. + - The reference resolver are build from all model files affected (loaded). + This may involve multiple meta models. + - Then all references are resolved in one loop. + - Finally the helper objects (ReferenceResolver) are purged. + - The MetaModelProvider has a clear-method now (useful for tests). + - Backward incompatible change: match filters and object processors unified. + Now there are only object processors but they are called for any type of + rule and the returned value if exists is used instead of the original + object. See [the + docs](http://www.igordejanovic.net/textX/metamodel/#object-processors). In + order to migrate your match filters just register them as object processors. + - Fixing FLOAT regex. Thanks Boris Marin (borismarin@GitHub)! + - Fixing position info on obj cross ref. Thanks Daniel Elero (danixeee@GitHub)! + +------------------------------------------------------------------- Old: ---- v1.6.1.tar.gz New: ---- python-textX-2.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-textX.spec ++++++ --- /var/tmp/diff_new_pack.TbjhfV/_old 2020-03-09 18:11:25.557201747 +0100 +++ /var/tmp/diff_new_pack.TbjhfV/_new 2020-03-09 18:11:25.557201747 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-textX # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,42 +12,37 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-textX -Version: 1.6.1 +Version: 2.0.1 Release: 0 Summary: Meta-language for DSL implementation inspired by Xtext License: MIT Group: Development/Languages/Python -Url: https://github.com/igordejanovic/textX -#Source: https://files.pythonhosted.org/packages/source/t/textX/textX-%%{version}.tar.gz -# PyPI release misses docs and tests -Source: https://github.com/igordejanovic/textX/archive/v%{version}.tar.gz -BuildRequires: %{python_module devel} +URL: http://textx.github.io/textX/stable/ +Source: https://github.com/igordejanovic/textX/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-Arpeggio >= 1.9.0 +Requires: python-click >= 7.0 +Requires: python-setuptools +Obsoletes: %{name}-doc +BuildArch: noarch # SECTION tests BuildRequires: %{python_module Arpeggio} BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module click >= 7.0} BuildRequires: %{python_module memory_profiler} BuildRequires: %{python_module pytest} # /SECTION -Requires: python-Arpeggio -Suggests: %name-doc -BuildArch: noarch %python_subpackages -%package -n %name-doc -Summary: Documentation for %name -Group: Documentation/Other - %description textX is a meta-language for building Domain-Specific Languages (DSLs) in Python. It is inspired by Xtext. @@ -63,28 +58,63 @@ %prep %setup -q -n textX-%{version} -sed -i '0,/#!\/usr\/bin\/env/ d' textx/commands/console.py examples/hello_world/hello.py - -%description -n %name-doc -Documentation, tutorial and examples for %name. +sed -i '0,/#!\/usr\/bin\/env/ d' examples/hello_world/hello.py +# do not hardcode deps +sed -i -e 's:click==:click>=:g' setup.py %build %python_build +pushd tests/functional/subcommands/example_project +%python_build +popd +pushd tests/functional/registration/projects/types_dsl +%python_build +popd +pushd tests/functional/registration/projects/data_dsl +%python_build +popd +pushd tests/functional/registration/projects/flow_dsl +%python_build +popd +pushd tests/functional/registration/projects/flow_codegen +%python_build +popd %install %python_install +pushd tests/functional/subcommands/example_project +%python_install +popd +pushd tests/functional/registration/projects/types_dsl +%python_install +popd +pushd tests/functional/registration/projects/data_dsl +%python_install +popd +pushd tests/functional/registration/projects/flow_dsl +%python_install +popd +pushd tests/functional/registration/projects/flow_codegen +%python_install +popd %python_expand %fdupes %{buildroot}%{$python_sitelib}/textx %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} +export PYTHONDONTWRITEBYTECODE=1 +export LC_ALL=C.UTF-8 +export PATH=$PATH:%{buildroot}%{_bindir} +%pytest +%python_expand rm -r %{buildroot}%{$python_sitelib}/data_dsl* +%python_expand rm -r %{buildroot}%{$python_sitelib}/flow_codegen* +%python_expand rm -r %{buildroot}%{$python_sitelib}/flow_dsl* +%python_expand rm -r %{buildroot}%{$python_sitelib}/types_dsl* +%python_expand rm -r %{buildroot}%{$python_sitelib}/textX_subcommand_test* +%python_expand rm -r %{buildroot}%{$python_sitelib}/textx_subcommand_test* %files %{python_files} -%defattr(-,root,root,-) %{python_sitelib}/* %python3_only %{_bindir}/textx -%doc AUTHORS.md CHANGELOG.md LICENSE.txt README.rst - -%files -n %name-doc -%doc art docs examples +%license LICENSE.txt +%doc AUTHORS.md CHANGELOG.md README.rst %changelog
