forked from pool/python-textX
Accepting request 1110197 from devel:languages:python
- 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. OBS-URL: https://build.opensuse.org/request/show/1110197 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-textX?expand=0&rev=16
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:25ce92f27f0b165eee90057fd252a12a04650fdbbf9be32521f8ab55c17b5630
|
|
||||||
size 1827894
|
|
3
python-textX-3.1.1.tar.gz
Normal file
3
python-textX-3.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:18ecd288aaba27d361fd421986088a139773ca7ed29cbddf9f7d6f8003314b6e
|
||||||
|
size 1824060
|
@@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 11 05:42:48 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 22 20:51:24 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
Tue Mar 22 20:51:24 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-textX
|
# spec file for package python-textX
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,15 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-textX
|
Name: python-textX
|
||||||
Version: 3.0.0
|
Version: 3.1.1
|
||||||
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
|
|
||||||
URL: https://textx.github.io/textX/stable/
|
URL: https://textx.github.io/textX/stable/
|
||||||
Source: https://github.com/igordejanovic/textX/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/igordejanovic/textX/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -34,11 +33,6 @@ BuildRequires: python2-xml
|
|||||||
%endif
|
%endif
|
||||||
Requires: python-Arpeggio >= 1.9.0
|
Requires: python-Arpeggio >= 1.9.0
|
||||||
Requires: python-click >= 7.0
|
Requires: python-click >= 7.0
|
||||||
Requires: python-future
|
|
||||||
Requires: python-setuptools
|
|
||||||
%if "%{python_flavor}" == "python2"
|
|
||||||
Requires: python2-xml
|
|
||||||
%endif
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Obsoletes: %{name}-doc
|
Obsoletes: %{name}-doc
|
||||||
@@ -47,7 +41,6 @@ BuildArch: noarch
|
|||||||
BuildRequires: %{python_module Arpeggio}
|
BuildRequires: %{python_module Arpeggio}
|
||||||
BuildRequires: %{python_module Jinja2}
|
BuildRequires: %{python_module Jinja2}
|
||||||
BuildRequires: %{python_module click >= 7.0}
|
BuildRequires: %{python_module click >= 7.0}
|
||||||
BuildRequires: %{python_module future}
|
|
||||||
BuildRequires: %{python_module html5lib}
|
BuildRequires: %{python_module html5lib}
|
||||||
BuildRequires: %{python_module memory_profiler}
|
BuildRequires: %{python_module memory_profiler}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -74,40 +67,28 @@ sed -i '0,/#!\/usr\/bin\/env/ d' examples/hello_world/hello.py
|
|||||||
sed -i -e 's:click==:click>=:g' setup.py
|
sed -i -e 's:click==:click>=:g' setup.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
pushd tests/functional/subcommands/example_project
|
for dir in tests/functional/subcommands/example_project \
|
||||||
%python_build
|
tests/functional/registration/projects/types_dsl \
|
||||||
popd
|
tests/functional/registration/projects/data_dsl \
|
||||||
pushd tests/functional/registration/projects/types_dsl
|
tests/functional/registration/projects/flow_dsl \
|
||||||
%python_build
|
tests/functional/registration/projects/flow_codegen ; do
|
||||||
popd
|
pushd $dir
|
||||||
pushd tests/functional/registration/projects/data_dsl
|
%pyproject_wheel
|
||||||
%python_build
|
|
||||||
popd
|
|
||||||
pushd tests/functional/registration/projects/flow_dsl
|
|
||||||
%python_build
|
|
||||||
popd
|
|
||||||
pushd tests/functional/registration/projects/flow_codegen
|
|
||||||
%python_build
|
|
||||||
popd
|
popd
|
||||||
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
pushd tests/functional/subcommands/example_project
|
for dir in tests/functional/subcommands/example_project \
|
||||||
%python_install
|
tests/functional/registration/projects/types_dsl \
|
||||||
popd
|
tests/functional/registration/projects/data_dsl \
|
||||||
pushd tests/functional/registration/projects/types_dsl
|
tests/functional/registration/projects/flow_dsl \
|
||||||
%python_install
|
tests/functional/registration/projects/flow_codegen ; do
|
||||||
popd
|
pushd $dir
|
||||||
pushd tests/functional/registration/projects/data_dsl
|
%pyproject_install
|
||||||
%python_install
|
|
||||||
popd
|
|
||||||
pushd tests/functional/registration/projects/flow_dsl
|
|
||||||
%python_install
|
|
||||||
popd
|
|
||||||
pushd tests/functional/registration/projects/flow_codegen
|
|
||||||
%python_install
|
|
||||||
popd
|
popd
|
||||||
|
done
|
||||||
%python_expand install -m 0644 textx/textx.tx %{buildroot}%{$python_sitelib}/textx/
|
%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
|
||||||
@@ -131,7 +112,8 @@ export LC_ALL=C.UTF-8
|
|||||||
%python_uninstall_alternative textx
|
%python_uninstall_alternative textx
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/textx
|
||||||
|
%{python_sitelib}/textX-%{version}.dist-info
|
||||||
%python_alternative %{_bindir}/textx
|
%python_alternative %{_bindir}/textx
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc AUTHORS.md CHANGELOG.md README.md
|
%doc AUTHORS.md CHANGELOG.md README.md
|
||||||
|
Reference in New Issue
Block a user