Add pyproject.toml and proper Python packaging #4
Labels
No labels
blocked:needs-decision
bug
documentation
enhancement
feature-request
quickfix
test
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/kimi_agent_app_testing_environment_setup#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
testenv/package is currently copied manually into/opt/testenv/lib/python3.12/site-packages/in the Dockerfile. This is fragile and non-standard.Add:
pyproject.tomlwith[build-system](setuptools or hatchling)[project]metadata (name, version, description, dependencies)[project.optional-dependencies]fortest(pytest, pytest-html, pytest-xvfb)[project.scripts]for CLI entry points (testenv-shell,deploy-app)Dockerfiletopip install .instead of manual COPYWhy: Standard packaging enables
pip install, version pinning, dependency resolution, and publishing to a private package index.