Skip to content

[TASK] Clean up requirements.txt to remove dev dependencies #26

Closed

Description

@inference-gateway-maintainer

Description

The requirements.txt file includes both runtime dependencies and development dependencies mixed together. It contains dev-only packages like pytest, pytest-cov, pytest-watch, black, isort, mypy, datamodel-code-generator, pre-commit, and types-requests.

Impact

  • Users who install via pip install -r requirements.txt will get unnecessary dev dependencies
  • Confusing for contributors about which deps are actually needed at runtime
  • The pyproject.toml already properly separates dev deps under [project.optional-dependencies] dev

Location

  • requirements.txt (all 13 lines)

Suggested Fix

Either:

  • Remove requirements.txt entirely (since pyproject.toml is the canonical source), or
  • Trim it to only runtime dependencies: requests, pydantic, httpx, typing-extensions

Activity

  1. moved this to Todo in 2026on Jun 6, 2026
  2. added theissue type on Jun 6, 2026
  3. edenreich commented on Jun 6, 2026

    @edenreich
    Contributor

    @claude Can you work on this? use /maintainer

  4. claude commented on Jun 6, 2026

    @claude
    Contributor

    Claude finished @edenreich's task in 3m 34s —— View job • refactor/issue-26-20260606-1349 • [Create PR ➔](https://github.com/inference-gateway/python-sdk/compare/main...refactor/issue-26-20260606-1349?quick_pull=1&title=Issue%20%2326%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%2326%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Task: Clean up requirements.txt ✅

    • Gather context (requirements.txt, pyproject.toml, CLAUDE.md)
    • Check where requirements.txt is referenced
    • Decide approach (trim vs. delete)
    • Apply the change
    • Commit & open PR

    Summary

    Trimmed requirements.txt from 13 lines down to the 4 runtime dependencies:

    requests>=2.33.1
    pydantic>=2.13.4
    httpx>=0.28.1
    typing-extensions>=4.15.0
    

    Removed the dev-only packages (already declared in pyproject.toml → [project.optional-dependencies] dev): pytest, pytest-cov, pytest-watch, datamodel-code-generator, black, isort, mypy, pre-commit, types-requests. Added a short header comment pointing contributors to pip install -e ".[dev]" for dev tooling.

    Why trim instead of delete: CI (.github/workflows/ci.yml:29) installs via pip install -r requirements.txt, then installs black/pytest separately. Deleting the file would break CI, and workflow files can't be modified from here. Trimming removes the dev clutter from the default install path while keeping CI green. The README install path is PyPI (pip install inference-gateway), so no docs change is needed.

    Maintainer notes: single-repo change — no cross-repo (schemas/gateway/SDK) impact and no [DOCS] ticket required (this is a chore:, and the public install surface is unchanged).

    ➡️ Pull request: #32 — chore: trim requirements.txt to runtime dependencies only (Closes #26)

    --- · branch refactor/issue-26-20260606-1349

  5. moved this from Todo to Done in 2026on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions