forked from pool/python-pydot
Accepting request 61764 from home:jnweiger
works, thanks OBS-URL: https://build.opensuse.org/request/show/61764 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
7
example-demo.py
Normal file
7
example-demo.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#! /usr/bin/python
|
||||||
|
import pydot
|
||||||
|
|
||||||
|
edges=[("Hello",2), ("Hello",3), ("Hello",4), (3,4)]
|
||||||
|
g=pydot.graph_from_edges(edges, directed=True)
|
||||||
|
g.write_jpeg('graph_from_edges_dot.jpg', prog='dot')
|
||||||
|
g.write_svg( 'graph_from_edges_dot.svg', prog='dot')
|
7
example-rank.py
Normal file
7
example-rank.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
graph = pydot.Dot('graphname', graph_type='digraph')
|
||||||
|
subg = pydot.Subgraph('', rank='same')
|
||||||
|
subg.add_node(pydot.Node('a'))
|
||||||
|
graph.add_subgraph(subg)
|
||||||
|
subg.add_node(pydot.Node('b'))
|
||||||
|
subg.add_node(pydot.Node('c'))
|
3
pydot-1.0.4.tar.gz
Normal file
3
pydot-1.0.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:20092ee012649582ba00d585b68796d751c30dfd6c77e30e2dadbae53a80e933
|
||||||
|
size 18988
|
11
python-pydot.changes
Normal file
11
python-pydot.changes
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 17 22:24:32 UTC 2011 - jw@novell.com
|
||||||
|
|
||||||
|
- update to 1.0.4
|
||||||
|
- example-demo.py added.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 17 21:35:33 UTC 2011 - jw@novell.com
|
||||||
|
|
||||||
|
- taken from home:leo_eraly
|
||||||
|
|
47
python-pydot.spec
Normal file
47
python-pydot.spec
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: python-pydot
|
||||||
|
Version: 1.0.4
|
||||||
|
Release: 1
|
||||||
|
Summary: Create (dot) graphs from python
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Source: http://pydot.googlecode.com/files/pydot-%{version}.tar.gz
|
||||||
|
Source1: example-demo.py
|
||||||
|
Buildarch: noarch
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Requires: python-pyparsing graphviz
|
||||||
|
%{py_requires}
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
pydot allows to easily create both directed and non directed graphs from Python.
|
||||||
|
Currently all attributes implemented in the Dot language are supported (up to Graphviz 2.16).
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n pydot-%{version}
|
||||||
|
cp %{S:1} .
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__python} setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
||||||
|
#rm -rf %{buildroot}/usr/ChangeLog
|
||||||
|
rm -rf %{buildroot}/usr/LICENSE
|
||||||
|
rm -rf %{buildroot}/usr/README
|
||||||
|
%{__perl} -n -i -e 'print unless m,(README|LICENSE|%dir /usr/.)$,' INSTALLED_FILES
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf "$RPM_BUILD_ROOT"
|
||||||
|
|
||||||
|
%files -f INSTALLED_FILES
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README LICENSE example-demo.py
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Dec 31 2009 Leo Eraly <leo@unstable.be> - 1.0.2-1
|
||||||
|
- Initial package
|
Reference in New Issue
Block a user