-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
137 lines (120 loc) · 3.37 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# -*- coding: utf8 -*-
#
# This file were created by Python Boilerplate. Use boilerplate to start simple
# usable and best-practices compliant Python projects.
#
# Learn more about it at: http://github.com/fabiommendes/boilerplate/
#
import os
from setuptools import setup, find_packages
# Meta information
version = open('VERSION').read().strip()
dirname = os.path.dirname(__file__)
# Save version and author to __meta__.py
base = os.path.join(dirname, 'src', 'codeschool')
data = '''# Automatically created. Please do not edit.
__version__ = u'%s'
__author__ = u'F\\xe1bio Mac\\xeado Mendes'
''' % version
if os.path.exists(base):
path = os.path.join(base, '__meta__.py')
with open(path, 'wb') as F:
F.write(data.encode())
# Obtain long description from README.rst
if os.path.exists('README.rst'):
long_description = open('README.rst').read()
else:
long_description = ''
setup(
# Basic info
name='codeschool',
version=version,
author='Fábio Macêdo Mendes',
author_email='[email protected]',
url='',
description='An environment for teaching programming for 21st century '
'students.',
long_description=long_description,
# Classifiers (see https://pypi.python.org/pypi?%3Aaction=list_classifiers)
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries',
],
# Packages and depencies
package_dir={'': 'src'},
packages=find_packages('src'),
install_requires=[
# Non-django dependencies
'lazyutils>=0.3.1',
'pygeneric',
'mistune',
'pygments',
'Markdown',
'python-markdown-math',
'html5lib',
'bleach',
'fake-factory',
'factory-boy',
'mommys_boy',
'celery[redis]',
'PyYAML',
'json-rpc',
# Services
'invoke',
# Django and extensions
'django==1.10',
'django-bricks',
'django-polymorphic',
'django-model-utils',
'django-model-reference',
'django-picklefield',
'django-jsonfield',
'django-userena', 'django-guardian>=1.4.6',
'django-ipware',
'django-annoying',
'django-extensions',
'django-redis',
'social-auth-app-django',
'django-compressor',
'django-extensions',
'rules',
'djangorestframework',
'werkzeug',
# Wagtail
'wagtail>=1.9',
'wagtail-model-tools>=0.1.4',
# Jinja support
'jinja2<2.9',
# CodingIo question libraries
'markio>=0.2.6',
'iospec>=0.3.16',
'ejudge>=0.5.17',
'boxed>=0.3.11',
# Related libraries
'srvice>=0.1.5',
],
extras_require={
'dev': [
'ipython',
'manuel',
'mock',
'python-boilerplate',
'invoke',
'pytest',
'flake8',
'tox',
'pytest-cov',
'pytest-django',
'pytest-selenium',
'pytest-factoryboy',
'sulfur>=0.1.3',
]
},
# Other configurations
zip_safe=False,
platforms='any',
)