-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
37 lines (30 loc) · 950 Bytes
/
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
"""Setup for submit-and-compare xblock"""
import os
from setuptools import setup
def package_data(pkg, root):
"""Generic function to find package_data for `pkg` under `root`."""
data = []
for dirname, _, files in os.walk(os.path.join(pkg, root)):
for fname in files:
data.append(os.path.relpath(os.path.join(dirname, fname), pkg))
return {pkg: data}
setup(
name='xblock-submit-and-compare',
version='0.5',
description='Submit and Compare XBlock for self assessment',
packages=[
'submit_and_compare',
],
install_requires=[
'XBlock',
],
entry_points={
'xblock.v1': [
'submit-and-compare = submit_and_compare:SubmitAndCompareXBlock',
],
'xblock.test.v0': [
'test-submit-and-compare = submit_and_compare_tests:TestSubmitAndCompare',
]
},
package_data=package_data("submit_and_compare", "static"),
)