Skip to content

refactor: split requirements.txt into runtime and dev - #8

Closed
opencolin wants to merge 1 commit into
mainfrom
split-requirements
Closed

refactor: split requirements.txt into runtime and dev#8
opencolin wants to merge 1 commit into
mainfrom
split-requirements

Conversation

@opencolin

Copy link
Copy Markdown
Owner

The single requirements.txt bundled pytest, black, isort, mypy, and
httpx alongside the runtime deps. install.sh's pip install -r requirements.txt therefore pulled the dev toolchain into a runtime
venv unnecessarily.

Splits into:

  • requirements.txt — runtime only (fastapi, uvicorn,
    pydantic, python-dotenv, openai, tiktoken)
  • requirements-dev.txt — pulls in requirements.txt then adds
    pytest, pytest-asyncio, httpx, black,
    isort, mypy

This matches the runtime/dev split already declared in pyproject.toml
under [project.optional-dependencies].dev. install.sh's existing
command (pip install -r requirements.txt) automatically picks up the
slimmer runtime set with no script change required.

Note: fastapi[standard] still pulls httpx in transitively (via
TestClient deps), so the --selftest flag continues to work in a
runtime-only install.

The single requirements.txt bundled pytest, black, isort, mypy, and
httpx alongside the runtime deps. install.sh's `pip install -r
requirements.txt` therefore pulled the dev toolchain into a runtime
venv unnecessarily.

Splits into:
  - requirements.txt        — runtime only (fastapi, uvicorn,
                              pydantic, python-dotenv, openai, tiktoken)
  - requirements-dev.txt    — pulls in requirements.txt then adds
                              pytest, pytest-asyncio, httpx, black,
                              isort, mypy

This matches the runtime/dev split already declared in pyproject.toml
under [project.optional-dependencies].dev. install.sh's existing
command (pip install -r requirements.txt) automatically picks up the
slimmer runtime set with no script change required.

Note: fastapi[standard] still pulls httpx in transitively (via
TestClient deps), so the --selftest flag continues to work in a
runtime-only install.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@opencolin

Copy link
Copy Markdown
Owner Author

Closing — this was a staging branch; the change is now tracked in the corresponding PR against KiranChilledOut/claude-code-proxy.

@opencolin opencolin closed this May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant