[Python-modules-commits] r4060 - in packages/pyvtk/pyvtk/trunk (14 files)

smr at users.alioth.debian.org smr at users.alioth.debian.org
Sat Dec 29 06:54:52 UTC 2007


    Date: Saturday, December 29, 2007 @ 06:54:51
  Author: smr
Revision: 4060

[svn-inject] Applying Debian modifications to trunk

Added:
  packages/pyvtk/pyvtk/trunk/debian/
  packages/pyvtk/pyvtk/trunk/debian/changelog
  packages/pyvtk/pyvtk/trunk/debian/compat
  packages/pyvtk/pyvtk/trunk/debian/control
  packages/pyvtk/pyvtk/trunk/debian/copyright
  packages/pyvtk/pyvtk/trunk/debian/doc-base.python-pyvtk
  packages/pyvtk/pyvtk/trunk/debian/rules
  packages/pyvtk/pyvtk/trunk/debian/source.lintian-overrides
  packages/pyvtk/pyvtk/trunk/doc/
  packages/pyvtk/pyvtk/trunk/doc/gen_pydoc.sh
  packages/pyvtk/pyvtk/trunk/examples/
  packages/pyvtk/pyvtk/trunk/examples/example1.py
  packages/pyvtk/pyvtk/trunk/examples/example2.py
  packages/pyvtk/pyvtk/trunk/examples/example3.py


Property changes on: packages/pyvtk/pyvtk/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages/pyvtk/pyvtk/trunk/debian/changelog
===================================================================
--- packages/pyvtk/pyvtk/trunk/debian/changelog	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/debian/changelog	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,79 @@
+pyvtk (0.4.74-1) unstable; urgency=low
+
+  * New upstream.
+    Implement get_cell_size() in StructuredGrid.  Closes: #401063.
+  
+  * debian/control: 
+  * debian/rules: Set standards version to 3.7.2.2.  Use python-support.
+
+ -- Steve M. Robbins <smr at debian.org>  Sun, 25 Feb 2007 01:04:03 -0600
+
+pyvtk (0.4.66-6) unstable; urgency=low
+
+  * Update to new python policy.  Closes: #373374.
+
+ -- Steve M. Robbins <smr at debian.org>  Fri, 30 Jun 2006 22:55:10 -0400
+
+pyvtk (0.4.66-5) unstable; urgency=low
+
+  * Change import statements so examples/*.py will run outside of source
+    tree.  Closes: #351415.
+
+ -- Steve M. Robbins <smr at debian.org>  Sat,  4 Feb 2006 23:16:52 -0500
+
+pyvtk (0.4.66-4) unstable; urgency=low
+
+  * Remove python2.1-pyvtk, python2.2-pyvtk packages.  Closes: #351155.
+
+  * New package python2.4-pyvtk.
+  
+ -- Steve M. Robbins <smr at debian.org>  Thu,  2 Feb 2006 23:57:11 -0500
+
+pyvtk (0.4.66-3) unstable; urgency=low
+
+  * debian/control: Build-depend on python to ensure that "pydoc"
+  is available.  Closes: #259126.
+
+ -- Steve M. Robbins <smr at debian.org>  Sun, 18 Jul 2004 17:04:58 -0400
+
+pyvtk (0.4.66-2) unstable; urgency=low
+
+  * Thanks to Matthias Klose for the NMUs.  
+    Closes: #204671, #204955.
+
+  * debian/control: Fix override disparity.
+
+ -- Steve M. Robbins <smr at debian.org>  Sat, 25 Oct 2003 20:30:25 -0400
+
+pyvtk (0.4.66-1.2) unstable; urgency=low
+
+  * NMU.
+  * Correctly use dh_python (closes: #204955).
+
+ -- Matthias Klose <doko at debian.org>  Sun, 28 Sep 2003 12:32:06 +0200
+
+pyvtk (0.4.66-1.1) unstable; urgency=low
+
+  * NMU.
+  * Upload for python2.3 as the default python version.
+  * Use dh_python, delete the postinst/prerm files.
+  * Remove the dependency of the 2.1 and 2.2 packages on python and call
+    python2.1/python2.2 directly in the scripts.
+
+ -- Matthias Klose <doko at debian.org>  Sat,  9 Aug 2003 08:45:37 +0200
+
+pyvtk (0.4.66-1) unstable; urgency=low
+
+  * New upstream version.
+
+  * Build-depend on pythonX.Y-dev packages.  Closes: #178888.
+
+ -- Steve M. Robbins <smr at debian.org>  Fri, 31 Jan 2003 21:40:09 -0500
+
+pyvtk (0.4.62-1) unstable; urgency=low
+
+  * Initial upload.  Closes: #140209.
+
+  * lib/__init__.py: Strip header to 255 characters plus newline.
+
+ -- Steve M. Robbins <smr at debian.org>  Sat, 23 Nov 2002 16:03:10 -0500

Added: packages/pyvtk/pyvtk/trunk/debian/compat
===================================================================
--- packages/pyvtk/pyvtk/trunk/debian/compat	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/debian/compat	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1 @@
+5

Added: packages/pyvtk/pyvtk/trunk/debian/control
===================================================================
--- packages/pyvtk/pyvtk/trunk/debian/control	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/debian/control	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,31 @@
+Source: pyvtk
+Section: python
+Priority: optional
+Maintainer: Steve M. Robbins <smr at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 5), python-support (>= 0.4), python
+Standards-Version: 3.7.2.2
+
+Package: python-pyvtk
+Architecture: all
+Depends: ${python:Depends}
+Conflicts: python2.3-pyvtk (<< 0.4.66-6), python2.4-pyvtk (<< 0.4.66-6)
+Replaces: python2.3-pyvtk (<< 0.4.66-6), python2.4-pyvtk (<< 0.4.66-6)
+Provides: ${python:Provides}
+XS-Python-Version: current
+XB-Python-Version: ${python:Versions}
+Description: module for manipulating VTK files
+ PyVTK provides a VtkData class to create VTK a file from standard
+ Python objects.  Only VTK File Format version 2.0 is supported.
+ Features include:
+   - ascii and binary output, ascii input
+   - DataSet formats:
+       StructuredPoints, StructuredGrid, RectilinearGrid,
+       PolyData, UnstructuredGrid
+   - Data formats:
+       PointData, CellData
+   - DataSetAttr formats:
+       Scalars, ColorScalars, LookupTable, Vectors,
+       Normals, TextureCoordinates, Tensors, Field
+ .
+ See http://cens.ioc.ee/projects/pyvtk/ for more details.

Added: packages/pyvtk/pyvtk/trunk/debian/copyright
===================================================================
--- packages/pyvtk/pyvtk/trunk/debian/copyright	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/debian/copyright	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,13 @@
+This package was debianized by Steve Robbins <smr at debian.org> on
+Sat Nov 16 17:44:42 EST 2002
+
+It was downloaded from http://cens.ioc.ee/projects/pyvtk/
+
+Upstream Author: Pearu Peterson
+                    
+
+Copyright:
+
+You are free to distribute this software under the terms of the GNU
+Lesser General Public License.  On Debian systems, the complete
+license text can be found in /usr/share/common-licenses/LGPL.

Added: packages/pyvtk/pyvtk/trunk/debian/doc-base.python-pyvtk
===================================================================
--- packages/pyvtk/pyvtk/trunk/debian/doc-base.python-pyvtk	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/debian/doc-base.python-pyvtk	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,11 @@
+Document: python-pyvtk
+Title: PyVTK Module
+Author: Pearu Peterson
+Abstract: Tools for manipulating VTK files in Python.
+Section: devel
+
+Format: HTML
+Index: /usr/share/doc/python-pyvtk/html/pyvtk.html
+Files: /usr/share/doc/python-pyvtk/html/*.html
+
+  

Added: packages/pyvtk/pyvtk/trunk/debian/rules
===================================================================
--- packages/pyvtk/pyvtk/trunk/debian/rules	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/debian/rules	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+
+PYVERS=$(shell pyversions -r)
+PREFIX := debian/python-pyvtk/usr
+
+clean:
+	dh_testdir
+	dh_testroot
+	python setup.py clean
+	rm -f build-stamp
+
+	-find -name '*.py[co]' | xargs rm -f
+	rm -f doc/pyvtk doc/*.html
+	rm -f lib/test.vtk
+	rm -rf build
+
+	dh_clean
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	ln -s ../lib doc/pyvtk
+	cd doc && sh gen_pydoc.sh
+	rm -f doc/pyvtk
+
+	touch build-stamp
+
+
+install: DH_OPTIONS=
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	python setup.py install --no-compile \
+		--install-lib=$(PREFIX)/share/python-support/python-pyvtk
+
+	mkdir -p debian/python-pyvtk/usr/share/doc/python-pyvtk
+	cp -a doc debian/python-pyvtk/usr/share/doc/python-pyvtk/html
+
+	dh_install
+
+
+# This single target is used to build all the packages, all at once, or
+# one at a time. So keep in mind: any options passed to commands here will
+# affect _all_ packages. Anything you want to only affect one package
+# should be put in another target, such as the install target.
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs BUGS.txt NEWS.txt README.txt TODO.txt
+	dh_installexamples examples/*
+	dh_strip
+	dh_link
+	dh_compress -X.py
+	dh_fixperms
+	dh_pysupport
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: build install
+	 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build install
+#	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+# Any other binary targets build just one binary package at a time.
+binary-%: build install
+	make -f debian/rules binary-common DH_OPTIONS=-p$*
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install


Property changes on: packages/pyvtk/pyvtk/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pyvtk/pyvtk/trunk/debian/source.lintian-overrides
===================================================================
--- packages/pyvtk/pyvtk/trunk/debian/source.lintian-overrides	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/debian/source.lintian-overrides	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1 @@
+python-pyvtk: script-not-executable

Added: packages/pyvtk/pyvtk/trunk/doc/gen_pydoc.sh
===================================================================
--- packages/pyvtk/pyvtk/trunk/doc/gen_pydoc.sh	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/doc/gen_pydoc.sh	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pydoc -w pyvtk pyvtk.VtkData pyvtk.StructuredGrid pyvtk.StructuredPoints pyvtk.UnstructuredGrid pyvtk.RectilinearGrid pyvtk.PolyData pyvtk.PointData pyvtk.CellData pyvtk.Scalars pyvtk.ColorScalars pyvtk.LookupTable pyvtk.Vectors pyvtk.Normals pyvtk.TextureCoordinates pyvtk.Tensors pyvtk.Field

Added: packages/pyvtk/pyvtk/trunk/examples/example1.py
===================================================================
--- packages/pyvtk/pyvtk/trunk/examples/example1.py	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/examples/example1.py	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,31 @@
+#!/usr/bin/env python
+
+from pyvtk import *
+
+structure = PolyData(points=[[0,0,0],[1,0,0],[1,1,0],[0,1,0],
+                             [0,0,1],[1,0,1],[1,1,1],[0,1,1]],
+                     polygons=[[0,1,2,3],[4,5,6,7],[0,1,5,4],
+                               [2,3,7,6],[0,4,7,3],[1,2,6,5]])
+pointdata = PointData(\
+    Scalars([0,1,2,3,4,5,6,7],
+            name='sample_scalars',
+            lookup_table='my_table'),
+    LookupTable([[0,0,0,1],[1,0,0,1],[0,1,0,1],[1,1,0,1],
+                 [0,0,1,1],[1,0,1,1],[0,1,1,1],[1,1,1,1]],
+                name='my_table'))
+
+celldata = CellData(\
+    Scalars([0,1,2,3,4,5],
+            name='cell_scalars'),
+    Normals([[0,0,-1],[0,0,1],[0,-1,0],
+             [0,1,0],[-1,0,0],[1,0,0]],
+            name='cell_normals'),
+    Field('FieldData',
+          cellIds=[[0],[1],[2],[3],[4],[5]],
+          faceAttributes=[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6]]))
+
+vtk = VtkData(structure,pointdata,celldata)
+vtk.tofile('example1','ascii')
+vtk.tofile('example1b','binary')
+
+vtk2 = VtkData('example1')

Added: packages/pyvtk/pyvtk/trunk/examples/example2.py
===================================================================
--- packages/pyvtk/pyvtk/trunk/examples/example2.py	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/examples/example2.py	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,44 @@
+#!/usr/bin/env python
+
+from pyvtk import *
+
+vtk = VtkData(StructuredPoints([3,4,6]),
+              PointData(Scalars([0,0,0,0,0,0,0,0,0,0,0,0,
+                                 0,5,10,15,20,25,25,20,15,10,5,0,
+                                 0,10,20,30,40,50,50,40,30,20,10,0,
+                                 0,10,20,30,40,50,50,40,30,20,10,0,
+                                 0,5,10,15,20,25,25,20,15,10,5,0,
+                                 0,0,0,0,0,0,0,0,0,0,0,0
+                                 ])))
+
+vtk.tofile('example2')
+vtk.tofile('example2b','binary')
+
+vtk = VtkData('example2',only_structure = 1)
+def f(x,y,z):
+    return x*y*z
+vtk.point_data.append(vtk.structure.Scalars(f,'x*y*z'))
+vtk.tofile('example2f_sp')
+
+pp = [(i,j,k) for k in range(6) for j in range(4) for i in range(3)]
+vtk = VtkData(StructuredGrid([3,4,6],pp))
+vtk.point_data.append(vtk.structure.Scalars(f,'x*y*z'))
+vtk.tofile('example2f_sg')
+
+vtk = VtkData(RectilinearGrid(range(3),range(4),range(6)))
+vtk.point_data.append(vtk.structure.Scalars(f,'x*y*z'))
+vtk.tofile('example2f_rg')
+
+voxels = []
+points = []
+n = 0
+for k in range(6):
+    for j in range(4):
+        for i in range(3):
+            points.append((i,j,k))
+            if not (k==5 or j==3 or i==2):
+                voxels.append([n,n+1,n+3,n+3+1,n+3*4,n+3*4+1,n+3*4+3,n+3*4+3+1])
+            n += 1
+vtk = VtkData(UnstructuredGrid(points,voxel=voxels))
+vtk.point_data.append(vtk.structure.Scalars(f,'x*y*z'))
+vtk.tofile('example2f_usg')

Added: packages/pyvtk/pyvtk/trunk/examples/example3.py
===================================================================
--- packages/pyvtk/pyvtk/trunk/examples/example3.py	                        (rev 0)
+++ packages/pyvtk/pyvtk/trunk/examples/example3.py	2007-12-29 06:54:51 UTC (rev 4060)
@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+
+from pyvtk import *
+
+points = [[0,0,0],[1,0,0],[2,0,0],[0,1,0],[1,1,0],[2,1,0],
+          [0,0,1],[1,0,1],[2,0,1],[0,1,1],[1,1,1],[2,1,1],
+          [0,1,2],[1,1,2],[2,1,2],[0,1,3],[1,1,3],[2,1,3],
+          [0,1,4],[1,1,4],[2,1,4],[0,1,5],[1,1,5],[2,1,5],
+          [0,1,6],[1,1,6],[2,1,6]
+          ]
+vectors = [[1,0,0],[1,1,0],[0,2,0],[1,0,0],[1,1,0],[0,2,0],
+           [1,0,0],[1,1,0],[0,2,0],[1,0,0],[1,1,0],[0,2,0],
+           [0,0,1],[0,0,1],[0,0,1],[0,0,1],[0,0,1],[0,0,1],
+           [0,0,1],[0,0,1],[0,0,1],[0,0,1],[0,0,1],[0,0,1],
+           [0,0,1],[0,0,1],[0,0,1]
+           ]
+vtk = VtkData(\
+        UnstructuredGrid(points,
+                         hexahedron=[[0,1,4,3,6,7,10,9],
+                                     [1,2,5,4,7,8,11,10]],
+                         tetra=[[6,10,9,12],
+                                [5,11,10,14]],
+                         polygon=[15,16,17,14,13,12],
+                         triangle_strip=[18,15,19,16,20,17],
+                         quad=[22,23,20,19],
+                         triangle=[[21,22,18],
+                                   [22,19,18]],
+                         line=[26,25],
+                         vertex=[24]
+                         ),
+        PointData(Vectors(vectors),Scalars(range(27))),
+        'Unstructured Grid Example'
+        )
+vtk.tofile('example3')
+vtk.tofile('example3b','binary')
+
+VtkData('example3')




More information about the Python-modules-commits mailing list