14
0
forked from pool/python-textX
Sebastian Wagner
2019-06-06 18:57:22 +00:00
committed by Git OBS Bridge
parent 30f6189e89
commit a25a57af84
2 changed files with 45 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 6 18:56:06 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Fix the tests
-------------------------------------------------------------------
Tue Jun 4 14:23:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -40,6 +40,7 @@ BuildRequires: %{python_module click >= 7.0}
BuildRequires: %{python_module memory_profiler}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
@@ -57,18 +58,56 @@ ambiguities, unlimited lookahead, interpreter style of work.
%prep
%setup -q -n textX-%{version}
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
%pytest
PATH=$PATH:%{buildroot}%{_bindir} %pytest
find examples/ -name \*.dot | xargs rm # drop indeterministic files (boo#1114571)
%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}
%{python_sitelib}/*