[Python-modules-commits] [parsedatetime] 09/11: Build binary packages for Python 3

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Mar 11 11:28:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/experimental
in repository parsedatetime.

commit 5dd46feb68ee8e9ca3a6c11c15273dea7406c187
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sat Mar 11 09:59:38 2017 +0000

    Build binary packages for Python 3
    
    Gbp-Dch: short
    Closes: #782926
    Thanks: Paul Tagliamonte for reporting
---
 debian/control | 38 +++++++++++++++++++++++++++++++++++++-
 debian/rules   |  3 ++-
 2 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index e7f5dbd..c403865 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,11 @@ Build-Depends: debhelper (>= 9),
                python-all,
                python-pytest,
                python-pytest-runner,
-               python-setuptools
+               python-setuptools,
+               python3-all,
+               python3-pytest,
+               python3-pytest-runner,
+               python3-setuptools
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/parsedatetime.git
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/parsedatetime.git
@@ -41,3 +45,35 @@ Description: Python module to parse human-readable date/time expressions
    * 5 hours before now
    * 2 hours before noon
    * 2 days from tomorrow
+ .
+ This package provides the modules for Python 2.
+
+Package: python3-parsedatetime
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         ${shlibs:Depends}
+Recommends: python-pyicu
+Description: Python 3 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
+ .
+ This package provides the modules for Python 3.
diff --git a/debian/rules b/debian/rules
index f6e57f4..f138e19 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
+export PYBUILD_NAME = parsedatetime
 export PYBUILD_TEST_ARGS = {dir}
 
 %:
-	dh $@ --with python2 --buildsystem pybuild
+	dh $@ --with python2,python3 --buildsystem pybuild

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



More information about the Python-modules-commits mailing list