Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Turborepo to cache pip install for API #287

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

taesungh
Copy link
Member

Resolves #284.

Changes

  • Instead of having Vercel install the Python dependencies for the API, run pip install with Turborepo so the library files can be cached
  • Run system library installation before installing API dependencies

Testing

Access /api/saml/metadata on the preview deployment to ensure FastAPI and xmlsec are still operational (system libraries are loaded properly).

Impact

This will save around 30 seconds during each Vercel deployment, assuming requirements.txt has not changed.

Copy link
Contributor

github-actions bot commented Jan 20, 2024

Deploy preview for irvinehacks-site-2024 ready!

Name IrvineHacks 2024 Site
Preview Visit Preview
Commit 7d254d7

- Instead of having Vercel install the Python dependencies for the API,
  run `pip install` with Turborepo so the library files can be cached
- Run system library installation before installing API dependencies
@taesungh taesungh merged commit 29310ae into main Jan 20, 2024
4 checks passed
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.

Explore caching pip install with Turborepo
2 participants