Accepting request 731365 from home:jayvdb:py3only

- Remove tests from runtime installation
- Update to v0.15
  * Make the test suite stop assuming the presence of a 'python' executable on the path. Instead it uses ``sys.executable`` (which shouldn't have spaces). Note that it does continue to  assume the presence of other executables, such as 'echo'

OBS-URL: https://build.opensuse.org/request/show/731365
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-programoutput?expand=0&rev=16
This commit is contained in:
Tomáš Chvátal
2019-09-17 08:45:03 +00:00
committed by Git OBS Bridge
parent 2ee3d53918
commit b8073239e4
4 changed files with 18 additions and 5 deletions

View File

@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-sphinxcontrib-programoutput
Version: 0.14
Version: 0.15
Release: 0
Summary: Sphinx extension to include program output
License: BSD-2-Clause
@@ -51,10 +51,13 @@ export LANG=en_US.UTF-8
%install
export LANG=en_US.UTF-8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%{python_expand rm -r %{buildroot}%{$python_sitelib}/sphinxcontrib/programoutput/tests/
%fdupes %{buildroot}%{$python_sitelib}
}
%if %{with test}
%check
# https://github.com/NextThought/sphinxcontrib-programoutput/issues/38
export LANG=en_US.UTF-8
%python_exec setup.py test
%endif