- Update to 0.10.1:
* python 3.7 support * Various fixes OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
95f10c204a
commit
43a300c6e4
+16
-21
@@ -12,37 +12,34 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without tests
|
||||
Name: python-graphviz
|
||||
Version: 0.8.2
|
||||
Version: 0.10.1
|
||||
Release: 0
|
||||
Summary: Python interface for Graphviz
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://github.com/xflr6/graphviz
|
||||
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: unzip
|
||||
%if %{with tests}
|
||||
# Test requirements
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: xdg-utils
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: graphviz
|
||||
# For pdf rendered tests
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: graphviz-gnome
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
BuildRequires: w3m
|
||||
%endif
|
||||
BuildRequires: xdg-utils
|
||||
Requires: graphviz
|
||||
Recommends: xdg-utils
|
||||
BuildArch: noarch
|
||||
@@ -64,10 +61,10 @@ displayed within IPython notebooks.
|
||||
%setup -q -n graphviz-%{version}
|
||||
|
||||
# Fix wrong-file-end-of-line-encoding
|
||||
sed -i 's/\r$//' CHANGES
|
||||
sed -i 's/\r$//' LICENSE
|
||||
sed -i 's/\r$//' README.rst
|
||||
sed -i 's/\r$//' docs/*.rst
|
||||
dos2unix CHANGES.txt LICENSE.txt README.rst docs/*.rst
|
||||
|
||||
# Remove hardcoded pytest version
|
||||
sed -i -e '/minversion/d' setup.cfg
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -76,14 +73,12 @@ sed -i 's/\r$//' docs/*.rst
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%python_expand pytest-%{$python_bin_suffix}
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES LICENSE README.rst
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.txt README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user