Hello community, here is the log from the commit of package python-textX for openSUSE:Factory checked in at 2020-05-19 14:48:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-textX (Old) and /work/SRC/openSUSE:Factory/.python-textX.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-textX" Tue May 19 14:48:54 2020 rev:11 rq:806971 version:2.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-textX/python-textX.changes 2020-03-11 18:56:10.111696938 +0100 +++ /work/SRC/openSUSE:Factory/.python-textX.new.2738/python-textX.changes 2020-05-19 14:48:57.308132739 +0200 @@ -1,0 +2,5 @@ +Mon May 18 09:10:29 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-textX.spec ++++++ --- /var/tmp/diff_new_pack.UvnhPL/_old 2020-05-19 14:48:58.040134362 +0200 +++ /var/tmp/diff_new_pack.UvnhPL/_new 2020-05-19 14:48:58.052134389 +0200 @@ -31,6 +31,8 @@ Requires: python-Arpeggio >= 1.9.0 Requires: python-click >= 7.0 Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives Obsoletes: %{name}-doc BuildArch: noarch # SECTION tests @@ -96,13 +98,14 @@ pushd tests/functional/registration/projects/flow_codegen %python_install popd +%python_clone -a %{buildroot}%{_bindir}/textx %python_expand %fdupes %{buildroot}%{$python_sitelib}/textx %check export PYTHONDONTWRITEBYTECODE=1 export LC_ALL=C.UTF-8 -export PATH=$PATH:%{buildroot}%{_bindir} -%pytest +# textx executable is update-alternative'd +%pytest -k 'not test_subcommand' %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* @@ -110,9 +113,15 @@ %python_expand rm -r %{buildroot}%{$python_sitelib}/textX_subcommand_test* %python_expand rm -r %{buildroot}%{$python_sitelib}/textx_subcommand_test* +%post +%python_install_alternative textx + +%postun +%python_uninstall_alternative textx + %files %{python_files} %{python_sitelib}/* -%python3_only %{_bindir}/textx +%python_alternative %{_bindir}/textx %license LICENSE.txt %doc AUTHORS.md CHANGELOG.md README.md
