[Python-modules-commits] r34142 - in packages/pyasn1/trunk/debian (4 files)

mithrandi at users.alioth.debian.org mithrandi at users.alioth.debian.org
Fri Sep 4 06:20:52 UTC 2015


    Date: Friday, September 4, 2015 @ 06:20:51
  Author: mithrandi
Revision: 34142

* Team upload.
* Add pypy-pyasn1 package.

Added:
  packages/pyasn1/trunk/debian/pypy-pyasn1.install
Modified:
  packages/pyasn1/trunk/debian/changelog
  packages/pyasn1/trunk/debian/control
  packages/pyasn1/trunk/debian/rules

Modified: packages/pyasn1/trunk/debian/changelog
===================================================================
--- packages/pyasn1/trunk/debian/changelog	2015-09-04 05:39:05 UTC (rev 34141)
+++ packages/pyasn1/trunk/debian/changelog	2015-09-04 06:20:51 UTC (rev 34142)
@@ -1,3 +1,10 @@
+pyasn1 (0.1.8-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Add pypy-pyasn1 package.
+
+ -- Tristan Seligmann <mithrandi at debian.org>  Fri, 04 Sep 2015 08:19:45 +0200
+
 pyasn1 (0.1.8-1) unstable; urgency=medium
 
   * New upstream release

Modified: packages/pyasn1/trunk/debian/control
===================================================================
--- packages/pyasn1/trunk/debian/control	2015-09-04 05:39:05 UTC (rev 34141)
+++ packages/pyasn1/trunk/debian/control	2015-09-04 06:20:51 UTC (rev 34142)
@@ -3,12 +3,16 @@
 Priority: optional
 Maintainer: Jan Lübbe <jluebbe at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
-           Deepak Tripathi <apenguinlinux at gmail.com>, Vincent Bernat <bernat at debian.org>
+           Deepak Tripathi <apenguinlinux at gmail.com>,
+           Vincent Bernat <bernat at debian.org>
 Standards-Version: 3.9.6
-Build-Depends: debhelper (>= 5.0.37.2),
-               cdbs (>= 0.4.90~),
-               python-all (>= 2.6.6-3~), python3-all
-Build-Depends-Indep: python-setuptools, python3-setuptools
+Build-Depends: cdbs (>= 0.4.90~),
+               debhelper (>= 5.0.37.2),
+               dh-python,
+               pypy,
+               python-all (>= 2.6.6-3~),
+               python3-all
+Build-Depends-Indep: pypy-setuptools, python-setuptools, python3-setuptools
 X-Python-Version: >= 2.4
 Homepage: http://pyasn1.sourceforge.net/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pyasn1/trunk/
@@ -16,7 +20,7 @@
 
 Package: python-pyasn1
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
+Depends: ${misc:Depends}, ${python:Depends}
 Suggests: doc-base
 Description: ASN.1 library for Python (Python 2 module)
  This  is  an implementation  of  ASN.1  types  and codecs  in  Python
@@ -28,7 +32,7 @@
 
 Package: python3-pyasn1
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
+Depends: ${misc:Depends}, ${python3:Depends}
 Suggests: doc-base
 Description: ASN.1 library for Python (Python 3 module)
  This  is  an implementation  of  ASN.1  types  and codecs  in  Python
@@ -37,3 +41,15 @@
  of protocols based on ASN.1 specification.
  .
  This package contains the Python 3 module.
+
+Package: pypy-pyasn1
+Architecture: all
+Depends: ${misc:Depends}, ${pypy:Depends}
+Suggests: doc-base
+Description: ASN.1 library for Python (PyPy module)
+ This  is  an implementation  of  ASN.1  types  and codecs  in  Python
+ programming language. It has been first written to support particular
+ protocol (SNMP) but then generalized  to be suitable for a wide range
+ of protocols based on ASN.1 specification.
+ .
+ This package contains the PyPy module.

Added: packages/pyasn1/trunk/debian/pypy-pyasn1.install
===================================================================
--- packages/pyasn1/trunk/debian/pypy-pyasn1.install	                        (rev 0)
+++ packages/pyasn1/trunk/debian/pypy-pyasn1.install	2015-09-04 06:20:51 UTC (rev 34142)
@@ -0,0 +1 @@
+debian/tmp/usr/lib/pypy*

Modified: packages/pyasn1/trunk/debian/rules
===================================================================
--- packages/pyasn1/trunk/debian/rules	2015-09-04 05:39:05 UTC (rev 34141)
+++ packages/pyasn1/trunk/debian/rules	2015-09-04 06:20:51 UTC (rev 34142)
@@ -4,6 +4,9 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
+# pypy binary package
+pypy_package = pypy-pyasn1
+
 # Don't compress .py files
 DEB_COMPRESS_EXCLUDE := .py
 
@@ -11,6 +14,33 @@
 DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed \
 	--install-layout=deb
 
+# hook pypy-pyasn1 into existing cdbs build stage
+build/$(pypy_package):: build/%: debian/python-module-stampdir/%
+debian/python-module-stampdir/$(pypy_package):
+	cd $(cdbs_python_distutils_srcdir) && \
+		pypy $(cdbs_python_setup_cmd) build \
+		$(cdbs_python_build_args)
+	touch $@
+
+# hook pypy-pyasn1 into existing cdbs install stage
+install/$(pypy_package)::
+	cd $(cdbs_python_distutils_srcdir) && \
+		pypy $(cdbs_python_setup_cmd) install \
+		--root="$(cdbs_python_destdir)" \
+		--install-purelib=$(call cdbs_expand_python_distutils_installdir,pypy) \
+		$(cdbs_python_install_args)
+
+# hook in binary-post-install to invoke dh_pypy to calculate
+# dependencies, add maintainer script and byte compile files.
+binary-post-install/$(pypy_package):: binary-post-install/%: binary-install-python/%
+binary-install-python/$(pypy_package):: binary-install-python/%: binary-install/%
+	dh_pypy -p$(cdbs_curpkg) $(call cdbs_expand_curvar,DEB_DH_PYTHONHELPER_ARGS) $(call cdbs_expand_curvar, DEB_PYTHON_PRIVATE_MODULE_DIRS)
+
+python-module-clean/$(pypy_package)::
+	-cd $(cdbs_python_distutils_srcdir) && \
+		pypy $(cdbs_python_setup_cmd) clean \
+		$(cdbs_python_clean_args)
+
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 install/python-pyasn1 install/python3-pyasn1::
 	set -e; cd test; for buildver in $(cdbs_curpythonbuildversions); do \
@@ -18,4 +48,11 @@
         pd=$$(/bin/ls -d $(CURDIR)/build/$(if $(filter $(cdbs_curpythonstem),3),lib,lib.*-$$buildver)) && \
         PYTHONPATH=$$pd $(call cdbs_python_binary,python$$buildver) suite.py; \
     done
+
+install/pypy-pyasn1::
+	set -e; cd test; \
+        echo "I: Running pyasn1 unittests using pypy"; \
+        pd=$$(/bin/ls -d $(CURDIR)/build/lib) && \
+        PYTHONPATH=$$pd pypy suite.py; \
+    done
 endif




More information about the Python-modules-commits mailing list