Skip to content

Update fastAPI to fix starlette clash #454

Closed

Description

@DominicOram

sphinx-autobuild requires "starlette>=0.35". fast-api<0.99 (the version we're currently pinned to) requires starlette<0.28.0,>=0.27.0 and so there is a clash in dependencies. This is causing issues with deploying hyperion.

The best solution to this seems to be to upgrade to the latest fast-api, which is on a more up-to-date starlette. Is there a specific reason we're pinned to 0.99?

Activity

  1. callumforrester commented on May 7, 2024

    @callumforrester
    Contributor

    It is currently pinned because fastapi>0.99 requires pydantic v2, and we're not compatible with that yet. Have made a stub issue for it: #455

  2. DominicOram commented on May 7, 2024

    @DominicOram
    ContributorAuthor

    How would you feel about pinning sphinx-autobuild to 2024.2.4? This version doesn't have the starlette requirement

  3. callumforrester commented on May 7, 2024

    @callumforrester
    Contributor

    No objection from my end

  4. self-assigned this
    on May 7, 2024
  5. DominicOram commented on May 7, 2024

    @DominicOram
    ContributorAuthor

    I will do that then

  6. callumforrester commented on May 7, 2024

    @callumforrester
    Contributor

    Correction: It's not because of pydantic, it's because later versions of FastAPI generate a newer version of the openapi schema. We use swagger codegen against that in GDA, which is currently incompatible with newer versions of openapi, see: swagger-api/swagger-codegen#10446

  7. added a commit that references this issue on May 7, 2024
  8. added a commit that references this issue on May 7, 2024
    5b8d60a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions