debian/0000755000000000000000000000000012130067067007170 5ustar debian/control0000644000000000000000000000163112130065244010567 0ustar Source: pygts Priority: optional Maintainer: Debian Science Maintainers Uploaders: Václav Šmilauer , Anton Gladky Build-Depends: debhelper (>= 9), python-dev (>=2.6.6-3~), python-numpy, libgts-dev Standards-Version: 3.9.4 X-Python-Version: >= 2.7 Section: python Vcs-Git: git://git.debian.org/git/debian-science/packages/pygts.git Vcs-Browser: http://git.debian.org/?p=debian-science/packages/pygts.git Homepage: http://pygts.sf.net Package: python-gts Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} Recommends: mayavi2 Description: Python wrapper for the GNU Triangulated Surface library (GTS) PyGTS is a Python package used to construct, manipulate, and perform computations on 3D triangulated surfaces. It is a hand-crafted and pythonic binding for the GNU Triangulated Surface (GTS) Library. debian/python-gts.doc-base0000644000000000000000000000056212101046464012702 0ustar Document: python-gts-documentation Title: PyGTS API documentation Abstract: PyGTS is a Python binding for the GNU Triangulated Surface (GTS) Library, which may be used to build, manipulate, and perform computations on triangulated surfaces. Section: Science/Mathematics Format: HTML Index: /usr/share/doc/python-gts/gts.html Files: /usr/share/doc/python-gts/gts.html debian/patches/0000755000000000000000000000000012130066610010610 5ustar debian/patches/fix_warnings.patch0000644000000000000000000000063712101035315014331 0ustar Description: Fix compilation warnings Author: Anton Gladky Last-Update: 2012-10-31 --- a/gts/pygts.h +++ b/gts/pygts.h @@ -32,11 +32,12 @@ #define PYGTS_DEBUG 1 #endif /* PYGTS_DEBUG */ +#include + #include #include #include -#include #include /* Defined for arrayobject.h which is only included where needed */ debian/patches/fix_test_assert.patch0000644000000000000000000000325112130066610015040 0ustar Description: fix test failure on some archs due to a numerical error. Author: Anton Gladky Last-Update: 2013-04-06 --- pygts-0.3.1.orig/test/test.py +++ pygts-0.3.1/test/test.py @@ -2549,23 +2549,23 @@ class TestSurfaceMethods(unittest.TestCa self.assert_(fabs(stats['face_quality']['min']-1.)<1.e-9) self.assert_(fabs(stats['face_quality']['max']-1.)<1.e-9) self.assert_(fabs(stats['face_quality']['mean']-1.)<1.e-9) - self.assert_(stats['face_quality']['stddev'] == 0.) + self.assertAlmostEqual(stats['face_quality']['stddev'], 0.) self.assert_(fabs(stats['face_area']['min']-2*sqrt(3))<1.e-9) self.assert_(fabs(stats['face_area']['max']-2*sqrt(3))<1.e-9) self.assert_(fabs(stats['face_area']['mean']-2*sqrt(3))<1.e-9) - self.assert_(stats['face_area']['stddev'] == 0.) + self.assertAlmostEqual(stats['face_area']['stddev'], 0.) self.assert_(fabs(stats['edge_length']['min']-2*sqrt(2))<1.e-9) self.assert_(fabs(stats['edge_length']['max']-2*sqrt(2))<1.e-9) self.assert_(fabs(stats['edge_length']['mean']-2*sqrt(2))<1.e-9) - self.assert_(stats['edge_length']['stddev'] == 0.) + self.assertAlmostEqual(stats['edge_length']['stddev'], 0.) self.assert_(fabs(stats['edge_angle']['min']-atan(2*sqrt(2)))<1.e-9) self.assert_(fabs(stats['edge_angle']['max']-atan(2*sqrt(2)))<1.e-9) self.assert_(fabs(stats['edge_angle']['mean']-atan(2*sqrt(2)))<1.e-9) - self.assert_(stats['edge_angle']['stddev'] == 0.) + self.assertAlmostEqual(stats['edge_angle']['stddev'], 0.) self.assert_(self.closed_surface.is_ok()) debian/patches/fix_examples.patch0000644000000000000000000000255412101035274014323 0ustar Description: Fix import of mlab-module in examples Author: Anton Gladky Last-Update: 2012-10-31 --- a/examples/isosurface.py +++ b/examples/isosurface.py @@ -33,7 +33,7 @@ import sys, string from optparse import OptionParser import numpy -from enthought.mayavi import mlab +import mayavi.mlab as mlab import gts # Visualise a bug in GTS by running this with args --function=ellipsoid --- a/examples/plotgts.py +++ b/examples/plotgts.py @@ -31,7 +31,7 @@ import numpy -from enthought.mayavi import mlab +import mayavi.mlab as mlab import gts if len(sys.argv)!=2: --- a/examples/polyhedrons.py +++ b/examples/polyhedrons.py @@ -28,7 +28,7 @@ """ import gts -from enthought.mayavi import mlab +import mayavi.mlab as mlab s1 = gts.tetrahedron() --- a/examples/set_operations.py +++ b/examples/set_operations.py @@ -28,7 +28,7 @@ """ import gts -from enthought.mayavi import mlab +import mayavi.mlab as mlab def get_surfaces(): s1 = gts.tetrahedron() --- a/examples/test/cube.py +++ b/examples/test/cube.py @@ -28,7 +28,7 @@ """ import gts -from enthought.mayavi import mlab +import mayavi.mlab as mlab from math import radians EPS = 2**(-51) --- a/examples/test/die.py +++ b/examples/test/die.py @@ -28,7 +28,7 @@ """ import gts -from enthought.mayavi import mlab +import mayavi.mlab as mlab import sys s1 = gts.cube() debian/patches/series0000644000000000000000000000007412130064665012036 0ustar fix_examples.patch fix_warnings.patch fix_test_assert.patch debian/watch0000644000000000000000000000011012101044425010200 0ustar version=3 http://sf.net/pygts/pygts-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz)) debian/rules0000755000000000000000000000043012130061650010235 0ustar #!/usr/bin/make -f %: dh $@ --with python2 PYVER = $(shell pyversions -dv) override_dh_auto_install: dh_auto_install dh_numpy PYTHONPATH=$(CURDIR)/debian/python-gts/usr/lib/python$(PYVER)/dist-packages $(CURDIR)/test/test.py find . -name '*.pyc' -print0 | xargs -0 rm -f debian/copyright0000644000000000000000000000177712043605453011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pygts Source: http://pygts.sourceforge.net Files: * Copyright: 2009 Thomas J. Duck License: LGPL-2.0 Files: debian/* Copyright: 2012 Václav Šmilauer License: LGPL-2.0 License: LGPL-2.0 This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2 as published by the Free Software Foundation. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2". debian/source/0000755000000000000000000000000012043602756010473 5ustar debian/source/format0000644000000000000000000000001412043602756011701 0ustar 3.0 (quilt) debian/python-gts.docs0000644000000000000000000000001512043602470012146 0ustar doc/gts.html debian/python-gts.examples0000644000000000000000000000001312043604323013031 0ustar examples/* debian/changelog0000644000000000000000000000100412130067067011035 0ustar pygts (0.3.1-2) unstable; urgency=low * [808b2ad] Adjust packaging in order to python2. * [fa27cf7] Set minimal python version to 2.7. * [60d8a2a] Fix capitalization error in description. * [454cae4] Fix test failure on some archs due to a numerical error. -- Anton Gladky Sat, 06 Apr 2013 20:48:52 +0200 pygts (0.3.1-1) unstable; urgency=low [ Václav Šmilauer ] * Initial debian package. (Closes: #691799) -- Anton Gladky Sat, 26 Jan 2013 21:22:37 +0100 debian/compat0000644000000000000000000000000212043601374010364 0ustar 9