[python-cartopy] 03/04: initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Dec 14 16:24:25 UTC 2016


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

ghisvail-guest pushed a commit to branch master
in repository python-cartopy.

commit 03eb2b9fef4c88c08d9dd187285450be2b8daf91
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Dec 14 15:44:25 2016 +0000

    initial debianization
---
 debian/changelog         |  5 +++
 debian/clean             |  4 +++
 debian/compat            |  1 +
 debian/control           | 85 ++++++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright         | 29 +++++++++++++++++
 debian/rules             | 27 +++++++++++++++
 debian/tests/control     |  9 +++++
 debian/upstream/metadata |  6 ++++
 debian/watch             |  5 +++
 9 files changed, 171 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..edfbf93
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-cartopy (0.14.2+dfsg1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #730670)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Fri, 25 Nov 2016 12:10:23 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..4281704
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,4 @@
+lib/Cartopy.egg-info/SOURCES.txt
+lib/cartopy/_crs.c
+lib/cartopy/geodesic/_geodesic.c
+lib/cartopy/trace.cpp
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8aa440d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,85 @@
+Source: python-cartopy
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: cython,
+               cython3,
+               debhelper (>= 10),
+               dh-python,
+               libgeos-dev,
+               libproj-dev (>= 4.9.0),
+               proj-bin,
+               python-all-dev,
+               python-nose,
+               python-numpy,
+               python-pyshp,
+               python-setuptools,
+               python-shapely (>= 1.5.6),
+               python-six (>= 1.3.0),
+               python3-all-dev,
+               python3-nose,
+               python3-numpy,
+               python3-pyshp,
+               python3-setuptools,
+               python3-shapely (>= 1.5.6),
+               python3-six (>= 1.3.0)
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/python-cartopy.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-cartopy.git
+Homepage: http://scitools.org.uk/cartopy/
+X-Python3-Version: >= 3.3
+
+Package: python-cartopy
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+         ${python:Depends},
+         ${shlibs:Depends}
+Suggests: python-gdal,
+          python-matplotlib,
+          python-owslib,
+          python-pil,
+          python-pyepsg,
+          python-scipy
+Description: cartographic library for Python 2
+ Cartopy is a Python package designed to make drawing maps for data analysis
+ and visualisation easy.
+ .
+ It features:
+ .
+   - object oriented projection definitions
+   - point, line, polygon and image transformations between projections
+   - integration to expose advanced mapping in matplotlib with a simple and
+     intuitive interface
+   - powerful vector data handling by integrating shapefile reading with
+     Shapely capabilities
+ .
+ This package provides the Python 2 library.
+
+Package: python3-cartopy
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         ${shlibs:Depends}
+Suggests: python3-gdal,
+          python3-matplotlib,
+          python3-owslib,
+          python3-pil,
+          python3-pyepsg,
+          python3-scipy
+Description: cartographic library for Python 3
+ Cartopy is a Python package designed to make drawing maps for data analysis
+ and visualisation easy.
+ .
+ It features:
+ .
+   - object oriented projection definitions
+   - point, line, polygon and image transformations between projections
+   - integration to expose advanced mapping in matplotlib with a simple and
+     intuitive interface
+   - powerful vector data handling by integrating shapefile reading with
+     Shapely capabilities
+ .
+ This package provides the Python 3 library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..803fc6f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Cartopy
+Source: https://pypi.python.org/pypi/Cartopy
+Comment: To be excluded from the source release:
+ - lib/cartopy/data/netcdf/*: under a non-free license.
+ - lib/cartopy/data/raster/*: no licensing information.
+ - lib/cartopy/data/shapefiles/*: non-versioned GPL.
+ - lib/cartopy/{_crs.c,trace.cpp}: cythonized sources.
+Files-Excluded: lib/cartopy/data/*
+ lib/cartopy/_crs.c
+ lib/cartopy/geodesic/_geodesic.c
+ lib/cartopy/trace.cpp
+
+Files: *
+Copyright: British Crown Copyright 2010 - 2016, Met Office
+License: LGPL-3+
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: LGPL-3+
+
+License: LGPL-3+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; version 3 of the License, or (at
+ your option) any later version.
+ .
+ On Debian systems, the complete text of version 3 of the GNU Lesser
+ General Public License can be found in `/usr/share/common-licenses/LGPL-3'.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2cd19cf
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
+
+export PYBUILD_NAME = cartopy
+export PYBUILD_TEST_NOSE = 1
+# Testing is restricted to test cases which do not require network access.
+# See: https://github.com/SciTools/cartopy/issues/797.
+# Testing of the plot feature (cartopy/tests/mpl/*) is disabled due to a bug in
+# the matplotlib Debian package. See Bug-Debian #838301.
+export PYBUILD_TEST_ARGS = cartopy.tests.crs \
+	cartopy.tests.test_crs \
+	cartopy.tests.test_geodesic
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_python2:
+	dh_python2
+	dh_numpy
+
+override_dh_python3:
+	dh_python3
+	dh_numpy3
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..caeec11
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,9 @@
+Test-Command: cd $AUTOPKGTEST_TMP ;
+ python -m nose cartopy.tests.crs cartopy.tests.test_crs cartopy.tests.test_geodesic
+Depends: python-cartopy, python-nose
+Restrictions: allow-stderr
+
+Test-Command: cd $AUTOPKGTEST_TMP ;
+ python3 -m nose cartopy.tests.crs cartopy.tests.test_crs cartopy.tests.test_geodesic
+Depends: python3-cartopy, python3-nose
+Restrictions: allow-stderr
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..bc1fc9a
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/SciTools/cartopy/issues
+Bug-Submit: https://github.com/SciTools/cartopy/issues/new
+Changelog: https://github.com/SciTools/cartopy/blob/master/docs/source/whats_new.rst
+Name: cartopy
+Repository: git at github.com:SciTools/cartopy.git
+Repository-Browse: https://github.com/SciTools/cartopy
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d8cd278
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=repacksuffix=+dfsg1,\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$//,\
+uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/Cartopy/Cartopy-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-cartopy.git



More information about the debian-science-commits mailing list