The class name has been retained because the class path is specified in the modulestore config in a number of places.
77 lines
3.0 KiB
Python
77 lines
3.0 KiB
Python
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
XMODULES = [
|
|
"book = xmodule.backcompat_module:TranslateCustomTagDescriptor",
|
|
"chapter = xmodule.seq_module:SectionDescriptor",
|
|
"course = xmodule.course_module:CourseDescriptor",
|
|
"customtag = xmodule.template_module:CustomTagDescriptor",
|
|
"discuss = xmodule.backcompat_module:TranslateCustomTagDescriptor",
|
|
"image = xmodule.backcompat_module:TranslateCustomTagDescriptor",
|
|
"poll_question = xmodule.poll_module:PollDescriptor",
|
|
"problemset = xmodule.seq_module:SequenceDescriptor",
|
|
"section = xmodule.backcompat_module:SemanticSectionDescriptor",
|
|
"sequential = xmodule.seq_module:SequenceDescriptor",
|
|
"slides = xmodule.backcompat_module:TranslateCustomTagDescriptor",
|
|
"videodev = xmodule.backcompat_module:TranslateCustomTagDescriptor",
|
|
"videosequence = xmodule.seq_module:SequenceDescriptor",
|
|
"custom_tag_template = xmodule.raw_module:RawDescriptor",
|
|
"raw = xmodule.raw_module:RawDescriptor",
|
|
"lti = xmodule.lti_module:LTIDescriptor",
|
|
]
|
|
XBLOCKS = [
|
|
"about = xmodule.html_module:AboutBlock",
|
|
"annotatable = xmodule.annotatable_module:AnnotatableBlock",
|
|
"conditional = xmodule.conditional_module:ConditionalBlock",
|
|
"course_info = xmodule.html_module:CourseInfoBlock",
|
|
"error = xmodule.error_module:ErrorBlock",
|
|
"hidden = xmodule.hidden_module:HiddenDescriptor",
|
|
"html = xmodule.html_module:HtmlBlock",
|
|
"library = xmodule.library_root_xblock:LibraryRoot",
|
|
"library_content = xmodule.library_content_module:LibraryContentBlock",
|
|
"library_sourced = xmodule.library_sourced_block:LibrarySourcedBlock",
|
|
"nonstaff_error = xmodule.error_module:NonStaffErrorBlock",
|
|
"problem = xmodule.capa_module:ProblemBlock",
|
|
"randomize = xmodule.randomize_module:RandomizeBlock",
|
|
"split_test = xmodule.split_test_module:SplitTestBlock",
|
|
"static_tab = xmodule.html_module:StaticTabBlock",
|
|
"unit = xmodule.unit_block:UnitBlock",
|
|
"vertical = xmodule.vertical_block:VerticalBlock",
|
|
"video = xmodule.video_module:VideoBlock",
|
|
"videoalpha = xmodule.video_module:VideoBlock",
|
|
"word_cloud = xmodule.word_cloud_module:WordCloudBlock",
|
|
"wrapper = xmodule.wrapper_module:WrapperBlock",
|
|
]
|
|
XBLOCKS_ASIDES = [
|
|
'tagging_aside = cms.lib.xblock.tagging:StructuredTagsAside',
|
|
]
|
|
|
|
setup(
|
|
name="XModule",
|
|
version="0.1.2",
|
|
packages=find_packages(exclude=["tests"]),
|
|
install_requires=[
|
|
'setuptools',
|
|
'docopt',
|
|
'capa',
|
|
'path.py',
|
|
'webob',
|
|
'edx-opaque-keys>=0.4.0',
|
|
],
|
|
package_data={
|
|
'xmodule': ['js/module/*'],
|
|
},
|
|
|
|
# See https://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins
|
|
# for a description of entry_points
|
|
entry_points={
|
|
'xblock.v1': XMODULES + XBLOCKS,
|
|
'xmodule.v1': XMODULES,
|
|
'xblock_asides.v1': XBLOCKS_ASIDES,
|
|
'console_scripts': [
|
|
'xmodule_assets = xmodule.static_content:main',
|
|
],
|
|
},
|
|
)
|