tutor-notes 19.0.0__tar.gz → 19.0.2__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.
Files changed (39) hide show
  1. tutor_notes-19.0.2/.gitignore +7 -0
  2. tutor_notes-19.0.2/.hatch_build.py +21 -0
  3. {tutor_notes-19.0.0/tutor_notes.egg-info → tutor_notes-19.0.2}/PKG-INFO +16 -12
  4. tutor_notes-19.0.2/pyproject.toml +71 -0
  5. tutor_notes-19.0.2/tutornotes/__about__.py +1 -0
  6. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/templates/notes/apps/settings/tutor.py +1 -0
  7. tutor_notes-19.0.0/MANIFEST.in +0 -2
  8. tutor_notes-19.0.0/PKG-INFO +0 -91
  9. tutor_notes-19.0.0/pyproject.toml +0 -2
  10. tutor_notes-19.0.0/setup.cfg +0 -4
  11. tutor_notes-19.0.0/setup.py +0 -50
  12. tutor_notes-19.0.0/tutor_notes.egg-info/SOURCES.txt +0 -33
  13. tutor_notes-19.0.0/tutor_notes.egg-info/dependency_links.txt +0 -1
  14. tutor_notes-19.0.0/tutor_notes.egg-info/entry_points.txt +0 -2
  15. tutor_notes-19.0.0/tutor_notes.egg-info/requires.txt +0 -4
  16. tutor_notes-19.0.0/tutor_notes.egg-info/top_level.txt +0 -1
  17. tutor_notes-19.0.0/tutornotes/__about__.py +0 -1
  18. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/LICENSE.txt +0 -0
  19. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/README.rst +0 -0
  20. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/__init__.py +0 -0
  21. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/caddyfile +0 -0
  22. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/k8s-deployments +0 -0
  23. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/k8s-jobs +0 -0
  24. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/k8s-services +0 -0
  25. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/kustomization-configmapgenerator +0 -0
  26. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/local-docker-compose-dev-services +0 -0
  27. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/local-docker-compose-jobs-services +0 -0
  28. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/local-docker-compose-permissions-command +0 -0
  29. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/local-docker-compose-permissions-volumes +0 -0
  30. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/local-docker-compose-services +0 -0
  31. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/openedx-common-settings +0 -0
  32. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/openedx-lms-common-settings +0 -0
  33. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/openedx-lms-development-settings +0 -0
  34. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/patches/openedx-lms-production-settings +0 -0
  35. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/plugin.py +0 -0
  36. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/templates/notes/build/notes/Dockerfile +0 -0
  37. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/templates/notes/tasks/lms/init +0 -0
  38. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/templates/notes/tasks/mysql/init +0 -0
  39. {tutor_notes-19.0.0 → tutor_notes-19.0.2}/tutornotes/templates/notes/tasks/notes/init +0 -0
@@ -0,0 +1,7 @@
1
+ .*.swp
2
+ !.gitignore
3
+ TODO
4
+ __pycache__
5
+ *.egg-info/
6
+ /build/
7
+ /dist/
@@ -0,0 +1,21 @@
1
+ # https://hatch.pypa.io/latest/how-to/config/dynamic-metadata/
2
+
3
+ import os
4
+ import typing as t
5
+
6
+ from hatchling.metadata.plugin.interface import MetadataHookInterface
7
+
8
+ HERE = os.path.dirname(__file__)
9
+
10
+
11
+ class MetaDataHook(MetadataHookInterface):
12
+ def update(self, metadata: dict[str, t.Any]) -> None:
13
+ about = load_about()
14
+ metadata["version"] = about["__version__"]
15
+
16
+
17
+ def load_about() -> dict[str, str]:
18
+ about: dict[str, str] = {}
19
+ with open(os.path.join(HERE, "tutornotes", "__about__.py"), "rt", encoding="utf-8") as f:
20
+ exec(f.read(), about) # pylint: disable=exec-used
21
+ return about
@@ -1,16 +1,19 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: tutor-notes
3
- Version: 19.0.0
3
+ Version: 19.0.2
4
4
  Summary: A Tutor plugin for student notes
5
- Home-page: https://docs.tutor.edly.io/
5
+ Project-URL: Homepage, https://docs.tutor.edly.io/
6
+ Project-URL: Documentation, https://github.com/overhangio/tutor-notes#readme
7
+ Project-URL: Issues, https://github.com/overhangio/tutor-notes/issues
8
+ Project-URL: Source, https://github.com/overhangio/tutor-notes
9
+ Project-URL: Changelog, https://github.com/overhangio/tutor-notes/blob/release/CHANGELOG.md
10
+ Project-URL: Community, https://discuss.openedx.org/tag/tutor
6
11
  Author: Edly
7
12
  Author-email: hello@edly.io
8
- Maintainer: eduNEXT
9
- License: AGPLv3
10
- Project-URL: Documentation, https://docs.tutor.edly.io/
11
- Project-URL: Code, https://github.com/overhangio/tutor-notes
12
- Project-URL: Issue tracker, https://github.com/overhangio/tutor-notes/issues
13
- Project-URL: Community, https://discuss.openedx.org
13
+ Maintainer: Jhony Avella
14
+ Maintainer-email: jhony.avella@edunext.co
15
+ License: AGPL-3.0-only
16
+ License-File: LICENSE.txt
14
17
  Classifier: Development Status :: 5 - Production/Stable
15
18
  Classifier: Intended Audience :: Developers
16
19
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
@@ -21,11 +24,12 @@ Classifier: Programming Language :: Python :: 3.10
21
24
  Classifier: Programming Language :: Python :: 3.11
22
25
  Classifier: Programming Language :: Python :: 3.12
23
26
  Requires-Python: >=3.9
24
- Description-Content-Type: text/x-rst
25
- License-File: LICENSE.txt
26
27
  Requires-Dist: tutor<20.0.0,>=19.0.0
27
28
  Provides-Extra: dev
28
- Requires-Dist: tutor[dev]<20.0.0,>=19.0.0; extra == "dev"
29
+ Requires-Dist: black; extra == 'dev'
30
+ Requires-Dist: pylint; extra == 'dev'
31
+ Requires-Dist: tutor[dev]<20.0.0,>=19.0.0; extra == 'dev'
32
+ Description-Content-Type: text/x-rst
29
33
 
30
34
  Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
31
35
  ===================================================================
@@ -0,0 +1,71 @@
1
+ # https://packaging.python.org/en/latest/tutorials/packaging-projects/
2
+ # https://hatch.pypa.io/latest/config/build/
3
+
4
+ [project]
5
+ name = "tutor-notes"
6
+ description = "A Tutor plugin for student notes"
7
+ authors = [
8
+ { name = "Edly" },
9
+ { email = "hello@edly.io"},
10
+ ]
11
+ maintainers = [
12
+ { name = "Jhony Avella" },
13
+ { email = "jhony.avella@edunext.co" },
14
+ ]
15
+ license = {text = "AGPL-3.0-only"}
16
+ readme = {file = "README.rst", content-type = "text/x-rst"}
17
+ requires-python = ">=3.9"
18
+ classifiers = [
19
+ "Development Status :: 5 - Production/Stable",
20
+ "Intended Audience :: Developers",
21
+ "License :: OSI Approved :: GNU Affero General Public License v3",
22
+ "Operating System :: OS Independent",
23
+ "Programming Language :: Python",
24
+ "Programming Language :: Python :: 3.9",
25
+ "Programming Language :: Python :: 3.10",
26
+ "Programming Language :: Python :: 3.11",
27
+ "Programming Language :: Python :: 3.12",
28
+ ]
29
+ dependencies = [
30
+ "tutor>=19.0.0,<20.0.0",
31
+ ]
32
+
33
+ # These fields will be set by hatch_build.py
34
+ dynamic = ["version"]
35
+
36
+ [project.optional-dependencies]
37
+ dev = [
38
+ "tutor[dev]>=19.0.0,<20.0.0",
39
+ "black",
40
+ "pylint"
41
+ ]
42
+
43
+
44
+ # https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels
45
+ [project.urls]
46
+ Homepage = "https://docs.tutor.edly.io/"
47
+ Documentation = "https://github.com/overhangio/tutor-notes#readme"
48
+ Issues = "https://github.com/overhangio/tutor-notes/issues"
49
+ Source = "https://github.com/overhangio/tutor-notes"
50
+ Changelog = "https://github.com/overhangio/tutor-notes/blob/release/CHANGELOG.md"
51
+ Community = "https://discuss.openedx.org/tag/tutor"
52
+
53
+ [build-system]
54
+ requires = ["hatchling"]
55
+ build-backend = "hatchling.build"
56
+
57
+ # hatch-specific configuration
58
+ [tool.hatch.metadata.hooks.custom]
59
+ path = ".hatch_build.py"
60
+
61
+ [tool.hatch.build.targets.wheel]
62
+ packages = ["tutornotes"]
63
+
64
+ [tool.hatch.build.targets.sdist]
65
+ # Disable strict naming, otherwise twine is not able to detect name/version
66
+ strict-naming = false
67
+ include = [ "/tutornotes", ".hatch_build.py"]
68
+ exclude = ["tests*"]
69
+
70
+ [project.entry-points."tutor.plugin.v1"]
71
+ notes = "tutornotes.plugin"
@@ -0,0 +1 @@
1
+ __version__ = "19.0.2"
@@ -4,6 +4,7 @@ SECRET_KEY = "{{ NOTES_SECRET_KEY }}"
4
4
  ALLOWED_HOSTS = [
5
5
  "notes",
6
6
  "{{ NOTES_HOST }}",
7
+ "{{ NOTES_HOST }}:8120",
7
8
  ]
8
9
 
9
10
  DATABASES = {
@@ -1,2 +0,0 @@
1
- recursive-include tutornotes/patches *
2
- recursive-include tutornotes/templates *
@@ -1,91 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: tutor-notes
3
- Version: 19.0.0
4
- Summary: A Tutor plugin for student notes
5
- Home-page: https://docs.tutor.edly.io/
6
- Author: Edly
7
- Author-email: hello@edly.io
8
- Maintainer: eduNEXT
9
- License: AGPLv3
10
- Project-URL: Documentation, https://docs.tutor.edly.io/
11
- Project-URL: Code, https://github.com/overhangio/tutor-notes
12
- Project-URL: Issue tracker, https://github.com/overhangio/tutor-notes/issues
13
- Project-URL: Community, https://discuss.openedx.org
14
- Classifier: Development Status :: 5 - Production/Stable
15
- Classifier: Intended Audience :: Developers
16
- Classifier: License :: OSI Approved :: GNU Affero General Public License v3
17
- Classifier: Operating System :: OS Independent
18
- Classifier: Programming Language :: Python
19
- Classifier: Programming Language :: Python :: 3.9
20
- Classifier: Programming Language :: Python :: 3.10
21
- Classifier: Programming Language :: Python :: 3.11
22
- Classifier: Programming Language :: Python :: 3.12
23
- Requires-Python: >=3.9
24
- Description-Content-Type: text/x-rst
25
- License-File: LICENSE.txt
26
- Requires-Dist: tutor<20.0.0,>=19.0.0
27
- Provides-Extra: dev
28
- Requires-Dist: tutor[dev]<20.0.0,>=19.0.0; extra == "dev"
29
-
30
- Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
31
- ===================================================================
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://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/enable_notes.html>`_).
34
-
35
- .. image:: https://docs.openedx.org/en/latest/_images/SFD_SN_bodyexample.png
36
- :alt: Notes in action
37
-
38
- Installation
39
- ------------
40
-
41
- The plugin is currently bundled with the `binary releases of Tutor <https://github.com/overhangio/tutor/releases>`_. If you have installed Tutor from source, you will have to install this plugin from source, too::
42
-
43
- tutor plugins install notes
44
-
45
- Then, to enable this plugin, run::
46
-
47
- tutor plugins enable notes
48
-
49
- Then, to make migrations & tasks::
50
-
51
- tutor local launch
52
-
53
- You should beware that the ``notes.<LMS_HOST>`` domain name should exist and point to your server. For instance, if your LMS is hosted at http://myopenedx.com, the notes service should be found at http://notes.myopenedx.com.
54
-
55
- If you would like to host the notes service at a different domain name, you can set the ``NOTES_HOST`` configuration variable (see below). When testing Tutor on a local computer, this will be automatically set to notes.local.openedx.io.
56
-
57
- To enable student notes for a specific course, you should go to the course advanced settings in the studio, and set "Enable Student Notes" to "true". Then, hit "save changes".
58
-
59
- Configuration
60
- -------------
61
-
62
- - ``NOTES_MYSQL_PASSWORD`` (default: ``"{{ 8|random_string }}"``)
63
- - ``NOTES_SECRET_KEY`` (default: ``"{{ 24|random_string }}"``)
64
- - ``NOTES_OAUTH2_SECRET`` (default: ``"{{ 24|random_string }}"``)
65
- - ``NOTES_DOCKER_IMAGE`` (default: ``"{{ DOCKER_REGISTRY }}overhangio/openedx-notes:{{ NOTES_VERSION }}"``)
66
- - ``NOTES_HOST`` (default: ``"notes.{{ LMS_HOST }}"``)
67
- - ``NOTES_MYSQL_DATABASE`` (default: ``"notes"``)
68
- - ``NOTES_MYSQL_USERNAME`` (default: ``"notes"``)
69
- - ``NOTES_REPOSITORY`` (default: ``"https://github.com/openedx/edx-notes-api"``)
70
- - ``NOTES_REPOSITORY_VERSION`` (default: ``"{{ OPENEDX_COMMON_VERSION }}"``)
71
-
72
- These values can be modified with ``tutor config save --set PARAM_NAME=VALUE`` commands.
73
-
74
- Debugging
75
- ---------
76
-
77
- To debug the notes API service, you are encouraged to mount the edx-notes-api repo from the host in the development container:
78
-
79
- tutor dev start --mount /path/to/edx-notes-api
80
-
81
- Feel free to add breakpoints (``breakpoint()``) anywhere in your source code to debug your application.
82
-
83
- Troubleshooting
84
- ---------------
85
-
86
- This Tutor plugin is maintained by Jhony Avella from `eduNEXT <https://www.edunext.co/>`__. Community support is available from the official `Open edX forum <https://discuss.openedx.org>`__. Do you need help with this plugin? See the `troubleshooting <https://docs.tutor.edly.io/troubleshooting.html>`__ section from the Tutor documentation.
87
-
88
- License
89
- -------
90
-
91
- This software is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-notes/blob/release/LICENSE.txt>`_.
@@ -1,2 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools", "wheel"]
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
@@ -1,50 +0,0 @@
1
- import io
2
- import os
3
- from setuptools import setup, find_packages
4
-
5
- here = os.path.abspath(os.path.dirname(__file__))
6
-
7
- with io.open(os.path.join(here, "README.rst"), "rt", encoding="utf8") as f:
8
- readme = f.read()
9
-
10
- about = {}
11
- with io.open(
12
- os.path.join(here, "tutornotes", "__about__.py"), "rt", encoding="utf-8"
13
- ) as f:
14
- exec(f.read(), about)
15
-
16
- setup(
17
- name="tutor-notes",
18
- version=about["__version__"],
19
- url="https://docs.tutor.edly.io/",
20
- project_urls={
21
- "Documentation": "https://docs.tutor.edly.io/",
22
- "Code": "https://github.com/overhangio/tutor-notes",
23
- "Issue tracker": "https://github.com/overhangio/tutor-notes/issues",
24
- "Community": "https://discuss.openedx.org",
25
- },
26
- license="AGPLv3",
27
- author="Edly",
28
- author_email="hello@edly.io",
29
- maintainer="eduNEXT",
30
- description="A Tutor plugin for student notes",
31
- long_description=readme,
32
- long_description_content_type="text/x-rst",
33
- packages=find_packages(exclude=["tests*"]),
34
- include_package_data=True,
35
- python_requires=">=3.9",
36
- install_requires=["tutor>=19.0.0,<20.0.0"],
37
- extras_require={"dev": ["tutor[dev]>=19.0.0,<20.0.0"]},
38
- entry_points={"tutor.plugin.v1": ["notes = tutornotes.plugin"]},
39
- classifiers=[
40
- "Development Status :: 5 - Production/Stable",
41
- "Intended Audience :: Developers",
42
- "License :: OSI Approved :: GNU Affero General Public License v3",
43
- "Operating System :: OS Independent",
44
- "Programming Language :: Python",
45
- "Programming Language :: Python :: 3.9",
46
- "Programming Language :: Python :: 3.10",
47
- "Programming Language :: Python :: 3.11",
48
- "Programming Language :: Python :: 3.12",
49
- ],
50
- )
@@ -1,33 +0,0 @@
1
- LICENSE.txt
2
- MANIFEST.in
3
- README.rst
4
- pyproject.toml
5
- setup.py
6
- tutor_notes.egg-info/PKG-INFO
7
- tutor_notes.egg-info/SOURCES.txt
8
- tutor_notes.egg-info/dependency_links.txt
9
- tutor_notes.egg-info/entry_points.txt
10
- tutor_notes.egg-info/requires.txt
11
- tutor_notes.egg-info/top_level.txt
12
- tutornotes/__about__.py
13
- tutornotes/__init__.py
14
- tutornotes/plugin.py
15
- tutornotes/patches/caddyfile
16
- tutornotes/patches/k8s-deployments
17
- tutornotes/patches/k8s-jobs
18
- tutornotes/patches/k8s-services
19
- tutornotes/patches/kustomization-configmapgenerator
20
- tutornotes/patches/local-docker-compose-dev-services
21
- tutornotes/patches/local-docker-compose-jobs-services
22
- tutornotes/patches/local-docker-compose-permissions-command
23
- tutornotes/patches/local-docker-compose-permissions-volumes
24
- tutornotes/patches/local-docker-compose-services
25
- tutornotes/patches/openedx-common-settings
26
- tutornotes/patches/openedx-lms-common-settings
27
- tutornotes/patches/openedx-lms-development-settings
28
- tutornotes/patches/openedx-lms-production-settings
29
- tutornotes/templates/notes/apps/settings/tutor.py
30
- tutornotes/templates/notes/build/notes/Dockerfile
31
- tutornotes/templates/notes/tasks/lms/init
32
- tutornotes/templates/notes/tasks/mysql/init
33
- tutornotes/templates/notes/tasks/notes/init
@@ -1,2 +0,0 @@
1
- [tutor.plugin.v1]
2
- notes = tutornotes.plugin
@@ -1,4 +0,0 @@
1
- tutor<20.0.0,>=19.0.0
2
-
3
- [dev]
4
- tutor[dev]<20.0.0,>=19.0.0
@@ -1 +0,0 @@
1
- tutornotes
@@ -1 +0,0 @@
1
- __version__ = "19.0.0"
File without changes
File without changes