forked from pool/python-blockdiag
Accepting request 915064 from home:pgajdos:python
- %check: test the package OBS-URL: https://build.opensuse.org/request/show/915064 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blockdiag?expand=0&rev=17
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 30 13:34:57 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- %check: test the package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 24 02:11:52 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
Mon Feb 24 02:11:52 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-blockdiag
|
# spec file for package python-blockdiag
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 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
|
||||||
@@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
# tests need network connection
|
|
||||||
%bcond_with tests
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-blockdiag
|
Name: python-blockdiag
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
@@ -39,15 +37,14 @@ Requires: python-Pillow >= 2.2.1
|
|||||||
Requires: python-funcparserlib >= 0.3.6
|
Requires: python-funcparserlib >= 0.3.6
|
||||||
Requires: python-webcolors
|
Requires: python-webcolors
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(preun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with tests}
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module docutils}
|
BuildRequires: %{python_module docutils}
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module nose}
|
|
||||||
BuildRequires: %{python_module pep8 >= 1.3}
|
BuildRequires: %{python_module pep8 >= 1.3}
|
||||||
BuildRequires: %{python_module pip >= 1.4.1}
|
BuildRequires: %{python_module pip >= 1.4.1}
|
||||||
%endif
|
BuildRequires: %{python_module pytest}
|
||||||
|
# /SECTION
|
||||||
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
||||||
Recommends: ghostscript
|
Recommends: ghostscript
|
||||||
Recommends: python-Wand
|
Recommends: python-Wand
|
||||||
@@ -57,7 +54,6 @@ Recommends: python-reportlab
|
|||||||
|
|
||||||
%description
|
%description
|
||||||
The blockdiag package generates block-diagram image files
|
The blockdiag package generates block-diagram image files
|
||||||
from spec-text files.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n blockdiag-%{version}
|
%setup -q -n blockdiag-%{version}
|
||||||
@@ -76,10 +72,16 @@ from spec-text files.
|
|||||||
%preun
|
%preun
|
||||||
%python_uninstall_alternative blockdiag
|
%python_uninstall_alternative blockdiag
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
pushd src
|
||||||
%endif
|
# this only test requires nose
|
||||||
|
rm blockdiag/tests/test_generate_diagram.py
|
||||||
|
# other disabled tests:
|
||||||
|
# [ 9s] WARNING: Could not retrieve: http://blockdiag.com/favicon.ico
|
||||||
|
# [ 9s] WARNING: Could not retrieve: http://upload.wikimedia.org/wikipedia/commons/9/9b/Scalable_Vector_Graphics_Circle2.svg
|
||||||
|
# [ 9s] WARNING: Could not retrieve: http://people.sc.fsu.edu/~jburkardt/data/eps/circle.eps
|
||||||
|
%pytest -k 'not (test_app_cleans_up_images or test_node_attribute or test_setup_inline_svg_is_true_with_multibytes)'
|
||||||
|
popd
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Reference in New Issue
Block a user