Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added setup.py

  • Loading branch information...
commit fa8031ee468dfb145b848c30ba98afb95a5d88be 1 parent 388c141
Luke Plant authored
Showing with 46 additions and 0 deletions.
  1. +46 −0 setup.py
46 setup.py
View
@@ -0,0 +1,46 @@
+#!/usr/bin/env python
+import os
+
+from setuptools import setup, find_packages
+
+def read(fname):
+ return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+def find_package_data(pkg, filetypes):
+ import glob
+ import itertools
+
+ out = []
+ for f in filetypes:
+ for x in range(0, 20):
+ pattern = pkg + '/' + ('*/' * x) + f
+ out.extend([p[len(pkg)+1:] for p in glob.glob(pattern)])
+ return out
+
+setup(
+ name = 'django-wiki',
+ version = '0.4',
+ url = 'http://github.com/spookylukey/django-wiki',
+ license = 'BSD License',
+ description = 'A Django wiki application.',
+ long_description = read('README.rst'),
+ packages = find_packages(),
+ package_data = {
+ 'djiki': find_package_data('djiki', ['*.png', '*.html', '*.css', '*.js'])
+ },
+
+ install_requires = [
+ 'setuptools',
+ 'creole',
+ ],
+
+ classifiers = [
+ 'Development Status :: 4 - Beta',
+ 'Framework :: Django',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Topic :: Internet :: WWW/HTTP',
+ ],
+)
Please sign in to comment.
Something went wrong with that request. Please try again.