[Python-modules-commits] r3379 - in /packages/python-django-registration/trunk/debian: changelog control patches/ patches/01_fix_setup_py.patch rules

hertzog at users.alioth.debian.org hertzog at users.alioth.debian.org
Thu Oct 4 18:26:55 UTC 2007


Author: hertzog
Date: Thu Oct  4 18:26:55 2007
New Revision: 3379

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=3379
Log:
* New upstream release.
* debian/patches/01_fix_setup_py.patch: Make sure that non *.py files
  like translations are also included. (patch forwarded upstream)
* Compile translations into *.mo files with the django's make-messages.py.
  Build-Depends on python-django for this.

Added:
    packages/python-django-registration/trunk/debian/patches/
    packages/python-django-registration/trunk/debian/patches/01_fix_setup_py.patch
Modified:
    packages/python-django-registration/trunk/debian/changelog
    packages/python-django-registration/trunk/debian/control
    packages/python-django-registration/trunk/debian/rules

Modified: packages/python-django-registration/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/python-django-registration/trunk/debian/changelog?rev=3379&op=diff
==============================================================================
--- packages/python-django-registration/trunk/debian/changelog (original)
+++ packages/python-django-registration/trunk/debian/changelog Thu Oct  4 18:26:55 2007
@@ -1,12 +1,17 @@
-python-django-registration (0.2-2) UNRELEASED; urgency=low
+python-django-registration (0.3p3-1) experimental; urgency=low
 
   [ Piotr Ożarowski ]
   * XS-Vcs-Browser and Homepage fields added
 
   [ Raphael Hertzog ]
+  * New upstream release.
   * Renamed XS-Vcs* to Vcs-* since they are supported by dpkg now.
+  * debian/patches/01_fix_setup_py.patch: Make sure that non *.py files
+    like translations are also included. (patch forwarded upstream)
+  * Compile translations into *.mo files with the django's make-messages.py.
+    Build-Depends on python-django for this.
 
- -- Raphael Hertzog <hertzog at debian.org>  Thu, 04 Oct 2007 14:53:36 +0200
+ -- Raphael Hertzog <hertzog at debian.org>  Thu, 04 Oct 2007 18:23:37 +0200
 
 python-django-registration (0.2-1) experimental; urgency=low
 

Modified: packages/python-django-registration/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/python-django-registration/trunk/debian/control?rev=3379&op=diff
==============================================================================
--- packages/python-django-registration/trunk/debian/control (original)
+++ packages/python-django-registration/trunk/debian/control Thu Oct  4 18:26:55 2007
@@ -4,7 +4,7 @@
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Raphael Hertzog <hertzog at debian.org> 
 Standards-Version: 3.7.2
-Build-Depends: debhelper (>= 5.0.37.2), python-dev, cdbs (>= 0.4.42), python-support (>= 0.3), python-docutils
+Build-Depends: debhelper (>= 5.0.37.2), python-dev, cdbs (>= 0.4.42), python-support (>= 0.3), python-docutils, python-django
 Homepage: http://code.google.com/p/django-registration/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-django-registration/trunk/
 Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/python-django-registration/?op=log

Added: packages/python-django-registration/trunk/debian/patches/01_fix_setup_py.patch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-django-registration/trunk/debian/patches/01_fix_setup_py.patch?rev=3379&op=file
==============================================================================
--- packages/python-django-registration/trunk/debian/patches/01_fix_setup_py.patch (added)
+++ packages/python-django-registration/trunk/debian/patches/01_fix_setup_py.patch Thu Oct  4 18:26:55 2007
@@ -1,0 +1,41 @@
+--- ../python-django-registration-0.3p3/setup.py	2007-09-28 06:48:09.000000000 +0200
++++ ./setup.py	2007-10-04 18:52:44.000000000 +0200
+@@ -1,4 +1,27 @@
+ from distutils.core import setup
++import os
++
++# Compile the list of packages available, because distutils doesn't have
++# an easy way to do this.
++packages, data_files = [], []
++root_dir = os.path.dirname(__file__)
++if root_dir:
++    os.chdir(root_dir)
++
++for dirpath, dirnames, filenames in os.walk('registration'):
++    # Ignore dirnames that start with '.'
++    for i, dirname in enumerate(dirnames):
++        if dirname.startswith('.'): del dirnames[i]
++    if '__init__.py' in filenames:
++        pkg = dirpath.replace(os.path.sep, '.')
++        if os.path.altsep:
++            pkg = pkg.replace(os.path.altsep, '.')
++        packages.append(pkg)
++    elif filenames:
++        prefix = dirpath[13:] # Strip "registration/" or "registration\"
++        for f in filenames:
++            data_files.append(os.path.join(prefix, f))
++
+ 
+ setup(name='registration',
+       version='0.3p3',
+@@ -6,7 +29,9 @@
+       author='James Bennett',
+       author_email='james at b-list.org',
+       url='http://code.google.com/p/django-registration/',
+-      packages=['registration'],
++      package_dir={'registration': 'registration'},
++      packages=packages,
++      package_data={'registration': data_files},
+       classifiers=['Development Status :: 4 - Beta',
+                    'Environment :: Web Environment',
+                    'Intended Audience :: Developers',

Modified: packages/python-django-registration/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/python-django-registration/trunk/debian/rules?rev=3379&op=diff
==============================================================================
--- packages/python-django-registration/trunk/debian/rules (original)
+++ packages/python-django-registration/trunk/debian/rules Thu Oct  4 18:26:55 2007
@@ -9,6 +9,12 @@
 include /usr/share/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
+clean::
+	-rm -f registration/locale/*/*/*.mo
+
+pre-build::
+	cd registration && /usr/lib/python-django/bin/compile-messages.py
+
 binary-post-install/python-django-registration::
 	# Generate documentation
 	rst2html <docs/overview.txt >debian/$(PKG)/usr/share/doc/$(PKG)/overview.html




More information about the Python-modules-commits mailing list