Loading .gitignore +10 −20 Original line number Diff line number Diff line .idea/ **/__pycache__/ venv .idea/ .venv .env .DS_Store partial_uploads iiif *.log media_source_files huey.db huey.db-shm huey.db-wal poetry.lock meilisearch data.ms normanum ui/front/node_modules ui/front/dist resources/management/commands/sandbox/ cache processing uv.lock .vscode var No newline at end of file .ruff_cache src/normanum src/ui/front/node_modules src/ui/front/dist src/resources/management/commands/sandbox/ src/processing uv.lock src/var No newline at end of file Makefile +10 −10 Original line number Diff line number Diff line Loading @@ -2,23 +2,23 @@ install: ## installation des paquets et dépendances uv sync uv run pre-commit install uv run python manage.py migrate uv run python manage.py loadfixtures @read -p "Do you want to create a django superuser? [y/N] " c; echo; if test "$$c" = "Y" || test "$$c" = "y"; then uv run python manage.py createsuperuser ; fi uv run python manage.py newjamaproject default uv run python src/manage.py migrate uv run python src/manage.py loadfixtures @read -p "Do you want to create a django superuser? [y/N] " c; echo; if test "$$c" = "Y" || test "$$c" = "y"; then uv run python src/manage.py createsuperuser ; fi uv run python src/manage.py newjamaproject default .PHONY: install build-ui-front: ## compilation du front de l'appli ui yarn --cwd ui/front/ install yarn --cwd ui/front/ vite build @cp -r ui/front/node_modules/@shoelace-style/shoelace/dist/assets ui/front/dist/ui/ yarn --cwd src/ui/front/ install yarn --cwd src/ui/front/ vite build @cp -r src/ui/front/node_modules/@shoelace-style/shoelace/dist/assets src/ui/front/dist/ui/ update: ## mise à jour des paquets et dépendances uv sync && uv run python manage.py migrate uv sync && uv run python src/manage.py migrate .PHONY: update run: ## démarrage de l'environnement de développement uv run python manage.py runserver & uv run python manage.py run_huey uv run python src/manage.py runserver & uv run python src/manage.py run_huey .PHONY: run format: ## Formatage des sources avec Ruff Loading @@ -27,7 +27,7 @@ format: ## Formatage des sources avec Ruff .PHONY: format test: ## Lancer les tests uv run python manage.py test uv run python src/manage.py test .PHONY: test help: ## Show this help Loading pyproject.toml +17 −2 Original line number Diff line number Diff line [project] name = "jama" version = "0.0.10" dynamic = ["version"] description = "APIs et interfaces de stockage de médias." readme = "README.md" requires-python = ">=3.12,<4.0" Loading @@ -20,10 +20,10 @@ dependencies = [ "django-vite>=2.1.3", "django-webpack-loader>=3.1.0", "fusepy>=3.0.1", "gunicorn>=23.0.0", "huey>=2.5.3", "jama-client-CERTIC>=0.0.24", "markdown2>=2.4.3", "meilisearch>=0.31.0", "numpy>=2.1.3", "opencv-python-headless>=4.6.0", "openpyxl>=3.1.2", Loading @@ -50,3 +50,18 @@ dev = [ "ruff>=0.9.2", "pre-commit>=4.1.0", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["src/jama", "src/annotations", "src/oai", "src/resources", "src/rpc", "src/ui"] [tool.hatch.build.targets.src] packages = ["src/jama", "src/annotations", "src/oai", "src/resources", "src/rpc", "src/ui"] [tool.hatch.metadata] allow-direct-references = true [tool.hatch.version] path = "src/jama/__init__.py" src/annotations/__init__.py 0 → 100644 +7 −0 Original line number Diff line number Diff line from os.path import dirname, abspath endpoint = "annotations/" def load_tests(loader, tests, pattern): return loader.discover(start_dir=dirname(abspath(__file__)), pattern=pattern) src/annotations/apps.py 0 → 100644 +6 −0 Original line number Diff line number Diff line from django.apps import AppConfig class AnnotationsConfig(AppConfig): name = "annotations" verbose_name = "annotations" Loading
.gitignore +10 −20 Original line number Diff line number Diff line .idea/ **/__pycache__/ venv .idea/ .venv .env .DS_Store partial_uploads iiif *.log media_source_files huey.db huey.db-shm huey.db-wal poetry.lock meilisearch data.ms normanum ui/front/node_modules ui/front/dist resources/management/commands/sandbox/ cache processing uv.lock .vscode var No newline at end of file .ruff_cache src/normanum src/ui/front/node_modules src/ui/front/dist src/resources/management/commands/sandbox/ src/processing uv.lock src/var No newline at end of file
Makefile +10 −10 Original line number Diff line number Diff line Loading @@ -2,23 +2,23 @@ install: ## installation des paquets et dépendances uv sync uv run pre-commit install uv run python manage.py migrate uv run python manage.py loadfixtures @read -p "Do you want to create a django superuser? [y/N] " c; echo; if test "$$c" = "Y" || test "$$c" = "y"; then uv run python manage.py createsuperuser ; fi uv run python manage.py newjamaproject default uv run python src/manage.py migrate uv run python src/manage.py loadfixtures @read -p "Do you want to create a django superuser? [y/N] " c; echo; if test "$$c" = "Y" || test "$$c" = "y"; then uv run python src/manage.py createsuperuser ; fi uv run python src/manage.py newjamaproject default .PHONY: install build-ui-front: ## compilation du front de l'appli ui yarn --cwd ui/front/ install yarn --cwd ui/front/ vite build @cp -r ui/front/node_modules/@shoelace-style/shoelace/dist/assets ui/front/dist/ui/ yarn --cwd src/ui/front/ install yarn --cwd src/ui/front/ vite build @cp -r src/ui/front/node_modules/@shoelace-style/shoelace/dist/assets src/ui/front/dist/ui/ update: ## mise à jour des paquets et dépendances uv sync && uv run python manage.py migrate uv sync && uv run python src/manage.py migrate .PHONY: update run: ## démarrage de l'environnement de développement uv run python manage.py runserver & uv run python manage.py run_huey uv run python src/manage.py runserver & uv run python src/manage.py run_huey .PHONY: run format: ## Formatage des sources avec Ruff Loading @@ -27,7 +27,7 @@ format: ## Formatage des sources avec Ruff .PHONY: format test: ## Lancer les tests uv run python manage.py test uv run python src/manage.py test .PHONY: test help: ## Show this help Loading
pyproject.toml +17 −2 Original line number Diff line number Diff line [project] name = "jama" version = "0.0.10" dynamic = ["version"] description = "APIs et interfaces de stockage de médias." readme = "README.md" requires-python = ">=3.12,<4.0" Loading @@ -20,10 +20,10 @@ dependencies = [ "django-vite>=2.1.3", "django-webpack-loader>=3.1.0", "fusepy>=3.0.1", "gunicorn>=23.0.0", "huey>=2.5.3", "jama-client-CERTIC>=0.0.24", "markdown2>=2.4.3", "meilisearch>=0.31.0", "numpy>=2.1.3", "opencv-python-headless>=4.6.0", "openpyxl>=3.1.2", Loading @@ -50,3 +50,18 @@ dev = [ "ruff>=0.9.2", "pre-commit>=4.1.0", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["src/jama", "src/annotations", "src/oai", "src/resources", "src/rpc", "src/ui"] [tool.hatch.build.targets.src] packages = ["src/jama", "src/annotations", "src/oai", "src/resources", "src/rpc", "src/ui"] [tool.hatch.metadata] allow-direct-references = true [tool.hatch.version] path = "src/jama/__init__.py"
src/annotations/__init__.py 0 → 100644 +7 −0 Original line number Diff line number Diff line from os.path import dirname, abspath endpoint = "annotations/" def load_tests(loader, tests, pattern): return loader.discover(start_dir=dirname(abspath(__file__)), pattern=pattern)
src/annotations/apps.py 0 → 100644 +6 −0 Original line number Diff line number Diff line from django.apps import AppConfig class AnnotationsConfig(AppConfig): name = "annotations" verbose_name = "annotations"