How to handle private dependencies for python apps? #82086
Replies: 1 comment
-
Hi @TurqayUmudzade, To handle private Python dependencies (e.g., from private GitHub repos) in deployments like Vercel, you can do the following: Use a Personal Access Token (PAT) in your requirements.txt
is correct, but you need to make sure GITHUB_TOKEN is set as an environment variable in Vercel. Set environment variables securely Use a .netrc file or SSH keys (optional) Make sure the token has repo read access Double-check URL formatting With this setup, Vercel’s build should be able to clone your private package during installation. Let me know if you want help with Vercel environment variable setup or troubleshooting! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am deploying a FastAPI application into vercel, but one of the dependencies is a custom package from a private github repository, I could not find a easy way to handle this.
vercel.json:
snippet of requirements.txt
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions