diff options
Diffstat (limited to 'python-doit-graph.spec')
| -rw-r--r-- | python-doit-graph.spec | 240 |
1 files changed, 240 insertions, 0 deletions
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: + + + + +## 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 + + + +- 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: + + + + +## 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 + + + +- 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: + + + + +## 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 + + + +- 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 <Python_Bot@openeuler.org> - 0.3.0-1 +- Package Spec generated |
