forked from dwaiter/django-ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (36 loc) · 1.36 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import os
from setuptools import setup, find_packages
install_requires = []
try:
import json
except ImportError, e:
install_requires.append('simplejson')
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README')
description = 'A small Django application that makes it easy to use CKEditor for form textareas.'
if os.path.exists(README_PATH):
long_description = open(README_PATH).read()
else:
long_description = description
def find_package_data(**packages):
package_data = {}
for package_directory,top_dirs in packages.items():
outfiles = []
package_data[package_directory] = []
for top_dir in top_dirs:
for dirpath, dirnames, filenames in os.walk(os.path.join(package_directory,top_dir)):
for filename in filenames:
path = os.path.join(dirpath, filename)[len(package_directory)+1:]
package_data[package_directory].append(path)
return package_data
setup(
name='django-ckeditor',
version='0.9.5-csky',
install_requires=install_requires,
description=description,
long_description=long_description,
author='Dumbwaiter Design',
author_email='[email protected]',
url='http://bitbucket.org/dwaiter/django-ckeditor/',
packages=['ckeditor'],
package_data=find_package_data(ckeditor=['static','templates',]),
)