From dead0794b17f8ad9c87f51c2317786b8d0db0cd9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 14:08:57 +0000 Subject: [PATCH] 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> --- docs/PYPI_INSTALLATION.md | 12 ++++++++++++ pyproject.toml | 7 ------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/PYPI_INSTALLATION.md b/docs/PYPI_INSTALLATION.md index aff9386d..1144d5cb 100644 --- a/docs/PYPI_INSTALLATION.md +++ b/docs/PYPI_INSTALLATION.md @@ -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. diff --git a/pyproject.toml b/pyproject.toml index 29ccd057..578a7594 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",