From 2532ce9ae9cfc654911b1765d404da91e787ab85 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 05:33:55 +0000 Subject: automatic import of python-doit-graph --- .gitignore | 1 + python-doit-graph.spec | 240 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 242 insertions(+) create mode 100644 python-doit-graph.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..8928376 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/doit-graph-0.3.0.tar.gz diff --git a/python-doit-graph.spec b/python-doit-graph.spec new file mode 100644 index 0000000..b51a3a7 --- /dev/null +++ b/python-doit-graph.spec @@ -0,0 +1,240 @@ +%global _empty_manifest_terminate_build 0 +Name: python-doit-graph +Version: 0.3.0 +Release: 1 +Summary: doit cmd plugin: create task's dependency-graph image +License: MIT +URL: http://github.com/pydoit/doit-graph +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d8/61/26e5f0c4b6b0b20881aba5531ec08cf85e7a58c4638574826e8026dba9cc/doit-graph-0.3.0.tar.gz +BuildArch: noarch + + +%description +# doit-graph + +Generates a graph (using graphviz's dot) of [doit](http://pydoit.org) tasks. + +Sample for [doit tutorial](http://pydoit.org/tutorial_1.html) tasks: + +![Sample output](/tasks.png) + + +## install + +pip install doit-graph + + +## usage + +``` +$ doit graph +$ dot -Tpng tasks.dot -o tasks.png +``` + +- By default sub-tasks are hidden. Use option `--show-subtasks` to display them. + +- By default all tasks are included in graph. + It is possible to specify which tasks should be included in the graph (note dependencies will be automatically included). + +- To draw tasks in execution order (i.e. reverse of dependency direction), use option `--reverse` + +``` +$ doit graph --reverse +``` + +- To draw tasks from left-to-right instead of the default top-to-bottom, use option `--horizontal` or `-h` + +``` +$ doit graph --horizontal +``` + +### legend + +![Legend](/legend.png) + +- group-tasks have double bondary border in the node +- `task-dep` arrow have a solid head +- `setup-task` arrow have an empty head + + + +### limitations + +`calc_dep` and `delayed-tasks` are not supported. + + + +## DEV notes + +http://graphviz.org/doc/info/attrs.html + +%package -n python3-doit-graph +Summary: doit cmd plugin: create task's dependency-graph image +Provides: python-doit-graph +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-doit-graph +# doit-graph + +Generates a graph (using graphviz's dot) of [doit](http://pydoit.org) tasks. + +Sample for [doit tutorial](http://pydoit.org/tutorial_1.html) tasks: + +![Sample output](/tasks.png) + + +## install + +pip install doit-graph + + +## usage + +``` +$ doit graph +$ dot -Tpng tasks.dot -o tasks.png +``` + +- By default sub-tasks are hidden. Use option `--show-subtasks` to display them. + +- By default all tasks are included in graph. + It is possible to specify which tasks should be included in the graph (note dependencies will be automatically included). + +- To draw tasks in execution order (i.e. reverse of dependency direction), use option `--reverse` + +``` +$ doit graph --reverse +``` + +- To draw tasks from left-to-right instead of the default top-to-bottom, use option `--horizontal` or `-h` + +``` +$ doit graph --horizontal +``` + +### legend + +![Legend](/legend.png) + +- group-tasks have double bondary border in the node +- `task-dep` arrow have a solid head +- `setup-task` arrow have an empty head + + + +### limitations + +`calc_dep` and `delayed-tasks` are not supported. + + + +## DEV notes + +http://graphviz.org/doc/info/attrs.html + +%package help +Summary: Development documents and examples for doit-graph +Provides: python3-doit-graph-doc +%description help +# doit-graph + +Generates a graph (using graphviz's dot) of [doit](http://pydoit.org) tasks. + +Sample for [doit tutorial](http://pydoit.org/tutorial_1.html) tasks: + +![Sample output](/tasks.png) + + +## install + +pip install doit-graph + + +## usage + +``` +$ doit graph +$ dot -Tpng tasks.dot -o tasks.png +``` + +- By default sub-tasks are hidden. Use option `--show-subtasks` to display them. + +- By default all tasks are included in graph. + It is possible to specify which tasks should be included in the graph (note dependencies will be automatically included). + +- To draw tasks in execution order (i.e. reverse of dependency direction), use option `--reverse` + +``` +$ doit graph --reverse +``` + +- To draw tasks from left-to-right instead of the default top-to-bottom, use option `--horizontal` or `-h` + +``` +$ doit graph --horizontal +``` + +### legend + +![Legend](/legend.png) + +- group-tasks have double bondary border in the node +- `task-dep` arrow have a solid head +- `setup-task` arrow have an empty head + + + +### limitations + +`calc_dep` and `delayed-tasks` are not supported. + + + +## DEV notes + +http://graphviz.org/doc/info/attrs.html + +%prep +%autosetup -n doit-graph-0.3.0 + +%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-doit-graph -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 0.3.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..d20983e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +34ff00e742eec3ff6dcc373e36e08e16 doit-graph-0.3.0.tar.gz -- cgit v1.2.3