This is an automated email from the git hooks/post-receive script.

a_valentino-guest pushed a commit to branch master
in repository pyresample.

commit 6d9feab9cf698a5b2144b1dcfb3d92a4f43e28cb
Author: Antonio Valentino <antonio.valent...@tiscali.it>
Date:   Sat Aug 10 05:49:51 2013 +0000

    Imported Debian patch 1.0.0-1
---
 debian/changelog                        |   5 ++
 debian/compat                           |   1 +
 debian/control                          |  50 +++++++++++++++
 debian/copyright                        |  32 ++++++++++
 debian/docs                             |   1 +
 debian/patches/fix_egginfo_source.patch |  11 ++++
 debian/patches/force_add_backend.patch  | 105 ++++++++++++++++++++++++++++++++
 debian/patches/series                   |   2 +
 debian/python-pyresample-doc.doc-base   |  10 +++
 debian/python-pyresample-doc.install    |   1 +
 debian/python-pyresample.install        |   1 +
 debian/rules                            |  35 +++++++++++
 debian/source/format                    |   1 +
 debian/watch                            |   5 ++
 14 files changed, 260 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9c5b680
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pyresample (1.0.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Antonio Valentino <antonio.valent...@tiscali.it>  Sat, 10 Aug 2013 
05:49:51 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ec55dae
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,50 @@
+Source: pyresample
+Section: python
+Priority: optional
+Maintainer: Antonio Valentino <antonio.valent...@tiscali.it>
+Build-Depends: debhelper (>= 8.0.0),
+               python-all,
+               python-numpy,
+               python-scipy,
+               python-pyproj,
+               python-configobj,
+               python-sphinx,
+               python-nose,
+               python-mpltoolkits.basemap
+Standards-Version: 3.9.4
+Homepage: http://code.google.com/p/pyresample/
+
+Package: python-pyresample
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends},
+         python-scipy
+Provides: ${python:Provides}
+Recommends: python-numexpr,
+            python-mpltoolkits.basemap
+Suggests: python-pyresample-doc
+Description: Resampling of remote sensing data in Python
+ Pyresample is a Python package for resampling (reprojection) of earth
+ observing satellite data. It handles both resampling of gridded data
+ (e.g. geostationary satellites) and swath data (polar orbiting
+ satellites).
+ .
+ Pyresample can use multiple processor cores for resampling.
+ Pyresample supports masked arrays.
+
+Package: python-pyresample-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Suggests: www-browser
+Description: Resampling of remote sensing data in Python (documentation)
+ Pyresample is a Python package for resampling (reprojection) of earth
+ observing satellite data. It handles both resampling of gridded data
+ (e.g. geostationary satellites) and swath data (polar orbiting
+ satellites).
+ .
+ Pyresample can use multiple processor cores for resampling.
+ Pyresample supports masked arrays.
+ .
+ This is the common documentation package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7367dd5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pyresample
+Source: http://code.google.com/p/pyresample/
+
+Files: *
+Copyright: 2010-2013 Esben S. Nielsen <e...@dmi.dk>
+License: GPL-3.0+
+
+Files: pyresample/spherical_geometry.py pyresample/_spatial_mp.py
+Copyright: 2010-2013 Esben S. Nielsen <e...@dmi.dk> Martin Raspaud
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2013 Antonio Valentino <antonio.valent...@tiscali.it>
+License: GPL-3.0+
+
+License: GPL-3.0+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ 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 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 <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/patches/fix_egginfo_source.patch 
b/debian/patches/fix_egginfo_source.patch
new file mode 100644
index 0000000..04342c7
--- /dev/null
+++ b/debian/patches/fix_egginfo_source.patch
@@ -0,0 +1,11 @@
+Add missing setup.cfg file in the pyresample.egg-info/SOURCES.txt
+--- a/pyresample.egg-info/SOURCES.txt
++++ b/pyresample.egg-info/SOURCES.txt
+@@ -1,6 +1,7 @@
+ LICENSE.txt
+ MANIFEST.in
+ README
++setup.cfg
+ setup.py
+ docs/Makefile
+ docs/source/API.rst
diff --git a/debian/patches/force_add_backend.patch 
b/debian/patches/force_add_backend.patch
new file mode 100644
index 0000000..9b8c3cb
--- /dev/null
+++ b/debian/patches/force_add_backend.patch
@@ -0,0 +1,105 @@
+Force matplotlib AGG backend
+
+Forcing the AGG backend avoids errors at built time due to missing DISPLAY
+environment variable
+
+--- a/test/test_plot.py
++++ b/test/test_plot.py
+@@ -2,16 +2,19 @@
+ import os
+ 
+ import numpy as np
+-      
++
++import matplotlib
++matplotlib.use('agg', warn=False)
++
+ import pyresample as pr
+ 
+ def tmp(f):
+     f.tmp = True
+-    return f  
++    return f
+ 
+ class Test(unittest.TestCase):
+-    
+-    filename = os.path.abspath(os.path.join(os.path.dirname(__file__), 
++
++    filename = os.path.abspath(os.path.join(os.path.dirname(__file__),
+                                'test_files', 'ssmis_swath.npz'))
+     data = np.load(filename)['data']
+     lons = data[:, 0].astype(np.float64)
+@@ -21,51 +24,51 @@
+ 
+     def test_ellps2axis(self):
+         a, b = pr.plot.ellps2axis('WGS84')
+-        self.assertAlmostEqual(a, 6378137.0, 
++        self.assertAlmostEqual(a, 6378137.0,
+                                    msg='Failed to get semi-major axis of 
ellipsis')
+-        self.assertAlmostEqual(b, 6356752.3142451793, 
++        self.assertAlmostEqual(b, 6356752.3142451793,
+                                    msg='Failed to get semi-minor axis of 
ellipsis')
+-    
+-    @tmp   
++
++    @tmp
+     def test_area_def2basemap(self):
+-        area_def = 
pr.utils.parse_area_file(os.path.join(os.path.dirname(__file__), 
++        area_def = 
pr.utils.parse_area_file(os.path.join(os.path.dirname(__file__),
+                                          'test_files', 'areas.cfg'), 
'ease_sh')[0]
+         bmap = pr.plot.area_def2basemap(area_def)
+-        self.assertTrue(bmap.rmajor == bmap.rminor and 
+-                        bmap.rmajor == 6371228.0, 
++        self.assertTrue(bmap.rmajor == bmap.rminor and
++                        bmap.rmajor == 6371228.0,
+                         'Failed to create Basemap object')
+ 
+-              
++
+     def test_plate_carreeplot(self):
+         import matplotlib
+         matplotlib.use('Agg')
+-        area_def = 
pr.utils.parse_area_file(os.path.join(os.path.dirname(__file__), 
++        area_def = 
pr.utils.parse_area_file(os.path.join(os.path.dirname(__file__),
+                                             'test_files', 'areas.cfg'), 
'pc_world')[0]
+         swath_def = pr.geometry.SwathDefinition(self.lons, self.lats)
+-        result = pr.kd_tree.resample_nearest(swath_def, self.tb37v, area_def, 
+-                                             radius_of_influence=20000, 
+-                                             fill_value=None)         
+-        plt = pr.plot._get_quicklook(area_def, result, num_meridians=0, 
++        result = pr.kd_tree.resample_nearest(swath_def, self.tb37v, area_def,
++                                             radius_of_influence=20000,
++                                             fill_value=None)
++        plt = pr.plot._get_quicklook(area_def, result, num_meridians=0,
+                                      num_parallels=0)
+-            
++
+     def test_easeplot(self):
+         import matplotlib
+         matplotlib.use('Agg')
+-        area_def = 
pr.utils.parse_area_file(os.path.join(os.path.dirname(__file__), 
++        area_def = 
pr.utils.parse_area_file(os.path.join(os.path.dirname(__file__),
+                                             'test_files', 'areas.cfg'), 
'ease_sh')[0]
+         swath_def = pr.geometry.SwathDefinition(self.lons, self.lats)
+-        result = pr.kd_tree.resample_nearest(swath_def, self.tb37v, area_def, 
+-                                             radius_of_influence=20000, 
+-                                             fill_value=None)         
++        result = pr.kd_tree.resample_nearest(swath_def, self.tb37v, area_def,
++                                             radius_of_influence=20000,
++                                             fill_value=None)
+         plt = pr.plot._get_quicklook(area_def, result)
+ 
+     def test_orthoplot(self):
+         import matplotlib
+         matplotlib.use('Agg')
+-        area_def = 
pr.utils.parse_area_file(os.path.join(os.path.dirname(__file__), 
++        area_def = 
pr.utils.parse_area_file(os.path.join(os.path.dirname(__file__),
+                                             'test_files', 'areas.cfg'), 
'ortho')[0]
+         swath_def = pr.geometry.SwathDefinition(self.lons, self.lats)
+-        result = pr.kd_tree.resample_nearest(swath_def, self.tb37v, area_def, 
+-                                             radius_of_influence=20000, 
+-                                             fill_value=None)         
++        result = pr.kd_tree.resample_nearest(swath_def, self.tb37v, area_def,
++                                             radius_of_influence=20000,
++                                             fill_value=None)
+         plt = pr.plot._get_quicklook(area_def, result)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a415973
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+fix_egginfo_source.patch
+force_add_backend.patch
diff --git a/debian/python-pyresample-doc.doc-base 
b/debian/python-pyresample-doc.doc-base
new file mode 100644
index 0000000..11408e3
--- /dev/null
+++ b/debian/python-pyresample-doc.doc-base
@@ -0,0 +1,10 @@
+Document: pyresample
+Title: Debian pyresample Manual
+Author: Esben S. Nielsen
+Abstract: This document includes the
+ Pyresample User Manual and the Programmers Reference
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-pyresample-doc/html/index.html
+Files: /usr/share/doc/python-pyresample-doc/html/*.html
diff --git a/debian/python-pyresample-doc.install 
b/debian/python-pyresample-doc.install
new file mode 100644
index 0000000..479b287
--- /dev/null
+++ b/debian/python-pyresample-doc.install
@@ -0,0 +1 @@
+docs/build/html usr/share/doc/python-pyresample-doc
diff --git a/debian/python-pyresample.install b/debian/python-pyresample.install
new file mode 100644
index 0000000..c06f455
--- /dev/null
+++ b/debian/python-pyresample.install
@@ -0,0 +1 @@
+usr/lib/python2.7/dist-packages/pyresample* usr/lib/python2.7/dist-packages
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4d36650
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PY2VERS = $(shell pyversions -r -v)
+
+
+%:
+       dh $@ --with python2,sphinxdoc --buildsystem=python_distutils
+
+
+override_dh_auto_build:
+       dh_auto_build --buildsystem=python_distutils
+       $(MAKE) -C docs html
+
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+       set -e -x; \
+       for py in $(PY2VERS); do \
+               cd $(CURDIR)/build/lib.*-$$py; \
+               env PYTHONPATH=. python$$py /usr/bin/nosetests -v -w 
$(CURDIR)/test; \
+       done
+endif
+
+
+override_dh_auto_clean:
+       dh_auto_clean --buildsystem=python_distutils
+       $(MAKE) -C docs clean
+       $(RM) -r build
+
+
+.PHONY: override_dh_auto_build, override_dh_autoclean, override_dh_auto_test
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f57617d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://code.google.com/p/pyresample/downloads/list 
.*/pyresample-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
+#http://code.google.com/p/pyresample/downloads/list?can=1 
.*/pyresample-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/pyresample.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to