chore(build): exclude 'repository-server-bundled' from package data and update fetch script documentation

This commit is contained in:
Ivan
2026-04-23 03:19:10 -05:00
parent 8ad8dc8825
commit 23b0c730aa
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
recursive-include meshchatx/public *
recursive-exclude meshchatx/public/repository-server-bundled *
recursive-include meshchatx/src/backend *
include meshchatx/src/version.py
include meshchatx/src/__init__.py
+3
View File
@@ -76,6 +76,9 @@ 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", "src/frontend/public/repository-server-index.html"]
[tool.setuptools.exclude-package-data]
meshchatx = ["public/repository-server-bundled/**"]
[build-system]
requires = ["setuptools>=65.0", "wheel"]
build-backend = "setuptools.build_meta"
+4
View File
@@ -7,6 +7,10 @@ ship with the same artifact layout as the Vite output. At runtime,
copies any missing ``*.whl`` files from that directory into each identity's
``repository-server/bundled`` folder (no network required).
The PyPI/sdist wheel intentionally omits this tree (see ``MANIFEST.in`` and
``tool.setuptools.exclude-package-data``); use this script for desktop/full
builds or refresh bundled wheels in the app when online.
Usage::
python3 scripts/build/fetch_repository_wheels.py [--dest DIR]