Package: pygrib Version: 1.9.6-2 Severity: important Tags: patch As you konw, support for python3 is only partially implemented in the package. Now that pyproj is in New for adding python3, you may as well get pygrib into New (and in line) as well. Please see the attached patch for one way to add python 3 support.
Scott K
diff -Nru pygrib-1.9.6/debian/changelog pygrib-1.9.6/debian/changelog --- pygrib-1.9.6/debian/changelog 2013-06-06 07:33:33.000000000 -0400 +++ pygrib-1.9.6/debian/changelog 2013-08-29 00:11:56.000000000 -0400 @@ -1,3 +1,16 @@ +pygrib (1.9.6-3) UNRELEASED; urgency=low + + * Finish Python 3 support (Closes: nnnnnn) + - Build with python3 and buildsystem pybuild + - Add dh-python to build-dep for pybuild + - Add python3-nuumpy to build-depends and add dh_numpy3 to debian/rules + - Simplify debian/rules + - Add python3-grib to debian/control + - Move documentation and examples to common python-grib-doc package + - Add python/3-grib.install + + -- Scott Kitterman <sc...@kitterman.com> Wed, 28 Aug 2013 23:37:02 -0400 + pygrib (1.9.6-2) unstable; urgency=low * Fix error in updated patch; macros was not set, causing failure on diff -Nru pygrib-1.9.6/debian/control pygrib-1.9.6/debian/control --- pygrib-1.9.6/debian/control 2013-05-21 11:16:10.000000000 -0400 +++ pygrib-1.9.6/debian/control 2013-08-29 00:35:15.000000000 -0400 @@ -2,7 +2,7 @@ Section: python Priority: optional Maintainer: Alastair McKinstry <mckins...@debian.org> -Build-Depends: debhelper (>= 8.1.3~), python-all-dev (>=2.6.6-3~), libgrib-api-dev, libgrib2c-dev, python-numpy (>= 1:1.6.1) , libjasper-dev, libpng-dev, python3-all-dev +Build-Depends: debhelper (>= 8.1.3~), python-all-dev (>=2.6.6-3~), libgrib-api-dev, libgrib2c-dev, python-numpy (>= 1:1.6.1), python3-numpy (>= 1:1.6.1), libjasper-dev, libpng-dev, python3-all-dev, dh-python Standards-Version: 3.9.4 X-Python-Version: >= 2.6 X-Python3-Version: >= 3.2 @@ -11,6 +11,7 @@ Package: python-grib Architecture: any Depends: ${python:Depends}, ${misc:Depends}, python-numpy, ${shlibs:Depends}, python-pyproj +Recommends: python-grib-doc Provides: ${python:Provides} Description: Python module for reading and writing GRIB files Python module for reading and writing GRIB (editions 1 and 2) files. @@ -18,3 +19,33 @@ distributing gridded data. The module is a Python interface to the GRIB API C library from the European Centre for Medium-Range Weather Forecasts (ECMWF). + +Package: python3-grib +Recommends: python-grib-doc +Architecture: any +Depends: ${python3:Depends}, ${misc:Depends}, python3-numpy, ${shlibs:Depends}, python3-pyproj +Breaks: python-grib (<< 1.9.6-3~) +Replaces: python-grib (<< 1.9.6-3~) +Description: Python 3 module for reading and writing GRIB files + Python 3 module for reading and writing GRIB (editions 1 and 2) files. + GRIB is the World Meterological Organization standard for + distributing gridded data. The module is a Python 3 interface + to the GRIB API C library from the + European Centre for Medium-Range Weather Forecasts (ECMWF). + . + This packages also contains the cnvgrib1to2, grib_list, grib_repack, and + cnvgrib2to1 scripts. + +Package: python-grib-doc +Architecture: all +Depends: ${misc:Depends} +Breaks: python-grib (<< 1.9.6-3~) +Replaces: python-grib (<< 1.9.6-3~) +Description: Documentation and examples for Python GRIB + Python module for reading and writing GRIB (editions 1 and 2) files. + GRIB is the World Meterological Organization standard for + distributing gridded data. The module is a Python interface + to the GRIB API C library from the + European Centre for Medium-Range Weather Forecasts (ECMWF). + . + This package contains documentation and examples. diff -Nru pygrib-1.9.6/debian/python3-grib.install pygrib-1.9.6/debian/python3-grib.install --- pygrib-1.9.6/debian/python3-grib.install 1969-12-31 19:00:00.000000000 -0500 +++ pygrib-1.9.6/debian/python3-grib.install 2013-08-29 00:26:55.000000000 -0400 @@ -0,0 +1,2 @@ +usr/lib/python3*/dist-packages/* +usr/bin/* diff -Nru pygrib-1.9.6/debian/python3-grib.manpages pygrib-1.9.6/debian/python3-grib.manpages --- pygrib-1.9.6/debian/python3-grib.manpages 1969-12-31 19:00:00.000000000 -0500 +++ pygrib-1.9.6/debian/python3-grib.manpages 2013-05-21 10:29:58.000000000 -0400 @@ -0,0 +1 @@ +debian/man/* diff -Nru pygrib-1.9.6/debian/python-grib-doc.docs pygrib-1.9.6/debian/python-grib-doc.docs --- pygrib-1.9.6/debian/python-grib-doc.docs 1969-12-31 19:00:00.000000000 -0500 +++ pygrib-1.9.6/debian/python-grib-doc.docs 2013-05-21 10:29:58.000000000 -0400 @@ -0,0 +1,2 @@ +docs/* +ncepgrib2_docs/* diff -Nru pygrib-1.9.6/debian/python-grib-doc.examples pygrib-1.9.6/debian/python-grib-doc.examples --- pygrib-1.9.6/debian/python-grib-doc.examples 1969-12-31 19:00:00.000000000 -0500 +++ pygrib-1.9.6/debian/python-grib-doc.examples 2013-05-21 10:29:58.000000000 -0400 @@ -0,0 +1 @@ +sampledata/* diff -Nru pygrib-1.9.6/debian/python-grib.docs pygrib-1.9.6/debian/python-grib.docs --- pygrib-1.9.6/debian/python-grib.docs 2013-05-21 10:29:58.000000000 -0400 +++ pygrib-1.9.6/debian/python-grib.docs 1969-12-31 19:00:00.000000000 -0500 @@ -1,2 +0,0 @@ -docs/* -ncepgrib2_docs/* diff -Nru pygrib-1.9.6/debian/python-grib.examples pygrib-1.9.6/debian/python-grib.examples --- pygrib-1.9.6/debian/python-grib.examples 2013-05-21 10:29:58.000000000 -0400 +++ pygrib-1.9.6/debian/python-grib.examples 1969-12-31 19:00:00.000000000 -0500 @@ -1 +0,0 @@ -sampledata/* diff -Nru pygrib-1.9.6/debian/python-grib.install pygrib-1.9.6/debian/python-grib.install --- pygrib-1.9.6/debian/python-grib.install 1969-12-31 19:00:00.000000000 -0500 +++ pygrib-1.9.6/debian/python-grib.install 2013-08-29 00:26:22.000000000 -0400 @@ -0,0 +1 @@ +usr/lib/python2*/dist-packages/* diff -Nru pygrib-1.9.6/debian/python-grib.manpages pygrib-1.9.6/debian/python-grib.manpages --- pygrib-1.9.6/debian/python-grib.manpages 2013-05-21 10:29:58.000000000 -0400 +++ pygrib-1.9.6/debian/python-grib.manpages 1969-12-31 19:00:00.000000000 -0500 @@ -1 +0,0 @@ -debian/man/* diff -Nru pygrib-1.9.6/debian/rules pygrib-1.9.6/debian/rules --- pygrib-1.9.6/debian/rules 2013-05-21 11:15:41.000000000 -0400 +++ pygrib-1.9.6/debian/rules 2013-08-28 23:57:59.000000000 -0400 @@ -4,27 +4,13 @@ # The magic debhelper rule %: - dh $@ --with python2 + dh $@ --with python2,python3 --buildsystem=pybuild -# python3 support incomplete until python3-pyproj and python-numpy work. -PYTHON2=$(shell pyversions -vr) -PYTHON3=$(shell py3versions -vr) - -build-python%: - python$* setup.py build - -#override_dh_auto_build: $(PYTHON3:%=build-python%) -override_dh_auto_build: - dh_auto_build - -install-python%: - python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb - -#override_dh_auto_install: $(PYTHON3:%=install-python%) override_dh_auto_install: dh_auto_install dh_numpy + dh_numpy3 override_dh_auto_clean: