forked from pool/python-textX
Accepting request 825373 from devel:languages:python
- 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/request/show/825373 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-textX?expand=0&rev=12
This commit is contained in:
27
fix_tests_setupcfg.patch
Normal file
27
fix_tests_setupcfg.patch
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
From f804ff0864c65caaf8a3356357024639aa785911 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sebastian Wagner <sebix@sebix.at>
|
||||||
|
Date: Sat, 8 Aug 2020 10:07:07 +0200
|
||||||
|
Subject: [PATCH] fix setup.cfg in flow_dsl project to include data
|
||||||
|
|
||||||
|
copy and paste error causes necessary data to be not included in builds
|
||||||
|
---
|
||||||
|
CHANGELOG.md | 2 ++
|
||||||
|
tests/functional/registration/projects/flow_dsl/setup.cfg | 4 ++--
|
||||||
|
2 files changed, 4 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/functional/registration/projects/flow_dsl/setup.cfg b/tests/functional/registration/projects/flow_dsl/setup.cfg
|
||||||
|
index e9e6f366..aec061de 100644
|
||||||
|
--- a/tests/functional/registration/projects/flow_dsl/setup.cfg
|
||||||
|
+++ b/tests/functional/registration/projects/flow_dsl/setup.cfg
|
||||||
|
@@ -8,8 +8,8 @@ install_requires =
|
||||||
|
textX
|
||||||
|
|
||||||
|
[options.package_data]
|
||||||
|
-data_dsl = *.tx
|
||||||
|
+flow_dsl = *.tx
|
||||||
|
|
||||||
|
[options.entry_points]
|
||||||
|
textx_languages =
|
||||||
|
- flow_dsl = flow_dsl:flow_dsl
|
||||||
|
\ No newline at end of file
|
||||||
|
+ flow_dsl = flow_dsl:flow_dsl
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:70c1439764e2c9eb4eef579d7145fb506975ebfc827d377c1df3d85217225b01
|
|
||||||
size 1827279
|
|
3
python-textX-2.2.0.tar.gz
Normal file
3
python-textX-2.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:eed2f2e8c8e02312c75996ff9d6b7544c3fe51ef60f066b1215dceba348b4cf2
|
||||||
|
size 1800507
|
@@ -1,3 +1,41 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 6 13:16:43 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
- 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])
|
||||||
|
- Allow passing kwargs in `metamodel_for_file/language` registration API
|
||||||
|
calls. ([#224])
|
||||||
|
- Add patch to fix tests:
|
||||||
|
* fix_tests_setupcfg.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 18 09:10:29 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
Mon May 18 09:10:29 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
@@ -18,14 +18,17 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-textX
|
Name: python-textX
|
||||||
Version: 2.1.0
|
Version: 2.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Meta-language for DSL implementation inspired by Xtext
|
Summary: Meta-language for DSL implementation inspired by Xtext
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://textx.github.io/textX/stable/
|
URL: https://textx.github.io/textX/stable/
|
||||||
Source: https://github.com/igordejanovic/textX/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
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 setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Arpeggio >= 1.9.0
|
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
|
sed -i '0,/#!\/usr\/bin\/env/ d' examples/hello_world/hello.py
|
||||||
# do not hardcode deps
|
# do not hardcode deps
|
||||||
sed -i -e 's:click==:click>=:g' setup.py
|
sed -i -e 's:click==:click>=:g' setup.py
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -98,6 +102,7 @@ popd
|
|||||||
pushd tests/functional/registration/projects/flow_codegen
|
pushd tests/functional/registration/projects/flow_codegen
|
||||||
%python_install
|
%python_install
|
||||||
popd
|
popd
|
||||||
|
%python_expand install -m 0644 textx/textx.tx %{buildroot}%{$python_sitelib}/textx/
|
||||||
%python_clone -a %{buildroot}%{_bindir}/textx
|
%python_clone -a %{buildroot}%{_bindir}/textx
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/textx
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/textx
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user