forked from overhangio/openedx-scorm-xblock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (39 loc) · 1.53 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
import io
import os
from setuptools import setup
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}
here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, "README.rst"), "rt", encoding="utf8") as f:
readme = f.read()
setup(
name="openedx-scorm-xblock",
version="14.0.0",
description="Scorm XBlock for Open edX",
long_description=readme,
long_description_content_type="text/x-rst",
author="Overhang.io",
author_email="[email protected]",
project_urls={
"Documentation": "https://github.com/overhangio/openedx-scorm-xblock",
"Code": "https://github.com/overhangio/openedx-scorm-xblock",
"Issue tracker": "https://github.com/overhangio/openedx-scorm-xblock/issues",
"Community": "https://discuss.overhang.io",
},
packages=["openedxscorm"],
python_requires=">=3.8",
install_requires=["xblock", "web-fragments"],
entry_points={"xblock.v1": ["scorm = openedxscorm:ScormXBlock"]},
package_data=package_data("openedxscorm", ["static", "public", "locale"]),
license="AGPLv3",
classifiers=["License :: OSI Approved :: GNU Affero General Public License v3"],
)