[python-coards] 05/06: Initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Dec 28 14:18:35 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-coards.

commit 68e1239545b8207149ef70a0b831869030123cf1
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Dec 28 12:37:49 2016 +0000

    Initial debianization
---
 debian/changelog     |  5 +++++
 debian/clean         |  1 +
 debian/compat        |  1 +
 debian/control       | 37 +++++++++++++++++++++++++++++++++++++
 debian/copyright     | 31 +++++++++++++++++++++++++++++++
 debian/rules         | 18 ++++++++++++++++++
 debian/tests/control |  7 +++++++
 debian/watch         |  3 +++
 8 files changed, 103 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8ddf70d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-coards (1.0.5-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #849541)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Wed, 28 Dec 2016 11:48:43 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..45e1151
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+src/*.egg-info/*
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..a20478e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: python-coards
+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: debhelper (>= 10),
+               dh-python,
+               python-all,
+               python-setuptools,
+               python3-all,
+               python3-setuptools,
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/python-coards.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-coards.git
+Homepage: http://code.dealmeida.net/coards
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.3
+
+Package: python-coards
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends}
+Description: COARDS-compliant time parser (Python 2)
+ This module is intended to help parse time values represented using the
+ COARDS convention.
+ .
+ This package provides the library for Python 2.
+
+Package: python3-coards
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Description: COARDS-compliant time parser (Python 3)
+ This module is intended to help parse time values represented using the
+ COARDS convention.
+ .
+ This package provides the library for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d8e1f15
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: coards
+Upstream-Contact: Roberto De Almeida <roberto at dealmeida.net>
+Source: https://pypi.python.org/pypi/coards/
+
+Files: *
+Copyright: 2013 Roberto De Almeida <roberto at dealmeida.net>
+License: Expat
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
+ this software and associated documentation files (the "Software"), to deal in
+ the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..874deff
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = coards
+export PYBUILD_AFTER_INSTALL = rm -rf {destdir}/usr/bin
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+	PYBUILD_SYSTEM=custom \
+		PYBUILD_TEST_ARGS="cd {build_dir}; {interpreter} -c 'import coards; coards._test()'" \
+		dh_auto_test
+
+override_dh_installchangelogs:
+	dh_installchangelogs NEWS.txt
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..db4395a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,7 @@
+Test-Command: cd $AUTOPKGTEST_TMP
+ ; python -c "import coards; coards._test()"
+Depends: python-coards
+
+Test-Command: cd $AUTOPKGTEST_TMP
+ ; python3 -c "import coards; coards._test()"
+Depends: python3-coards
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..fd10b64
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/coards/coards-@ANY_VERSION@@ARCHIVE_EXT@

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



More information about the debian-science-commits mailing list