forked from edly-io/ai-coach-xblock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (41 loc) · 1.25 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
"""Setup for ai_coach XBlock."""
import os
from pathlib import Path
from setuptools import setup
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
def package_data(pkg, roots):
"""Generic function to find package_data.
All of the files under each of the `roots` will be declared as package
data for package `pkg`.
"""
data = []
for root in roots:
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='ai-coach-xblock',
version='1.0.6',
description="AI Coach Xblock evaluates open response answer of a question using Open AI",
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/edly-io/ai-coach-xblock',
license='AGPL v3',
author='edly',
packages=[
'ai_coach',
],
install_requires=[
'XBlock',
'openai==1.3.5',
'xblock-utils'
],
entry_points={
'xblock.v1': [
'ai_coach = ai_coach:AICoachXBlock',
]
},
package_data=package_data("ai_coach", ["static", "public"]),
)