Skip to content

Conversation

@eecavanna
Copy link
Collaborator

Previously, in pyproject.toml, we were telling uv we wanted it to get the scalar-fastapi package from GitHub.

bertron/pyproject.toml

Lines 48 to 52 in 2c7eb87

# Note: We use `scalar-fastapi` to integrate Scalar API documentation with FastAPI.
# Note: We use a Git URL to install the `scalar-fastapi` package, because the Scalar
# maintainers have not published recent versions of the package to PyPI yet.
# Reference: https://github.com/scalar/scalar/issues/5337#issuecomment-2781011096
"scalar-fastapi @ git+https://github.com/scalar/scalar/#subdirectory=integrations/fastapi",

We did that at a time when the Scalar maintainers were not keeping their PyPI project up to date. Now that they are keeping it up to date, we can get new versions of the package from there instead.

That's the change I made on this branch.

I tested the result by visiting /scalar locally and confirming the Scalar API docs still appear.

image

Copy link
Collaborator

@jeff-cohere jeff-cohere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I left one minor question.

@eecavanna eecavanna merged commit 2374eb4 into main Sep 18, 2025
1 check passed
@eecavanna eecavanna deleted the 98-get-scalar-fastapi-package-from-pypi-instead-of-github-repository branch September 18, 2025 04:27
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.

Get scalar-fastapi package from PyPI instead of GitHub repository

3 participants