Permalink
Browse files

fixed setup.py

  • Loading branch information...
1 parent 7d19db2 commit 0af2a5c8a3ea7e069c355083e676ffa4b35621d1 @hpoul committed Mar 17, 2012
Showing with 121 additions and 20 deletions.
  1. +3 −0 .gitignore
  2. +58 −0 MANIFEST.in
  3. +23 −0 generate_manifest.in
  4. +37 −20 setup.py
View
@@ -1 +1,4 @@
*.pyc
+dist/django-sct-*.tar.gz
+dist/django-sct-*
+django_sct.egg-info
View
@@ -0,0 +1,58 @@
+include AUTHORS
+include LICENSE
+include README
+
+global-include *.pyc README *.xsl *.txt
+
+recursive-include dist/django-sct-0.7/examples/buildout_project/sph_project/apps/sph_theme/static *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/community/static *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphblockframework/static *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphblog/static *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphboard/static *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphquestions/static *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphsearch/static *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphwiki/static *
+recursive-include examples/buildout_project/sph_project/apps/sph_theme/static *
+recursive-include sphenecoll/sphene/community/static *
+recursive-include sphenecoll/sphene/sphblockframework/static *
+recursive-include sphenecoll/sphene/sphblog/static *
+recursive-include sphenecoll/sphene/sphboard/static *
+recursive-include sphenecoll/sphene/sphquestions/static *
+recursive-include sphenecoll/sphene/sphsearch/static *
+recursive-include sphenecoll/sphene/sphwiki/static *
+recursive-include dist/django-sct-0.7/examples/buildout_project/sph_project/apps/sph_theme/locale *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/community/locale *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphblog/locale *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphboard/locale *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphcomments/locale *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphlinklist/locale *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphsearchboard/locale *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphwiki/locale *
+recursive-include examples/buildout_project/sph_project/apps/sph_theme/locale *
+recursive-include sphenecoll/sphene/community/locale *
+recursive-include sphenecoll/sphene/sphblog/locale *
+recursive-include sphenecoll/sphene/sphboard/locale *
+recursive-include sphenecoll/sphene/sphcomments/locale *
+recursive-include sphenecoll/sphene/sphlinklist/locale *
+recursive-include sphenecoll/sphene/sphsearchboard/locale *
+recursive-include sphenecoll/sphene/sphwiki/locale *
+recursive-include dist/django-sct-0.7/examples/buildout_project/sph_project/apps/sph_theme/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/community/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphblockframework/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphblog/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphboard/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphcomments/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphlinklist/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphquestions/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphsearchboard/templates *
+recursive-include dist/django-sct-0.7/sphenecoll/sphene/sphwiki/templates *
+recursive-include examples/buildout_project/sph_project/apps/sph_theme/templates *
+recursive-include sphenecoll/sphene/community/templates *
+recursive-include sphenecoll/sphene/sphblockframework/templates *
+recursive-include sphenecoll/sphene/sphblog/templates *
+recursive-include sphenecoll/sphene/sphboard/templates *
+recursive-include sphenecoll/sphene/sphcomments/templates *
+recursive-include sphenecoll/sphene/sphlinklist/templates *
+recursive-include sphenecoll/sphene/sphquestions/templates *
+recursive-include sphenecoll/sphene/sphsearchboard/templates *
+recursive-include sphenecoll/sphene/sphwiki/templates *
View
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+target=MANIFEST.in
+
+cat > $target << END
+include AUTHORS
+include LICENSE
+include README
+
+global-include *.pyc README *.xsl *.txt
+
+END
+
+function finddirs() {
+ name=$1
+ find . -name $name -type d | sed "s/^/recursive-include /" | sed "s/$/ */" | sed "s/ \.\// /" >> $target
+}
+
+finddirs static
+finddirs locale
+finddirs templates
+
+
View
57 setup.py 100644 → 100755
@@ -4,40 +4,57 @@
# http://allmybrain.com/2009/10/21/the-python-install-system-needs-an-overhaul/
#
-import os
+#import os
from setuptools import setup, find_packages
-from finddata import find_package_data
-
-packages=find_packages('sphenecoll')
-package_data=find_package_data('sphenecoll')
-static = find_package_data('static','sphene')
-# not in correct format
-static_dict={} # dir -> files
-for path in static['sphene']:
- dir, file = os.path.split(path)
- dir = os.path.join('static', dir )
- files = static_dict.setdefault( dir, [] )
- files.append(os.path.join('static',path))
-
+
+
+CLASSIFIERS = [
+ 'Development Status :: 4 - Beta',
+ 'Environment :: Web Environment',
+ 'Framework :: Django',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: Information Technology',
+ 'Intended Audience :: System Administrators',
+ 'License :: OSI Approved :: BSD License',
+ 'Natural Language :: English',
+ 'Natural Language :: German',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2.5',
+ 'Topic :: Communications',
+ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries',
+ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Message Boards',
+ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+
+]
+
setup(
- name='Sphene Community Tools',
- version='0.6',
+ name='django-sct',
+ version='0.7',
author = 'Herbert Poul',
author_email = 'herbert.poul@gmail.com',
url = 'http://sct.sphene.net/',
- description = 'SCT (Sphene Community Tools) is a collection of Django applications. It currently consists of a Wiki and Forum application which are applicable for communities, support forums, blogs, etc.',
+ description = 'SCT (Sphene Community Tools) is a collection of Django applications for communities. It currently consists of a Forum and Wiki application which are applicable for communities, support forums, blogs, etc.',
long_description = '''SCT (Sphene Community Tools) is a collection of Django applications that are
designed to be easily pluggable into any Django project. It currently consists
of a Wiki and a Forum application. It contains an example project that allows
users to create a community Web site containing the Wiki and Board applications
without any further coding/configuration changes.''',
+ install_requires=[
+ 'Django>=1.4',
+ 'pycrypto>=2.0',
+ ],
+ classifiers=CLASSIFIERS,
+ license='BSD License',
- packages=packages,
- package_data=package_data,
+ packages=find_packages('sphenecoll',exclude=['simpleproject','sph_project']),
+ include_package_data=True,
+ zip_safe = False,
package_dir={'sphene':'sphenecoll/sphene'},
# these scripts are only required before creating distribution... no need to install them.
#scripts=['dist/scripts/make-messages.py', 'dist/scripts/compile-all-sph-messages.py' ],
- data_files=static_dict.items()
+ #data_files=static_dict.items()
)

0 comments on commit 0af2a5c

Please sign in to comment.