Open sbalian opened 9 months ago
Is there a way to pass an environment variable to the build command? This is to avoid putting secrets in the JSON config.
For example, USER and PASSWORD in ...
USER
PASSWORD
"build_command": [ ... "python -m poetry config http-basic.private-repo $USER $PASSWORD", ... ]
Edit: with poetry, I solved my issue using:
export POETRY_HTTP_BASIC_MY_REPOSITORY_USERNAME=user export POETRY_HTTP_BASIC_MY_REPOSITORY_PASSWORD=secret
This way, there is no need to enter the username and password into the JSON file.
Doc here.
I would suggest consuming the json, modifying it in-place in python and then streaming it to asv. However, a documentation update regarding this would be most welcome :)
json
python
asv
Is there a way to pass an environment variable to the build command? This is to avoid putting secrets in the JSON config.
For example,
USER
andPASSWORD
in ...Edit: with poetry, I solved my issue using:
This way, there is no need to enter the username and password into the JSON file.
Doc here.