[Python-modules-commits] [python-iso8601] 01/05: Add pypy-iso8601 package.

Tristan Seligmann mithrandi at moszumanska.debian.org
Fri Sep 4 07:09:55 UTC 2015


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

mithrandi pushed a commit to branch master
in repository python-iso8601.

commit 128b32eac57a294f8cb819814fbfdd6797edf53a
Author: Tristan Seligmann <mithrandi at debian.org>
Date:   Fri Sep 4 08:56:14 2015 +0200

    Add pypy-iso8601 package.
---
 debian/changelog |  8 ++++++++
 debian/control   | 15 +++++++++++++++
 debian/rules     |  5 ++++-
 3 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 374a68f..bf2b64a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+python-iso8601 (0.1.10-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * d/control: Add pypy-iso8601 package.
+  * d/rules: Add --with pypy.
+
+ -- Tristan Seligmann <mithrandi at debian.org>  Fri, 04 Sep 2015 08:58:57 +0200
+
 python-iso8601 (0.1.10-2) unstable; urgency=medium
 
   * d/control: Bump Standards-Version with no other changes necessary.
diff --git a/debian/control b/debian/control
index 39a97ad..a8f2468 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,9 @@ Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.
 Uploaders: Benjamin Mako Hill <mako at debian.org>,
            Barry Warsaw <barry at debian.org>
 Build-Depends: debhelper (>= 9),
+               dh-python,
+               pypy,
+               pypy-setuptools,
                python-all (>= 2.6.6-3~),
                python-pytest,
                python-setuptools,
@@ -42,3 +45,15 @@ Description: python module to parse ISO 8601 dates - Python 3.x
  forms encountered and returns Python datetime objects.
  .
  This package provides the Python 3.x module.
+
+Package: pypy-iso8601
+Architecture: all
+Depends: ${misc:Depends}, ${pypy:Depends}
+Provides: ${pypy:Provides}
+Description: python module to parse ISO 8601 dates - PyPy
+ Many file formats and standards use the ISO 8601 date format
+ (e.g. 2007-01-14T20:34:22+00:00) to store dates in a neutral,
+ unambiguous manner. This simple Python module parses the most common
+ forms encountered and returns Python datetime objects.
+ .
+ This package provides the PyPy module.
diff --git a/debian/rules b/debian/rules
index 5689300..2eaeb0c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@ PYTHONS:=$(shell pyversions -vr)
 PYTHON3S:=$(shell py3versions -vr)
 
 %:
-	dh $@ --buildsystem=python_distutils --with python2,python3
+	dh $@ --buildsystem=python_distutils --with python2,python3,pypy
 
 override_dh_auto_install:
 	set -e && for pyvers in $(PYTHONS); do \
@@ -15,6 +15,8 @@ override_dh_auto_install:
 		python$$pyvers setup.py install --install-layout=deb \
 			--root $(CURDIR)/debian/python3-iso8601; \
 	done
+	set -e && pypy setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/pypy-iso8601
 
 override_dh_clean:
 	dh_clean -O--buildsystem=python_distutils
@@ -24,4 +26,5 @@ override_dh_auto_test:
 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
 	py.test --verbose iso8601
 	py.test-3 --verbose iso8601
+	# no py.test for pypy yet, so we can't run the tests for pypy
 endif

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



More information about the Python-modules-commits mailing list