[Python-modules-commits] r5082 - in packages/parsedatetime/trunk/debian (4 files)

bzed at users.alioth.debian.org bzed at users.alioth.debian.org
Mon Apr 21 08:05:20 UTC 2008


    Date: Monday, April 21, 2008 @ 08:05:18
  Author: bzed
Revision: 5082

* New upstream version.
* debian/patches:
  - Dropping locale-de.dpatch, patch was applied by upstream.
* debian/rules:
  - Enabling build tests again, as they were fixed by uptsream.

Modified:
  packages/parsedatetime/trunk/debian/changelog
  packages/parsedatetime/trunk/debian/patches/00list
  packages/parsedatetime/trunk/debian/rules
Deleted:
  packages/parsedatetime/trunk/debian/patches/locale-de.dpatch

Modified: packages/parsedatetime/trunk/debian/changelog
===================================================================
--- packages/parsedatetime/trunk/debian/changelog	2008-04-20 21:47:48 UTC (rev 5081)
+++ packages/parsedatetime/trunk/debian/changelog	2008-04-21 08:05:18 UTC (rev 5082)
@@ -1,10 +1,18 @@
-parsedatetime (0.8.5-3) UNRELEASED; urgency=low
+parsedatetime (0.8.6-1) UNRELEASED; urgency=low
 
+  [ Sandro Tosi ]
   * debian/control
     - uniforming Vcs-Browser field
 
- -- Sandro Tosi <matrixhasu at gmail.com>  Thu, 03 Jan 2008 11:49:06 +0100
+  [ Bernd Zeimetz ]
+  * New upstream version.
+  * debian/patches:
+    - Dropping locale-de.dpatch, patch was applied by upstream.
+  * debian/rules:
+    - Enabling build tests again, as they were fixed by uptsream.
 
+ -- Bernd Zeimetz <bzed at debian.org>  Mon, 21 Apr 2008 10:02:27 +0200
+
 parsedatetime (0.8.5-2) unstable; urgency=low
 
   * debian/patches:

Modified: packages/parsedatetime/trunk/debian/patches/00list
===================================================================
--- packages/parsedatetime/trunk/debian/patches/00list	2008-04-20 21:47:48 UTC (rev 5081)
+++ packages/parsedatetime/trunk/debian/patches/00list	2008-04-21 08:05:18 UTC (rev 5082)
@@ -1,3 +1,2 @@
 remove-shebang
 no-setuptools-please
-locale-de

Deleted: packages/parsedatetime/trunk/debian/patches/locale-de.dpatch
===================================================================
--- packages/parsedatetime/trunk/debian/patches/locale-de.dpatch	2008-04-20 21:47:48 UTC (rev 5081)
+++ packages/parsedatetime/trunk/debian/patches/locale-de.dpatch	2008-04-21 08:05:18 UTC (rev 5082)
@@ -1,156 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## locale-de.dpatch by Bernd Zeimetz <bzed at debian.org>
-##
-## DP: de_DE locale constants
-
- at DPATCH@
-diff -urNad parsedatetime~/parsedatetime/parsedatetime_consts.py parsedatetime/parsedatetime/parsedatetime_consts.py
---- parsedatetime~/parsedatetime/parsedatetime_consts.py	2007-12-19 15:10:16.000000000 +0100
-+++ parsedatetime/parsedatetime/parsedatetime_consts.py	2007-12-19 15:11:44.000000000 +0100
-@@ -1,4 +1,4 @@
--
-+# -*- coding: utf-8 -*-
- """
- parsedatetime constants and helper functions to determine
- regex values from Locale information if present.
-@@ -10,6 +10,7 @@
- __license__ = """
- Copyright (c) 2004-2007 Mike Taylor
- Copyright (c) 2006-2007 Darshana Chhajed
-+Copyright (c)      2007 Bernd Zeimetz <bzed at debian.org>
- All rights reserved.
- 
- Licensed under the Apache License, Version 2.0 (the "License");
-@@ -352,12 +353,132 @@
-                     }
- 
- 
-+class pdtLocale_de:
-+    """
-+    de_DE Locale constants
-+
-+    This class will be used to initialize L{Constants} if PyICU is not located.
-+
-+    Defined as class variables are the lists and strings needed by parsedatetime
-+    to evaluate strings for German
-+
-+    """
-+
-+    localeID      = 'de_DE'   # don't use a unicode string
-+    dateSep       = [ u'.' ]
-+    timeSep       = [ u':' ]
-+    meridian      = [ ]
-+    usesMeridian  = False
-+    uses24        = True
-+
-+    Weekdays      = [ u'montag', u'dienstag', u'mittwoch',
-+                      u'donnerstag', u'freitag', u'samstag', u'sonntag',
-+                    ]
-+    shortWeekdays = [ u'mo', u'di', u'mi',
-+                      u'do', u'fr', u'sa', u'so',
-+                    ]
-+    Months        = [ u'januar', u'februar', u'märz',
-+                      u'april',   u'mai',      u'juni',
-+                      u'juli',    u'august',   u'september',
-+                      u'oktober', u'november', u'dezember',
-+                    ]
-+    shortMonths   = [ u'jan', u'feb', u'mrz',
-+                      u'apr', u'mai', u'jun',
-+                      u'jul', u'aug', u'sep',
-+                      u'okt', u'nov', u'dez',
-+                    ]
-+    dateFormats   = { 'full':   u'EEEE, d. MMMM yyyy',
-+                      'long':   u'd. MMMM yyyy',
-+                      'medium': u'dd.MM.yyyy',
-+                      'short':  u'dd.MM.yy'
-+                    }
-+
-+    timeFormats   = { 'full': u'HH:mm:ss v',
-+                      'long': u'HH:mm:ss z',
-+                      'medium': u'HH:mm:ss',
-+                      'short': u'HH:mm'
-+                    }
-+        
-+        
-+    dp_order = [ u'd', u'm', u'y' ]
-+
-+      # this will be added to re_consts later
-+    units = { 'seconds': [ 'sekunden', 'sek', 's' ],
-+              'minutes': [ 'minuten', 'min' , 'm' ],
-+              'hours':   [ 'stunden',   'std', 'h'  ],
-+              'days':    [ 'tage',    't'  ],
-+              'weeks':   [ 'wochen',   'w'  ],
-+              'months':  [ 'monate' ], #the short version would be a capital M,
-+                                       #as I understand it we can't distinguis
-+                                       #between m for minutes and M for months.
-+              'years':   [ 'jahre',   'j'  ],
-+            }
-+
-+      # text constants to be used by regex's later
-+    re_consts     = { 'specials':       'am|dem|der|im|in|den|zum',
-+                      'timeseperator':  ':',
-+                      'rangeseperator': '-',
-+                      'daysuffix':      '',
-+                      'meridian':       '',
-+                      'qunits':         'h|m|s|t|w|m|j',
-+                      'now':            [ 'jetzt' ],
-+                    }
-+
-+      # Used to adjust the returned date before/after the source
-+      #still looking for insight on how to translate all of them to german.
-+    modifiers = { 'from':         1,
-+                  'before':      -1,
-+                  'after':        1,
-+                  'vergangener': -1,
-+                  'vorheriger':  -1,
-+                  'prev':        -1,
-+                  'letzter':     -1,
-+                  u'nächster':    1,
-+                  'dieser':       0,
-+                  'previous':    -1,
-+                  'in a':         2,
-+                  'end of':       0,
-+                  'eod':          0,
-+                  'eo':           0
-+                }
-+
-+     #morgen/übermorgen does not work, see http://code.google.com/p/parsedatetime/issues/detail?id=19
-+    dayoffsets = { 'morgen':   1,
-+                   'heute':      0,
-+                   'gestern': -1,
-+                   'vorgestern': -2,
-+                   u'übermorgen': 2
-+                 }
-+
-+      # special day and/or times, i.e. lunch, noon, evening
-+      # each element in the dictionary is a dictionary that is used
-+      # to fill in any value to be replace - the current date/time will
-+      # already have been populated by the method buildSources
-+    re_sources    = { 'mittag':      { 'hr': 12, 'mn': 0, 'sec': 0 },
-+                      'mittags':      { 'hr': 12, 'mn': 0, 'sec': 0 },
-+                      'mittagessen':     { 'hr': 12, 'mn': 0, 'sec': 0 },
-+                      'morgen':   { 'hr':  6, 'mn': 0, 'sec': 0 },
-+                      'morgens':   { 'hr':  6, 'mn': 0, 'sec': 0 },
-+                      u'frühstück': { 'hr':  8, 'mn': 0, 'sec': 0 },
-+                      'abendessen':    { 'hr': 19, 'mn': 0, 'sec': 0 },
-+                      'abend':   { 'hr': 18, 'mn': 0, 'sec': 0 },
-+                      'abends':   { 'hr': 18, 'mn': 0, 'sec': 0 },
-+                      'mitternacht':  { 'hr':  0, 'mn': 0, 'sec': 0 },
-+                      'nacht':     { 'hr': 21, 'mn': 0, 'sec': 0 },
-+                      'nachts':     { 'hr': 21, 'mn': 0, 'sec': 0 },
-+                      'heute abend':   { 'hr': 21, 'mn': 0, 'sec': 0 },
-+                      'heute nacht':   { 'hr': 21, 'mn': 0, 'sec': 0 },
-+                      'feierabend':       { 'hr': 17, 'mn': 0, 'sec': 0 },
-+                    }
-+
- pdtLocales = { 'en_US': pdtLocale_en,
-                'en_AU': pdtLocale_au,
-                'es':    pdtLocale_es,
-+               'de_DE': pdtLocale_de
-              }
- 
- 
-+
- def _initLocale(ptc):
-     """
-     Helper function to initialize the different lists and strings

Modified: packages/parsedatetime/trunk/debian/rules
===================================================================
--- packages/parsedatetime/trunk/debian/rules	2008-04-20 21:47:48 UTC (rev 5081)
+++ packages/parsedatetime/trunk/debian/rules	2008-04-21 08:05:18 UTC (rev 5082)
@@ -18,15 +18,12 @@
 	    $$py setup.py build; \
 	done
 
-#disabled for now.
-ifeq (,a)
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e ;\
 	for py in $(PYVERS); do  \
 	    PYTHONPATH=$(CURDIR)/build/lib $$py run_tests.py parsedatetime; \
 	done
 endif
-endif
 	touch $@
 
 clean: clean-patched unpatch




More information about the Python-modules-commits mailing list