forked from OpenMOOC/moocng
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
89 lines (80 loc) · 2.75 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# -*- coding: utf-8 -*-
# Copyright 2012-2013 Rooter Analysis S.L.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import fnmatch
import os
from setuptools import setup, find_packages
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
def recursive_include(directory, patterns):
result = []
for root, dirs, files in os.walk(directory):
child_root = root.replace(directory, '').lstrip('/')
for pattern in patterns:
result.extend([os.path.join(child_root, name)
for name in fnmatch.filter(files, pattern)])
return result
# be careful with the syntax of this line since it is parsed from
# the docs/conf.py file
VERSION = '0.1.0'
setup(
name='moocng',
version=VERSION,
url='https://github.com/OpenMOOC/moocng',
license='Apache 2.0 Software License',
description=('MOOC web tool'),
long_description=(read('README.rst') + '\n\n' + read('CHANGES')),
author='Rooter',
classifiers=[
'Development Status :: 6 - Development',
'Environment :: Web Environment',
'Framework :: Django',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
packages=find_packages('.'),
package_dir={'moocng': 'moocng'},
package_data={
'moocng': recursive_include('moocng', [
'*.html', '*.css', '*.js', '*.txt', '*.png', '*.ico', '*.wsgi',
'*.xml', '*.gif', '*.jpg', '*.otf', '*.svg', '*.example', '*.woff',
])
},
zip_safe=False,
install_requires=[
'boto>=2.8.0',
'celery==3.0.20',
'Django>=1.4.6',
'django-admin-sortable==1.4.9',
'django-celery==3.0.17',
'django-tinymce==1.5.1b4',
'django-tastypie==0.9.11-openmooc',
'South==0.7.5',
'psycopg2==2.4.2',
'pymongo==2.4.2',
'djangosaml2==0.10.0',
'PIL>=1.1.6',
'django_compressor==1.2',
'python-memcached==1.48',
'django-grappelli==2.4.5',
'django-mathjax==0.0.2',
'requests==1.2.0',
'fabric==1.7.0',
],
entry_points = """
[moocng.externalapp]
askbot = moocng.externalapps.apps:Askbot
""",
)