Skip to content

Get scalar-fastapi package from PyPI instead of GitHub repository #98

@eecavanna

Description

@eecavanna

In pyproject.toml, we currently tell uv 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 behind on updating the version of the package hosted on PyPI. Since then, the Scalar maintainers have begun keeping the version of the package hosted on PyPI up to date. This ticket represents the task of updating our pyproject.toml file to tell uv to download the package from PyPI (as shown below).

  # 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",
+ "scalar-fastapi >= 1.4.0",

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions