-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add support for config vars in pip requirements files #1451
Comments
I should also add that the Heroku docs state: However, following that statement, it gives an example that is unsupported on GitHub. GitHub no longer supports user/password based authentication.
https://devcenter.heroku.com/articles/python-pip#git-backed-distributions |
This link seems to provide a good option on how to modify heroku-buildpack-python to utilize and acceptlist and denylist for env vars. Maybe this would be a worthy consideration as a fix? https://devcenter.heroku.com/articles/buildpack-api#bin-compile-usage
|
@ericwb Hi! Thank you for filing this, and sorry for the delay (I was away). You are correct that env vars are filtered out in this buildpack at present for certain subprocesses, with I'd like to revisit that decision in the new Python Cloud Native Buildpack (that's set to replace this one) - I've filed: In the meantime, I'd recommend trying out Since you are using GitHub for the package location, the (For anyone else not using GitHub for the package location, then you will need to either fork the above buildpack, or else manually create a |
Tracking this internally in GUS-W-17309187. |
Related: heroku/roadmap#262 |
Unsure if I'm somehow doing something wrong or this is by design. According to Pip's documentation, I can include a private repo in my requirements.txt as a dependency. Since the repo is private and hosted on GitHub, I need to provide a personal access token. Of course, I do not want that token included in source code, so I configure it in Heroku's Config Vars. But it doesn't seem to work for me. However works fine when running locally.
For example, requirements.txt:
This is the error I get from Heroku. It appears, it does not resolve the GITHUB_TOKEN environmental variable that is defined in the Config Vars.
Is there a workaround or something I'm missing? Thanks
https://pip.pypa.io/en/stable/reference/requirements-file-format/#using-environment-variables
The text was updated successfully, but these errors were encountered: