Hi,

I'm attaching the patch to have a parsedatetime python3 module.

Cheers,

-- 
Laurent
>From 209238940c6c370c7f5a4c766946804c523f7fa9 Mon Sep 17 00:00:00 2001
From: Laurent Arnoud <Laurent Arnoud laur...@spkdev.net>
Date: Wed, 1 Mar 2017 20:12:25 +0100
Subject: [PATCH] Provide a parsedatetime python3 module

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782926
---
 debian/clean   |  3 +++
 debian/control | 30 +++++++++++++++++++++++++++++-
 debian/rules   |  4 +++-
 3 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 debian/clean

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..eefdf16
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+# these files get autogenerated by setup.py
+parsedatetime.egg-info/PKG-INFO
+parsedatetime.egg-info/SOURCES.txt
diff --git a/debian/control b/debian/control
index c000f01..8f6cada 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,9 @@ Section: python
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org>
 Uploaders: Bernd Zeimetz <b...@debian.org>
-Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python-setuptools, python-nose, dh-python
+Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python3-all, dh-python,
+               python-setuptools, python-nose,
+               python3-setuptools, python3-nose
 Standards-Version: 3.9.5
 Homepage: https://pypi.python.org/pypi/parsedatetime/
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/parsedatetime.git
@@ -34,3 +36,29 @@ Description: Python module to parse human-readable date/time expressions
    * 5 hours before now
    * 2 hours before noon
    * 2 days from tomorrow
+
+Package: python3-parsedatetime
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, base-files (>= 4.0.4)
+Recommends: python-pyicu
+Description: Python module to parse human-readable date/time expressions
+ parsedatetime is able to parse, for example, the following:
+ .
+   * August 25th, 2008
+   * 25 Aug 2008
+   * Aug 25 5pm
+   * 5pm August 25
+   * next saturday
+   * tomorrow
+   * next thursday at 4pm
+   * at 4pm
+   * eod
+   * tomorrow eod
+   * eod tuesday
+   * eoy
+   * eom
+   * in 5 minutes
+   * 5 minutes from now
+   * 5 hours before now
+   * 2 hours before noon
+   * 2 days from tomorrow
diff --git a/debian/rules b/debian/rules
index 53cb3ca..a56f80b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,6 @@
 #!/usr/bin/make -f
 
+export PYBUILD_NAME=parsedatetime
+
 %:
-	dh $@ --with python2 --buildsystem pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild
-- 
2.11.0

Reply via email to