tutor-notes 17.0.0__tar.gz → 18.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tutor-notes-17.0.0/tutor_notes.egg-info → tutor-notes-18.0.0}/PKG-INFO +5 -5
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/README.rst +2 -2
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/setup.py +2 -2
- {tutor-notes-17.0.0 → tutor-notes-18.0.0/tutor_notes.egg-info}/PKG-INFO +5 -5
- tutor-notes-18.0.0/tutor_notes.egg-info/requires.txt +4 -0
- tutor-notes-18.0.0/tutornotes/__about__.py +1 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/plugin.py +12 -19
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/templates/notes/build/notes/Dockerfile +10 -9
- tutor-notes-17.0.0/tutor_notes.egg-info/requires.txt +0 -4
- tutor-notes-17.0.0/tutornotes/__about__.py +0 -1
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/LICENSE.txt +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/MANIFEST.in +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/pyproject.toml +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/setup.cfg +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutor_notes.egg-info/SOURCES.txt +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutor_notes.egg-info/dependency_links.txt +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutor_notes.egg-info/entry_points.txt +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutor_notes.egg-info/top_level.txt +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/__init__.py +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/caddyfile +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/k8s-deployments +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/k8s-jobs +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/k8s-services +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/kustomization-configmapgenerator +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/local-docker-compose-dev-services +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/local-docker-compose-jobs-services +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/local-docker-compose-permissions-command +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/local-docker-compose-permissions-volumes +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/local-docker-compose-services +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/openedx-common-settings +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/openedx-lms-common-settings +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/openedx-lms-development-settings +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/openedx-lms-production-settings +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/templates/notes/apps/settings/tutor.py +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/templates/notes/tasks/lms/init +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/templates/notes/tasks/mysql/init +0 -0
- {tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/templates/notes/tasks/notes/init +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tutor-notes
|
|
3
|
-
Version:
|
|
3
|
+
Version: 18.0.0
|
|
4
4
|
Summary: A Tutor plugin for student notes
|
|
5
5
|
Home-page: https://docs.tutor.edly.io/
|
|
6
6
|
Author: Overhang.IO
|
|
@@ -23,16 +23,16 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
24
|
Requires-Python: >=3.8
|
|
25
25
|
License-File: LICENSE.txt
|
|
26
|
-
Requires-Dist: tutor<
|
|
26
|
+
Requires-Dist: tutor<19.0.0,>=18.0.0
|
|
27
27
|
Provides-Extra: dev
|
|
28
|
-
Requires-Dist: tutor[dev]<
|
|
28
|
+
Requires-Dist: tutor[dev]<19.0.0,>=18.0.0; extra == "dev"
|
|
29
29
|
|
|
30
30
|
Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
|
|
31
31
|
===================================================================
|
|
32
32
|
|
|
33
|
-
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-
|
|
33
|
+
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/exercises_tools/notes.html>`_).
|
|
34
34
|
|
|
35
|
-
.. image:: https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-
|
|
35
|
+
.. image:: https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/_images/SFD_SN_bodyexample.png
|
|
36
36
|
:alt: Notes in action
|
|
37
37
|
|
|
38
38
|
Installation
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
|
|
2
2
|
===================================================================
|
|
3
3
|
|
|
4
|
-
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-
|
|
4
|
+
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/exercises_tools/notes.html>`_).
|
|
5
5
|
|
|
6
|
-
.. image:: https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-
|
|
6
|
+
.. image:: https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/_images/SFD_SN_bodyexample.png
|
|
7
7
|
:alt: Notes in action
|
|
8
8
|
|
|
9
9
|
Installation
|
|
@@ -32,8 +32,8 @@ setup(
|
|
|
32
32
|
packages=find_packages(exclude=["tests*"]),
|
|
33
33
|
include_package_data=True,
|
|
34
34
|
python_requires=">=3.8",
|
|
35
|
-
install_requires=["tutor>=
|
|
36
|
-
extras_require={"dev": ["tutor[dev]>=
|
|
35
|
+
install_requires=["tutor>=18.0.0,<19.0.0"],
|
|
36
|
+
extras_require={"dev": ["tutor[dev]>=18.0.0,<19.0.0"]},
|
|
37
37
|
entry_points={"tutor.plugin.v1": ["notes = tutornotes.plugin"]},
|
|
38
38
|
classifiers=[
|
|
39
39
|
"Development Status :: 5 - Production/Stable",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tutor-notes
|
|
3
|
-
Version:
|
|
3
|
+
Version: 18.0.0
|
|
4
4
|
Summary: A Tutor plugin for student notes
|
|
5
5
|
Home-page: https://docs.tutor.edly.io/
|
|
6
6
|
Author: Overhang.IO
|
|
@@ -23,16 +23,16 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
24
|
Requires-Python: >=3.8
|
|
25
25
|
License-File: LICENSE.txt
|
|
26
|
-
Requires-Dist: tutor<
|
|
26
|
+
Requires-Dist: tutor<19.0.0,>=18.0.0
|
|
27
27
|
Provides-Extra: dev
|
|
28
|
-
Requires-Dist: tutor[dev]<
|
|
28
|
+
Requires-Dist: tutor[dev]<19.0.0,>=18.0.0; extra == "dev"
|
|
29
29
|
|
|
30
30
|
Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
|
|
31
31
|
===================================================================
|
|
32
32
|
|
|
33
|
-
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-
|
|
33
|
+
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/exercises_tools/notes.html>`_).
|
|
34
34
|
|
|
35
|
-
.. image:: https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-
|
|
35
|
+
.. image:: https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/_images/SFD_SN_bodyexample.png
|
|
36
36
|
:alt: Notes in action
|
|
37
37
|
|
|
38
38
|
Installation
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "18.0.0"
|
|
@@ -4,7 +4,7 @@ import os
|
|
|
4
4
|
import typing as t
|
|
5
5
|
from glob import glob
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import importlib_resources
|
|
8
8
|
from tutor import hooks as tutor_hooks
|
|
9
9
|
from tutor.__about__ import __version_suffix__
|
|
10
10
|
|
|
@@ -31,19 +31,17 @@ config = {
|
|
|
31
31
|
},
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
#
|
|
35
|
-
MY_INIT_TASKS: list[tuple[str, tuple[str, ...]]] = [
|
|
36
|
-
("mysql", ("notes", "tasks", "mysql", "init")),
|
|
37
|
-
("lms", ("notes", "tasks", "lms", "init")),
|
|
38
|
-
("notes", ("notes", "tasks", "notes", "init")),
|
|
39
|
-
]
|
|
40
|
-
|
|
41
|
-
# For each task added to MY_INIT_TASKS, we load the task template
|
|
34
|
+
# For each service, we load the task template
|
|
42
35
|
# and add it to the CLI_DO_INIT_TASKS filter, which tells Tutor to
|
|
43
36
|
# run it as part of the `init` job.
|
|
44
|
-
for service,
|
|
45
|
-
full_path: str =
|
|
46
|
-
|
|
37
|
+
for service in ["mysql", "lms", "notes"]:
|
|
38
|
+
full_path: str = str(
|
|
39
|
+
importlib_resources.files("tutornotes")
|
|
40
|
+
/ "templates"
|
|
41
|
+
/ "notes"
|
|
42
|
+
/ "tasks"
|
|
43
|
+
/ service
|
|
44
|
+
/ "init"
|
|
47
45
|
)
|
|
48
46
|
with open(full_path, encoding="utf-8") as init_task_file:
|
|
49
47
|
init_task: str = init_task_file.read()
|
|
@@ -91,7 +89,7 @@ def _mount_edx_notes_api(
|
|
|
91
89
|
|
|
92
90
|
# Add the "templates" folder as a template root
|
|
93
91
|
tutor_hooks.Filters.ENV_TEMPLATE_ROOTS.add_item(
|
|
94
|
-
|
|
92
|
+
str(importlib_resources.files("tutornotes") / "templates")
|
|
95
93
|
)
|
|
96
94
|
# Render the "build" and "apps" folders
|
|
97
95
|
tutor_hooks.Filters.ENV_TEMPLATE_TARGETS.add_items(
|
|
@@ -101,12 +99,7 @@ tutor_hooks.Filters.ENV_TEMPLATE_TARGETS.add_items(
|
|
|
101
99
|
],
|
|
102
100
|
)
|
|
103
101
|
# Load patches from files
|
|
104
|
-
for path in glob(
|
|
105
|
-
os.path.join(
|
|
106
|
-
pkg_resources.resource_filename("tutornotes", "patches"),
|
|
107
|
-
"*",
|
|
108
|
-
)
|
|
109
|
-
):
|
|
102
|
+
for path in glob(str(importlib_resources.files("tutornotes") / "patches" / "*")):
|
|
110
103
|
with open(path, encoding="utf-8") as patch_file:
|
|
111
104
|
tutor_hooks.Filters.ENV_PATCHES.add_item(
|
|
112
105
|
(os.path.basename(path), patch_file.read())
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# syntax=docker/dockerfile:1.4
|
|
2
|
-
FROM docker.io/
|
|
2
|
+
FROM docker.io/python:3.12-slim-bookworm
|
|
3
3
|
|
|
4
4
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
5
5
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|
@@ -7,14 +7,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|
|
7
7
|
apt update && \
|
|
8
8
|
apt upgrade -y && \
|
|
9
9
|
apt install -y \
|
|
10
|
-
|
|
10
|
+
locales \
|
|
11
11
|
git \
|
|
12
|
-
python3 \
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
python3-dev \
|
|
13
|
+
build-essential \
|
|
14
|
+
default-libmysqlclient-dev \
|
|
15
|
+
pkg-config && \
|
|
16
|
+
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
|
|
17
|
+
locale-gen
|
|
18
|
+
ENV LC_ALL en_US.UTF-8
|
|
18
19
|
|
|
19
20
|
###### Git-clone Notes repo ######
|
|
20
21
|
ARG APP_USER_ID=1000
|
|
@@ -30,7 +31,7 @@ ENV PATH /app/venv/bin:${PATH}
|
|
|
30
31
|
# https://pypi.org/project/setuptools/
|
|
31
32
|
# https://pypi.org/project/pip/
|
|
32
33
|
# https://pypi.org/project/wheel/
|
|
33
|
-
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install setuptools==
|
|
34
|
+
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install setuptools==69.2.0 pip==24.0 wheel==0.43.0
|
|
34
35
|
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install -r requirements/base.txt
|
|
35
36
|
|
|
36
37
|
EXPOSE 8000
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "17.0.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/kustomization-configmapgenerator
RENAMED
|
File without changes
|
{tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/local-docker-compose-dev-services
RENAMED
|
File without changes
|
{tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/local-docker-compose-jobs-services
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/openedx-lms-development-settings
RENAMED
|
File without changes
|
{tutor-notes-17.0.0 → tutor-notes-18.0.0}/tutornotes/patches/openedx-lms-production-settings
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|