14
0
forked from pool/python-textX

- 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])

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textX?expand=0&rev=27
This commit is contained in:
Sebastian Wagner
2020-08-08 12:01:33 +00:00
committed by Git OBS Bridge
parent 8959b67229
commit 4d535fb634
5 changed files with 72 additions and 4 deletions

View File

@@ -18,14 +18,17 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-textX
Version: 2.1.0
Version: 2.2.0
Release: 0
Summary: Meta-language for DSL implementation inspired by Xtext
License: MIT
Group: Development/Languages/Python
URL: https://textx.github.io/textX/stable/
Source: https://github.com/igordejanovic/textX/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix_tests_setupcfg.path -- based on https://github.com/textX/textX/pull/272.patch without changelog
Patch0: fix_tests_setupcfg.patch
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Arpeggio >= 1.9.0
@@ -62,6 +65,7 @@ ambiguities, unlimited lookahead, interpreter style of work.
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
%patch0 -p1
%build
%python_build
@@ -98,6 +102,7 @@ popd
pushd tests/functional/registration/projects/flow_codegen
%python_install
popd
%python_expand install -m 0644 textx/textx.tx %{buildroot}%{$python_sitelib}/textx/
%python_clone -a %{buildroot}%{_bindir}/textx
%python_expand %fdupes %{buildroot}%{$python_sitelib}/textx