-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
executable file
·82 lines (72 loc) · 2.34 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env python
"""Setup for hastexo XBlock."""
import os
from setuptools import setup
def package_scripts(root_list):
data = []
for root in root_list:
for dirname, _, files in os.walk(root):
for fname in files:
data.append(os.path.join(dirname, fname))
return data
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='hastexo-xblock',
use_scm_version=True,
description='hastexo XBlock: '
'Makes arbitrarily complex lab environments '
'available on an Open edX LMS',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/hastexo/hastexo-xblock',
author='hastexo',
author_email='[email protected]',
license='AGPL-3.0',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: OpenStack',
'Framework :: Django',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Topic :: Education :: Computer Aided Instruction (CAI)',
'Topic :: Education',
],
packages=[
'hastexo',
],
python_requires='>=3.11',
install_requires=[
'apscheduler<3.8',
'google-api-python-client<1.8',
'paramiko',
'python-heatclient<2',
'python-keystoneclient<3.22',
'python-novaclient<16',
'tenacity<8',
],
entry_points={
'xblock.v1': [
'hastexo = hastexo.hastexo:HastexoXBlock',
]
},
scripts=package_scripts(["bin"]),
package_data=package_data("hastexo",
["static",
"public",
"management",
"migrations",
"translations",
"locale"]),
setup_requires=['setuptools-scm'],
)