This repository was archived by the owner on Jan 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (35 loc) · 1.23 KB
/
setup.py
File metadata and controls
46 lines (35 loc) · 1.23 KB
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
# -*- coding: utf-8 -*-
# Imports ###########################################################
import os
from setuptools import setup
# Functions #########################################################
def package_data(pkg, root_list):
"""Generic function to find package_data for `pkg` under `root`."""
data = []
for root in root_list:
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}
# Main ##############################################################
BLOCKS = [
'brightcove-player = ooyala_player.ooyala_player:OoyalaPlayerBlock',
'ooyala-player = ooyala_player.ooyala_player:OoyalaPlayerBlock',
]
BLOCKS_CHILDREN = [
'ooyala-player = ooyala_player.ooyala_player:OoyalaPlayerLightChildBlock'
]
setup(
name='xblock-ooyala-player',
version='5.0.0',
description='XBlock - Ooyala Video Player',
packages=['ooyala_player'],
install_requires=[
'XBlock',
],
entry_points={
'xblock.v1': BLOCKS,
'xblock.light_children': BLOCKS_CHILDREN,
},
package_data=package_data("ooyala_player", ["templates", "public"]),
)