Author: leidel
Date: Thu Mar  5 09:18:54 2009
New Revision: 390

Modified:
    trunk/MANIFEST.in
    trunk/pages/__init__.py
    trunk/setup.py

Log:
Moved setup.py over to use setuptools for sane package data handling.  
Bumped version up to 0.2.4.

Modified: trunk/MANIFEST.in
==============================================================================
--- trunk/MANIFEST.in   (original)
+++ trunk/MANIFEST.in   Thu Mar  5 09:18:54 2009
@@ -2,6 +2,7 @@
  include LICENSE
  include MANIFEST.in
  recursive-include docs *
+recursive-include pages/locale *
  recursive-include pages/media *
  recursive-include pages/templates *
  recursive-include example/fixtures *

Modified: trunk/pages/__init__.py
==============================================================================
--- trunk/pages/__init__.py     (original)
+++ trunk/pages/__init__.py     Thu Mar  5 09:18:54 2009
@@ -1,3 +1,3 @@
  # -*- coding: utf-8 -*-
-VERSION = (0, 2, 3)
+VERSION = (0, 2, 4)
  __version__ = '.'.join(map(str, VERSION))

Modified: trunk/setup.py
==============================================================================
--- trunk/setup.py      (original)
+++ trunk/setup.py      Thu Mar  5 09:18:54 2009
@@ -1,14 +1,4 @@
-# -*- coding: utf-8 -*-
-from distutils.core import setup
-import glob
-
-data = [ "locale/" + l.rsplit('/')[-1]+"/LC_MESSAGES/*.*" for l in  
glob.glob("pages/locale/*")]
-data.extend([
-    'templates/admin/pages/page/*.html',
-    'templates/pages/*.html',
-    'fixtures/*.json'
-    ]
-)
+from setuptools import setup, find_packages

  setup(
      name='django-page-cms',
@@ -22,14 +12,9 @@
          'tagging (>0.2.1)', # please use the trunk version of tagging
          'django_mptt (>0.2.1)', # please use the trunk version of django  
mptt
      ),
-    packages=[
-        'pages',
-        'pages.admin',
-        'pages.templatetags',
-        #'example',
-    ],
-     
package_dir={'pages': 'pages', 'pages.locale': 'locale', 'pages.templates': 
'templates'},
-    package_data={'pages': data},
+    packages=find_packages(exclude=['example', 'example.*']),
+    include_package_data=True, # include package data under svn source  
control
+    zip_safe=False,
      classifiers=[
          'Development Status :: 4 - Beta',
          'Environment :: Web Environment',
@@ -41,5 +26,5 @@
          'Programming Language :: Python :: 2.3',
          'Programming Language :: JavaScript',
          'Topic :: Internet :: WWW/HTTP :: Site Management',
-    ]
+    ],
  )

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to