diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02278d5..9b4f56e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ variables: TUTOR_PLUGIN: notes TUTOR_IMAGES: notes TUTOR_PYPI_PACKAGE: tutor-notes - OPENEDX_RELEASE: olive + OPENEDX_RELEASE: palm GITHUB_REPO: overhangio/tutor-notes include: diff --git a/README.rst b/README.rst index 271772c..8e781ca 100644 --- a/README.rst +++ b/README.rst @@ -1,9 +1,9 @@ Students notes plugin for `Tutor `_ =================================================================== -This is a plugin for `Tutor `_ to easily add the `Open edX note-taking app `_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation `_). +This is a plugin for `Tutor `_ to easily add the `Open edX note-taking app `_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation `_). -.. image:: https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-olive.master/_images/SFD_SN_bodyexample.png +.. image:: https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-palm.master/_images/SFD_SN_bodyexample.png :alt: Notes in action Installation diff --git a/setup.py b/setup.py index 3d4352c..00cfe52 100644 --- a/setup.py +++ b/setup.py @@ -31,8 +31,8 @@ long_description=readme, packages=find_packages(exclude=["tests*"]), include_package_data=True, - python_requires=">=3.7", - install_requires=["tutor>=15.0.0,<16.0.0"], + python_requires=">=3.8", + install_requires=["tutor>=16.0.0,<17.0.0"], entry_points={"tutor.plugin.v1": ["notes = tutornotes.plugin"]}, classifiers=[ "Development Status :: 5 - Production/Stable", @@ -40,9 +40,9 @@ "License :: OSI Approved :: GNU Affero General Public License v3", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], ) diff --git a/tutornotes/__about__.py b/tutornotes/__about__.py index 8665bae..1b1318c 100644 --- a/tutornotes/__about__.py +++ b/tutornotes/__about__.py @@ -1,4 +1,4 @@ -__version__ = "15.0.4" +__version__ = "16.0.0" # Handle version suffix for nightly, just like tutor core. __version_suffix__ = "" diff --git a/tutornotes/plugin.py b/tutornotes/plugin.py index 88c9972..ba4e077 100644 --- a/tutornotes/plugin.py +++ b/tutornotes/plugin.py @@ -1,5 +1,8 @@ +from __future__ import annotations + from glob import glob import os +import typing as t import pkg_resources @@ -7,7 +10,6 @@ from .__about__ import __version__ - config = { "unique": { "MYSQL_PASSWORD": "{{ 8|random_string }}", @@ -26,18 +28,27 @@ } # Initialization hooks -tutor_hooks.Filters.COMMANDS_INIT.add_item(( - "mysql", - ("notes", "tasks", "mysql", "init"), -)) -tutor_hooks.Filters.COMMANDS_INIT.add_item(( - "lms", - ("notes", "tasks", "lms", "init"), -)) -tutor_hooks.Filters.COMMANDS_INIT.add_item(( - "notes", - ("notes", "tasks", "notes", "init"), -)) + +# To add a custom initialization task, create a bash script template under: +# tutorcodejail/templates/codejail/tasks/ +# and then add it to the MY_INIT_TASKS list. Each task is in the format: +# ("", ("", "", "