forked from cotrim149/codeschool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
130 lines (113 loc) · 3.22 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
# -*- 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
name = 'codeschool'
author = 'Fábio Macêdo Mendes'
version = open('VERSION').read().strip()
dirname = os.path.dirname(__file__)
# Save version and author to __meta__.py
with open(os.path.join(dirname, 'src', name, '__meta__.py'), 'w') as F:
F.write('__version__ = %r\n__author__ = %r\n' % (version, author))
setup(
# Basic info
name=name,
version=version,
author=author,
author_email='fabiomacedomendes@gmail.com',
url='',
description='A short description for your project.',
long_description=open('README.rst').read(),
# 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'),
package_data={
'': [
'templates/*.*',
'templates/*/*.*',
'templates/*/*/*.*',
'templates/*/*/*/*.*'], # this is ridiculous. is there a better
# option in setuptools?
'codeschool': [
'static/*.*',
'static/*/*.*',
'static/*/*/*.*'],
},
install_requires=[
# Non-django dependencies
'pygments',
'frozendict',
'markdown',
'csscompressor',
'html5lib',
'slimit',
'unidecode',
'pygeneric',
'lazy',
'fake-factory',
'pytz',
# Django and extensions
'django>=1.9',
'django-model-utils',
'django-picklefield',
'django-jsonfield',
'django-annoying',
'django-autoslug',
'django-compressor',
'django-extensions',
'django-guardian',
'django-bower',
'django-userena',
'django-polymorphic',
'django-filter',
'djangorestframework',
'jsonfield',
# Wagtail
'wagtail',
'wagtailfontawesome',
'wagtailgmaps',
'wagtailosm',
# 'wagtailembedder', (vendorized until it lands on pip)
# 'wagtail-markdown', (vendorized until it lands on pip)
# Jinja support
'jinja2',
'django_jinja',
'djinga',
'jinja2-django-tags',
# 'ejudge', (vendorized)
'boxed>=0.3',
'psutil',
'pexpect',
# 'django-viewpack', (vendorized)
# 'markio', (vendorized)
# 'iospec', (vendorized)
'mistune',
],
extras_require={
'testing': ['pytest'],
},
# Scripts
entry_points={
'console_scripts': ['codeschool = codeschool.__main__:main'],
},
# Other configurations
zip_safe=False,
platforms='any',
license='GPL',
test_suite='%s.test.test_%s' % (name, name),
)