diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 11:39:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 11:39:02 +0000 |
commit | 188948a4c78e3dae7a26b807b09fa255aaef079a (patch) | |
tree | 064604a172c1acbd9819e56fda47b1e25a94976c | |
parent | 9dcd802e8812aa47046f21c050878b27507345b0 (diff) |
automatic import of python-graphviz
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-graphviz.spec | 127 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 129 insertions, 0 deletions
@@ -0,0 +1 @@ +/graphviz-0.20.1.zip diff --git a/python-graphviz.spec b/python-graphviz.spec new file mode 100644 index 0000000..3078c99 --- /dev/null +++ b/python-graphviz.spec @@ -0,0 +1,127 @@ +%global _empty_manifest_terminate_build 0 +Name: python-graphviz +Version: 0.20.1 +Release: 1 +Summary: Simple Python interface for Graphviz +License: MIT +URL: https://github.com/xflr6/graphviz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a5/90/fb047ce95c1eadde6ae78b3fca6a598b4c307277d4f8175d12b18b8f7321/graphviz-0.20.1.zip +BuildArch: noarch + +Requires: python3-tox +Requires: python3-flake8 +Requires: python3-pep8-naming +Requires: python3-wheel +Requires: python3-twine +Requires: python3-sphinx +Requires: python3-sphinx-autodoc-typehints +Requires: python3-sphinx-rtd-theme +Requires: python3-pytest +Requires: python3-pytest-mock +Requires: python3-mock +Requires: python3-pytest-cov +Requires: python3-coverage + +%description +|PyPI version| |License| |Supported Python| |Wheel| |Downloads| +|Build| |Codecov| |Readthedocs-stable| |Readthedocs-latest| +|Binder-stable| +This package facilitates the creation and rendering of graph descriptions in +the DOT_ language of the Graphviz_ graph drawing software (`upstream repo`_) +from Python. +Create a graph object, assemble the graph by adding nodes and edges, and +retrieve its DOT source code string. Save the source code to a file and render +it with the Graphviz installation of your system. +Use the ``view`` option/method to directly inspect the resulting (PDF, PNG, +SVG, etc.) file with its default application. Graphs can also be rendered +and displayed within `Jupyter notebooks`_ (formerly known as +`IPython notebooks`_, +`example <notebook_>`_, `nbviewer <notebook-nbviewer_>`_) +as well as the `Jupyter QtConsole`_. + +%package -n python3-graphviz +Summary: Simple Python interface for Graphviz +Provides: python-graphviz +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-graphviz +|PyPI version| |License| |Supported Python| |Wheel| |Downloads| +|Build| |Codecov| |Readthedocs-stable| |Readthedocs-latest| +|Binder-stable| +This package facilitates the creation and rendering of graph descriptions in +the DOT_ language of the Graphviz_ graph drawing software (`upstream repo`_) +from Python. +Create a graph object, assemble the graph by adding nodes and edges, and +retrieve its DOT source code string. Save the source code to a file and render +it with the Graphviz installation of your system. +Use the ``view`` option/method to directly inspect the resulting (PDF, PNG, +SVG, etc.) file with its default application. Graphs can also be rendered +and displayed within `Jupyter notebooks`_ (formerly known as +`IPython notebooks`_, +`example <notebook_>`_, `nbviewer <notebook-nbviewer_>`_) +as well as the `Jupyter QtConsole`_. + +%package help +Summary: Development documents and examples for graphviz +Provides: python3-graphviz-doc +%description help +|PyPI version| |License| |Supported Python| |Wheel| |Downloads| +|Build| |Codecov| |Readthedocs-stable| |Readthedocs-latest| +|Binder-stable| +This package facilitates the creation and rendering of graph descriptions in +the DOT_ language of the Graphviz_ graph drawing software (`upstream repo`_) +from Python. +Create a graph object, assemble the graph by adding nodes and edges, and +retrieve its DOT source code string. Save the source code to a file and render +it with the Graphviz installation of your system. +Use the ``view`` option/method to directly inspect the resulting (PDF, PNG, +SVG, etc.) file with its default application. Graphs can also be rendered +and displayed within `Jupyter notebooks`_ (formerly known as +`IPython notebooks`_, +`example <notebook_>`_, `nbviewer <notebook-nbviewer_>`_) +as well as the `Jupyter QtConsole`_. + +%prep +%autosetup -n graphviz-0.20.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-graphviz -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.20.1-1 +- Package Spec generated @@ -0,0 +1 @@ +9242aa39ccdcba695b3323efb2985f3e graphviz-0.20.1.zip |