[Python-modules-commits] r30404 - in packages/django-polymorphic/trunk/debian (control rules)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Sun Aug 31 21:11:43 UTC 2014


    Date: Sunday, August 31, 2014 @ 21:11:42
  Author: fladi-guest
Revision: 30404

Add Python3 support.

Modified:
  packages/django-polymorphic/trunk/debian/control
  packages/django-polymorphic/trunk/debian/rules

Modified: packages/django-polymorphic/trunk/debian/control
===================================================================
--- packages/django-polymorphic/trunk/debian/control	2014-08-31 21:10:54 UTC (rev 30403)
+++ packages/django-polymorphic/trunk/debian/control	2014-08-31 21:11:42 UTC (rev 30404)
@@ -8,9 +8,13 @@
                python-all,
                python-django (>= 1.4),
                python-setuptools,
-               python-sphinx (>= 1.0.7+dfsg)
+               python-sphinx (>= 1.0.7+dfsg),
+               python3-all,
+               python3-django,
+               python3-setuptools,
 Standards-Version: 3.9.5
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Homepage: https://github.com/chrisglass/django_polymorphic
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/django-polymorphic/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/django-polymorphic/trunk/
@@ -37,6 +41,30 @@
   * Uses the minimum amount of queries needed to fetch the inherited models.
   * Disabling polymorphic behavior when needed.
 
+Package: python3-django-polymorphic
+Architecture: all
+Depends: python3-django,
+         ${misc:Depends},
+         ${python:Depends}
+Suggests: python-django-polymorphic-doc
+Description: Seamless Polymorphic Inheritance for Django Models (Python3 version)
+ Django-polymorphic simplifies using inherited models in Django projects. When a
+ query is made at the base model, the inherited model classes are returned.
+ .
+ Features:
+  * Full admin integration.
+  * ORM integration:
+    + Support for ForeignKey, ManyToManyField, OneToOneField descriptors.
+    + Support for proxy models.
+    + Filtering/ordering of inherited models (ArtProject___artist).
+    + Filtering model types: instance_of(...) and not_instance_of(...)
+    + Combining querysets of different models (qs3 = qs1 | qs2)
+    + Support for custom user-defined managers.
+  * Uses the minimum amount of queries needed to fetch the inherited models.
+  * Disabling polymorphic behavior when needed.
+ .
+ This package contains the Python 3 version of the library.
+
 Package: python-django-polymorphic-doc
 Section: doc
 Architecture: all

Modified: packages/django-polymorphic/trunk/debian/rules
===================================================================
--- packages/django-polymorphic/trunk/debian/rules	2014-08-31 21:10:54 UTC (rev 30403)
+++ packages/django-polymorphic/trunk/debian/rules	2014-08-31 21:11:42 UTC (rev 30404)
@@ -6,7 +6,7 @@
 export PYBUILD_NAME=django-polymorphic
 
 %:
-	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_build:
 	dh_auto_build
@@ -15,7 +15,7 @@
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e; \
-	for python in $(shell pyversions -r); do \
+	for python in $(shell pyversions -r) $(shell py3versions -r); do \
 		PYTHONPATH="." $$python runtests.py; \
 	done
 endif




More information about the Python-modules-commits mailing list