tutor-notes 19.0.2__tar.gz → 21.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-19.0.2 → tutor_notes-21.0.0}/PKG-INFO +4 -5
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/pyproject.toml +23 -9
- tutor_notes-21.0.0/tutornotes/__about__.py +1 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/plugin.py +1 -1
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/templates/notes/build/notes/Dockerfile +19 -14
- tutor_notes-19.0.2/.hatch_build.py +0 -21
- tutor_notes-19.0.2/tutornotes/__about__.py +0 -1
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/.gitignore +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/LICENSE.txt +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/README.rst +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/__init__.py +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/caddyfile +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/k8s-deployments +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/k8s-jobs +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/k8s-services +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/kustomization-configmapgenerator +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/local-docker-compose-dev-services +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/local-docker-compose-jobs-services +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/local-docker-compose-permissions-command +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/local-docker-compose-permissions-volumes +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/local-docker-compose-services +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/openedx-common-settings +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/openedx-lms-common-settings +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/openedx-lms-development-settings +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/openedx-lms-production-settings +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/templates/notes/apps/settings/tutor.py +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/templates/notes/tasks/lms/init +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/templates/notes/tasks/mysql/init +0 -0
- {tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/templates/notes/tasks/notes/init +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tutor-notes
|
|
3
|
-
Version:
|
|
3
|
+
Version: 21.0.0
|
|
4
4
|
Summary: A Tutor plugin for student notes
|
|
5
5
|
Project-URL: Homepage, https://docs.tutor.edly.io/
|
|
6
6
|
Project-URL: Documentation, https://github.com/overhangio/tutor-notes#readme
|
|
@@ -24,11 +24,10 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
26
|
Requires-Python: >=3.9
|
|
27
|
-
Requires-Dist: tutor<
|
|
27
|
+
Requires-Dist: tutor<22.0.0,>=21.0.0
|
|
28
28
|
Provides-Extra: dev
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
Requires-Dist: tutor[dev]<20.0.0,>=19.0.0; extra == 'dev'
|
|
29
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
30
|
+
Requires-Dist: tutor[dev]<22.0.0,>=21.0.0; extra == 'dev'
|
|
32
31
|
Description-Content-Type: text/x-rst
|
|
33
32
|
|
|
34
33
|
Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
|
|
@@ -27,17 +27,15 @@ classifiers = [
|
|
|
27
27
|
"Programming Language :: Python :: 3.12",
|
|
28
28
|
]
|
|
29
29
|
dependencies = [
|
|
30
|
-
"tutor>=
|
|
30
|
+
"tutor>=21.0.0,<22.0.0",
|
|
31
31
|
]
|
|
32
32
|
|
|
33
|
-
# These fields will be set by hatch_build.py
|
|
34
33
|
dynamic = ["version"]
|
|
35
34
|
|
|
36
35
|
[project.optional-dependencies]
|
|
37
36
|
dev = [
|
|
38
|
-
"tutor[dev]>=
|
|
39
|
-
"
|
|
40
|
-
"pylint"
|
|
37
|
+
"tutor[dev]>=21.0.0,<22.0.0",
|
|
38
|
+
"ruff"
|
|
41
39
|
]
|
|
42
40
|
|
|
43
41
|
|
|
@@ -54,9 +52,8 @@ Community = "https://discuss.openedx.org/tag/tutor"
|
|
|
54
52
|
requires = ["hatchling"]
|
|
55
53
|
build-backend = "hatchling.build"
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
path = ".hatch_build.py"
|
|
55
|
+
[tool.hatch.version]
|
|
56
|
+
path = "tutornotes/__about__.py"
|
|
60
57
|
|
|
61
58
|
[tool.hatch.build.targets.wheel]
|
|
62
59
|
packages = ["tutornotes"]
|
|
@@ -64,8 +61,25 @@ packages = ["tutornotes"]
|
|
|
64
61
|
[tool.hatch.build.targets.sdist]
|
|
65
62
|
# Disable strict naming, otherwise twine is not able to detect name/version
|
|
66
63
|
strict-naming = false
|
|
67
|
-
include = [ "/tutornotes",
|
|
64
|
+
include = [ "/tutornotes",]
|
|
68
65
|
exclude = ["tests*"]
|
|
69
66
|
|
|
70
67
|
[project.entry-points."tutor.plugin.v1"]
|
|
71
68
|
notes = "tutornotes.plugin"
|
|
69
|
+
|
|
70
|
+
[tool.ruff]
|
|
71
|
+
exclude = ["templates", "docs/_ext"]
|
|
72
|
+
|
|
73
|
+
[tool.ruff.lint]
|
|
74
|
+
# E: pycodestyle errors
|
|
75
|
+
# I: isort
|
|
76
|
+
# N: pep8-naming
|
|
77
|
+
select = ["E", "I", "N"]
|
|
78
|
+
|
|
79
|
+
# F401: unused-import
|
|
80
|
+
# F841: unused-variable
|
|
81
|
+
# W292: missing-newline-at-end-of-file
|
|
82
|
+
extend-select = ["F401", "F841", "W292"]
|
|
83
|
+
|
|
84
|
+
[tool.ruff.format]
|
|
85
|
+
# Default config is automatically taken from https://docs.astral.sh/ruff/configuration/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "21.0.0"
|
|
@@ -17,7 +17,7 @@ if __version_suffix__:
|
|
|
17
17
|
config = {
|
|
18
18
|
"defaults": {
|
|
19
19
|
"VERSION": __version__,
|
|
20
|
-
"DOCKER_IMAGE": "{{ DOCKER_REGISTRY }}overhangio/openedx-notes:{{ NOTES_VERSION }}",
|
|
20
|
+
"DOCKER_IMAGE": "{{ DOCKER_REGISTRY }}overhangio/openedx-notes:{{ NOTES_VERSION }}", # noqa: E501
|
|
21
21
|
"HOST": "notes.{{ LMS_HOST }}",
|
|
22
22
|
"MYSQL_DATABASE": "notes",
|
|
23
23
|
"MYSQL_USERNAME": "notes",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# syntax=docker/dockerfile:1
|
|
1
|
+
# syntax=docker/dockerfile:1
|
|
2
2
|
FROM docker.io/ubuntu:24.04
|
|
3
3
|
|
|
4
4
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
@@ -7,17 +7,17 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|
|
7
7
|
RUN userdel -r ubuntu
|
|
8
8
|
|
|
9
9
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
|
11
|
+
apt update && \
|
|
12
|
+
apt upgrade -y && \
|
|
13
|
+
apt install -y \
|
|
14
|
+
language-pack-en \
|
|
15
|
+
git \
|
|
16
|
+
python3 \
|
|
17
|
+
python3-pip \
|
|
18
|
+
python3-venv \
|
|
19
|
+
libmysqlclient-dev \
|
|
20
|
+
pkg-config
|
|
21
21
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
22
22
|
|
|
23
23
|
###### Git-clone Notes repo ######
|
|
@@ -34,8 +34,13 @@ ENV PATH=/app/venv/bin:${PATH}
|
|
|
34
34
|
# https://pypi.org/project/setuptools/
|
|
35
35
|
# https://pypi.org/project/pip/
|
|
36
36
|
# https://pypi.org/project/wheel/
|
|
37
|
-
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install setuptools==
|
|
37
|
+
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install setuptools==80.9.0 pip==25.3 wheel==0.46.1
|
|
38
38
|
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install -r requirements/base.txt
|
|
39
39
|
|
|
40
40
|
EXPOSE 8000
|
|
41
|
-
CMD gunicorn
|
|
41
|
+
CMD ["gunicorn", \
|
|
42
|
+
"--workers=2", \
|
|
43
|
+
"--name", "notes", \
|
|
44
|
+
"--bind=0.0.0.0:8000", \
|
|
45
|
+
"--max-requests=1000", \
|
|
46
|
+
"notesserver.wsgi:application"]
|
|
@@ -1,21 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
__version__ = "19.0.2"
|
|
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-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/kustomization-configmapgenerator
RENAMED
|
File without changes
|
{tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/local-docker-compose-dev-services
RENAMED
|
File without changes
|
{tutor_notes-19.0.2 → tutor_notes-21.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-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/openedx-lms-development-settings
RENAMED
|
File without changes
|
{tutor_notes-19.0.2 → tutor_notes-21.0.0}/tutornotes/patches/openedx-lms-production-settings
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|