[python-coards] 01/04: Switch from git-dpm to gbp
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Feb 28 16:09:35 UTC 2017
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 f9faf86ddcd558bfa0e1f840791e8264fd0955ec
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Tue Feb 28 15:59:52 2017 +0000
Switch from git-dpm to gbp
- Drop git-dpm configuration
- Unapply patch queue
- Add gbp configuration
Gbp-Dch: full
---
debian/.git-dpm | 11 -----------
debian/gbp.conf | 7 +++++++
src/coards/__init__.py | 22 +++++++++++-----------
3 files changed, 18 insertions(+), 22 deletions(-)
diff --git a/debian/.git-dpm b/debian/.git-dpm
deleted file mode 100644
index a82eaaf..0000000
--- a/debian/.git-dpm
+++ /dev/null
@@ -1,11 +0,0 @@
-# see git-dpm(1) from git-dpm package
-ee7566c6f5825658b55fc5b196d72b945841065f
-ee7566c6f5825658b55fc5b196d72b945841065f
-b447ed756a24013b9ccf678f9dffe80f419adb14
-b447ed756a24013b9ccf678f9dffe80f419adb14
-python-coards_1.0.5.orig.tar.gz
-56b9b9f74862761399d8c97b5a5632d82aabc47f
-4658
-debianTag="debian/%e%v"
-patchedTag="patched/%e%v"
-upstreamTag="upstream/%e%u"
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/src/coards/__init__.py b/src/coards/__init__.py
index 069460e..52a52f6 100755
--- a/src/coards/__init__.py
+++ b/src/coards/__init__.py
@@ -122,29 +122,29 @@ def format(date, units):
"""
Convert a datetime object into a COARDS compliant date::
- >>> print(format(datetime(1970, 1, 1, 0, 0), "hours since 1970-01-01 00:00:00"))
+ >>> print format(datetime(1970, 1, 1, 0, 0), "hours since 1970-01-01 00:00:00")
0.0
- >>> print(format(datetime(1969, 12, 31, 21, 30), "hours since 1970-01-01 00:00:00 +2:30"))
+ >>> print format(datetime(1969, 12, 31, 21, 30), "hours since 1970-01-01 00:00:00 +2:30")
0.0
- >>> print(format(datetime(1996, 1, 1, 10, 0), "hours since 1996-1-1"))
+ >>> print format(datetime(1996, 1, 1, 10, 0), "hours since 1996-1-1")
10.0
- >>> print(format(datetime(1, 1, 1, 10, 0), "hours since 1-1-1"))
+ >>> print format(datetime(1, 1, 1, 10, 0), "hours since 1-1-1")
10.0
- >>> print(format(datetime(1990, 11, 25, 22, 0), "hours since 1990-11-25 12:00:00"))
+ >>> print format(datetime(1990, 11, 25, 22, 0), "hours since 1990-11-25 12:00:00")
10.0
- >>> print(format(datetime(1990, 11, 25, 22, 0), "hours since 1990-11-25 12:00"))
+ >>> print format(datetime(1990, 11, 25, 22, 0), "hours since 1990-11-25 12:00")
10.0
- >>> print(format(datetime(1990, 11, 25, 20, 0), "hours since 1990-11-25 12:00 +2:00"))
+ >>> print format(datetime(1990, 11, 25, 20, 0), "hours since 1990-11-25 12:00 +2:00")
10.0
- >>> print(format(datetime(1990, 11, 25, 22, 0), "hours since 1990-11-25 12:00 UTC"))
+ >>> print format(datetime(1990, 11, 25, 22, 0), "hours since 1990-11-25 12:00 UTC")
10.0
- >>> print(format(datetime(1970, 1, 1, 0, 0, 10), "seconds since 1970-1-1"))
+ >>> print format(datetime(1970, 1, 1, 0, 0, 10), "seconds since 1970-1-1")
10.0
It works with a year that never existed, since it's usual to have the
origin set to the year zero in climatological datasets::
- >>> print(format(datetime(1, 1, 1, 0, 0), "days since 0000-01-01 00:00:00"))
+ >>> print format(datetime(1, 1, 1, 0, 0), "days since 0000-01-01 00:00:00")
366.0
"""
@@ -159,7 +159,7 @@ def parse_units(units):
This function transforms all Udunits defined time units, returning it
converted to seconds::
- >>> print(parse_units("min"))
+ >>> print parse_units("min")
60.0
"""
--
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