15
0

Accepting request 542026 from home:mimi_vx:branches:devel:languages:python

- update to 0.8.1
* please see long list of changes in 
    d7149d507e/CHANGES

OBS-URL: https://build.opensuse.org/request/show/542026
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=2
This commit is contained in:
2017-11-15 13:01:50 +00:00
committed by Git OBS Bridge
parent 6ada18b872
commit 5d2f355bd2
4 changed files with 23 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-graphviz
#
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -13,33 +13,35 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without tests
Name: python-graphviz
Version: 0.6
Version: 0.8.1
Release: 0
License: MIT
Summary: Simple Python interface for Graphviz
Url: http://github.com/xflr6/graphviz
License: MIT
Group: Development/Languages/Python
Url: http://github.com/xflr6/graphviz
Source: https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.zip
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: graphviz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: unzip
%if %{with tests}
# Test requirements
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module nose}
BuildRequires: python2-unittest2
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: xdg-utils
# For pdf rendered tests
BuildRequires: w3m
BuildRequires: graphviz-gnome
BuildRequires: w3m
%endif
Requires: graphviz
Recommends: xdg-utils
@@ -76,7 +78,7 @@ sed -i 's/\r$//' docs/*.rst
%if %{with tests}
%check
%python_expand nosetests-%{$python_bin_suffix}
%python_expand pytest-%{$python_bin_suffix}
%endif
%files %{python_files}