[Python-modules-commits] r20909 - in packages/python3-dateutil/trunk (12 files)

takluyver-guest at users.alioth.debian.org takluyver-guest at users.alioth.debian.org
Sat Mar 24 01:11:12 UTC 2012


    Date: Saturday, March 24, 2012 @ 01:11:10
  Author: takluyver-guest
Revision: 20909

[svn-inject] Applying Debian modifications (2.0-1) to trunk

Added:
  packages/python3-dateutil/trunk/debian/
  packages/python3-dateutil/trunk/debian/changelog
  packages/python3-dateutil/trunk/debian/compat
  packages/python3-dateutil/trunk/debian/control
  packages/python3-dateutil/trunk/debian/copyright
  packages/python3-dateutil/trunk/debian/patches/
  packages/python3-dateutil/trunk/debian/patches/Use-C-locale-when-calling-date.patch
  packages/python3-dateutil/trunk/debian/patches/series
  packages/python3-dateutil/trunk/debian/rules
  packages/python3-dateutil/trunk/debian/source/
  packages/python3-dateutil/trunk/debian/source/format
  packages/python3-dateutil/trunk/debian/watch


Property changes on: packages/python3-dateutil/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/python3-dateutil/trunk/debian/changelog
===================================================================
--- packages/python3-dateutil/trunk/debian/changelog	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/changelog	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1,6 @@
+python3-dateutil (2.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #665415)
+  * Copy patch to use C locale in example from python-dateutil
+
+ -- Thomas Kluyver <thomas at kluyver.me.uk>  Fri, 23 Mar 2012 22:33:26 +0000

Added: packages/python3-dateutil/trunk/debian/compat
===================================================================
--- packages/python3-dateutil/trunk/debian/compat	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/compat	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1 @@
+8

Added: packages/python3-dateutil/trunk/debian/control
===================================================================
--- packages/python3-dateutil/trunk/debian/control	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/control	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1,29 @@
+Source: python3-dateutil
+Section: python
+Priority: optional
+Maintainer: Thomas Kluyver <thomas at kluyver.me.uk>
+Build-Depends: debhelper (>= 8.0.0), python3
+Standards-Version: 3.9.3
+Homepage: http://labix.org/python-dateutil
+#Vcs-Git: git://git.debian.org/collab-maint/python3-dateutil.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/python3-dateutil.git;a=summary
+
+Package: python3-dateutil
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}, tzdata
+Description: powerful extensions to the standard datetime module in Python 3
+ It features:
+ .
+  * computing of relative deltas (next month, next year, next monday, last week
+    of month, etc);
+  * computing of relative deltas between two given date and/or datetime objects
+  * computing of dates based on very flexible recurrence rules, using a superset
+    of the iCalendar specification. Parsing of RFC strings is supported as well.
+  * generic parsing of dates in almost any string format
+  * timezone (tzinfo) implementations for tzfile(5) format files
+    (/etc/localtime, /usr/share/zoneinfo, etc), TZ environment string (in all
+    known formats), iCalendar format files, given ranges (with help from
+    relative deltas), local machine timezone, fixed offset timezone, UTC
+    timezone
+  * computing of Easter Sunday dates for any given year, using Western, Orthodox
+    or Julian algorithms

Added: packages/python3-dateutil/trunk/debian/copyright
===================================================================
--- packages/python3-dateutil/trunk/debian/copyright	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/copyright	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1,36 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: python3-dateutil
+Source: <http://labix.org/python-dateutil>
+
+Files: *
+Copyright: (c) 2003-2011 - Gustavo Niemeyer <gustavo at niemeyer.net>
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2012 Thomas Kluyver <thomas at kluyver.me.uk>
+License: BSD-3-Clause
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.

Added: packages/python3-dateutil/trunk/debian/patches/Use-C-locale-when-calling-date.patch
===================================================================
--- packages/python3-dateutil/trunk/debian/patches/Use-C-locale-when-calling-date.patch	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/patches/Use-C-locale-when-calling-date.patch	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1,16 @@
+Date: Fri, 23 Mar 2012 23:56:00 +0000
+Subject: Use C locale when calling date.
+
+Copied from python-dateutil package (Python 2 equivalent)
+Forwarded: no
+--- a/example.py
++++ b/example.py
+@@ -5,7 +5,7 @@
+ from datetime import *
+ import subprocess
+ import os
+-now = parse(subprocess.getoutput("date"))
++now = parse(subprocess.getoutput("LC_ALL=C date"))
+ today = now.date()
+ year = rrule(YEARLY, bymonth=8, bymonthday=13, byweekday=FR)[0].year
+ rdelta = relativedelta(easter(year), today)

Added: packages/python3-dateutil/trunk/debian/patches/series
===================================================================
--- packages/python3-dateutil/trunk/debian/patches/series	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/patches/series	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1 @@
+Use-C-locale-when-calling-date.patch

Added: packages/python3-dateutil/trunk/debian/rules
===================================================================
--- packages/python3-dateutil/trunk/debian/rules	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/rules	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PY3VERS:=$(shell py3versions -r)
+
+%:
+	dh $@ --with python3
+
+override_dh_auto_build:
+	set -e; \
+	for python in $(PY3VERS); do \
+		$$python setup.py build; \
+	done
+
+override_dh_auto_install:
+	set -ex; \
+	for python in $(PY3VERS); do \
+		$$python setup.py install --install-layout=deb \
+			--root=$(CURDIR)/debian//python3-dateutil; \
+	done
+	
+	rm -f debian/python3-dateutil/usr/lib/python3/dist-packages/dateutil/zoneinfo/zoneinfo-*.tar.gz
+
+override_dh_auto_test:
+	python3 test.py
+
+override_dh_clean:
+	dh_clean
+	rm -rf build
+	rm -rf dateutil/__pycache__
+	rm -rf dateutil/*/__pycache__


Property changes on: packages/python3-dateutil/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/python3-dateutil/trunk/debian/source/format
===================================================================
--- packages/python3-dateutil/trunk/debian/source/format	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/source/format	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/python3-dateutil/trunk/debian/watch
===================================================================
--- packages/python3-dateutil/trunk/debian/watch	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/watch	2012-03-24 01:11:10 UTC (rev 20909)
@@ -0,0 +1,5 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+# <Webpage URL> <string match>
+http://labix.org/python-dateutil python-dateutil-(.*)\.tar\.gz




More information about the Python-modules-commits mailing list