From 4ba88127cee87faedbb6c9c0e95d374edd9ccafa Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 23 Apr 2026 02:30:25 -0500 Subject: [PATCH] feat(build): add new build script for fetching repository wheels and update build process to include it --- package.json | 4 +++- pyproject.toml | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 344d631..3f4f9cb 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,9 @@ "build-frontend": "vite build", "build-backend": "node scripts/build-backend.js", "build-docs": "python3 scripts/build/fetch_reticulum_manual.py", + "build-repository-wheels": "python3 scripts/build/fetch_repository_wheels.py", "version:sync": "node scripts/sync_version.js", - "build": "pnpm run version:sync && pnpm run build-frontend && pnpm run build-docs && pnpm run build-backend", + "build": "pnpm run version:sync && pnpm run build-frontend && pnpm run build-docs && pnpm run build-repository-wheels && pnpm run build-backend", "lint": "eslint .", "lint:fix": "eslint . --fix", "format": "prettier --write .", @@ -23,6 +24,7 @@ "test:coverage": "vitest run --coverage --exclude tests/frontend/LoadTimePerformance.test.js && vitest run --config vitest.electron.config.js --coverage", "test:fuzz": "vitest run -t fuzzing", "test:watch": "vitest --exclude tests/frontend/LoadTimePerformance.test.js", + "test:i18n": "vitest run tests/frontend/i18n.test.js", "test:loadtime": "vitest run tests/frontend/LoadTimePerformance.test.js", "test:ui": "vitest --ui --open --exclude tests/frontend/LoadTimePerformance.test.js", "test:e2e": "playwright test", diff --git a/pyproject.toml b/pyproject.toml index 216586a..62edff2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,7 @@ dependencies = [ [project.scripts] meshchatx = "meshchatx.meshchat:main" meshchat = "meshchatx.meshchat:main" +meshchatx-repository-http = "meshchatx.repository_http_standalone:main" [project.urls] Homepage = "https://git.quad4.io/RNS-Things/MeshChatX" @@ -67,11 +68,13 @@ pytest-xdist = "^3.8.0" [[tool.poetry.include]] path = "logo" -[tool.setuptools] -packages = {find = {}} +[tool.setuptools.packages.find] +where = ["."] +include = ["meshchatx*"] +namespaces = false [tool.setuptools.package-data] -meshchatx = ["public/**/*", "public/*", "src/backend/data/community_interfaces.json", "src/backend/data/licenses_frontend.json", "src/backend/data/THIRD_PARTY_NOTICES.txt"] +meshchatx = ["public/**/*", "public/*", "src/backend/data/community_interfaces.json", "src/backend/data/licenses_frontend.json", "src/backend/data/THIRD_PARTY_NOTICES.txt", "src/frontend/public/repository-server-index.html"] [build-system] requires = ["setuptools>=65.0", "wheel"]