chore: run the app from a venv and read configuration from a dotenv #95
Reference in New Issue
Block a user
Delete Branch "chore/local-run-and-env-file"
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?
Running the application depended on the work-item helper's launcher, which falls back to a dependency-free system interpreter when conda is a shell function. The app now installs into an ordinary virtualenv.
That exposed two packaging faults: Pillow/numpy/scipy were declared test-only although the application imports them at runtime, and
pip install -e .failed because setuptools could not choose between the top-level directories. Both fixed; the OpenAI client moved to avisionextra.Config.from_envnow reads.env(orPHOTO_PIPELINE_ENV_FILE) before the environment — parsed, never executed, and always losing to an already-exported variable. The archived CLI's variable names are mapped, so an existingphoto_analyzer.envconfigures the app unchanged.Tests:
tests/unit/test_env_file.py(5), full suite 950 passing.🤖 Generated with Claude Code
https://claude.ai/code/session_01SH4M1PHPwJsM9btcg8hzCs