Simplify package configuration and document behavioral differences

- Removed redundant package-data configuration, relying on MANIFEST.in
- Added documentation about behavioral differences between package and source installation
- Clarified that include-package-data=true uses MANIFEST.in for data files

Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-07 14:08:57 +00:00
parent f784bad08b
commit dead0794b1
2 changed files with 12 additions and 7 deletions

View File

@@ -103,3 +103,15 @@ uvx langbot
- Python 3.10.1 or higher
- Operating System: Linux, macOS, or Windows
## Differences from Source Installation
When running LangBot from the PyPI package (via uvx or pip), there are a few behavioral differences compared to running from source:
1. **Version Check**: The package version does not prompt for user input when the Python version is incompatible. It simply prints an error message and exits. This makes it compatible with non-interactive environments like containers and CI/CD.
2. **Working Directory**: The package version does not require being run from the LangBot project root. You can run `langbot` from any directory, and it will create a `data/` directory in your current working directory.
3. **Frontend Files**: The frontend is pre-built and included in the package, so you don't need to run `npm build` separately.
These differences are intentional to make the package more user-friendly and suitable for various deployment scenarios.

View File

@@ -111,13 +111,6 @@ build-backend = "setuptools.build_meta"
packages = { find = {} }
include-package-data = true
[tool.setuptools.package-data]
langbot = [
"web/out/**/*",
"templates/**/*",
"res/**/*",
]
[dependency-groups]
dev = [
"pre-commit>=4.2.0",