Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Pike
python-graphviz
python-graphviz.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-graphviz.spec of Package python-graphviz
# # spec file for package python-graphviz # # Copyright (c) 2018 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # 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 Release: 0 Summary: Python interface for 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: 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 # For pdf rendered tests BuildRequires: graphviz-gnome BuildRequires: w3m %endif Requires: graphviz Recommends: xdg-utils BuildArch: noarch %python_subpackages %description This package facilitates the creation and rendering of graph descriptions in the DOT language of the Graphviz graph drawing software from Python. It supports creating a graph object, assembling the graph by adding nodes and edges, and retrieving its DOT source code string, saving the source code to a file and rendering it with the Graphviz installation. Using the view option/method, the resulting (PDF, PNG, SVG, etc.) file can be inspected with its default application. Graphs can also be rendered and displayed within IPython notebooks. %prep %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 %build %python_build %install %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 %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor