-
-
Notifications
You must be signed in to change notification settings - Fork 348
Open
Description
We host some packages on a private package repo in GCP. To auth to this I would typically run:
ACCESS_TOKEN=$(gcloud auth print-access-token)
export PIP_EXTRA_INDEX_URL=https://oauth2accesstoken:[email protected]/my_company/simple/
Now, I would like to configure hatch through pyproject.toml to run this and keep this PIP_EXTRA_INDEX_URL in two cases:
- before installing the hatch default env
- when running selected hatch scripts (using pip-compile to lock dependencies and export them to a requirements.txt file).
It is in a way similar to this, https://hatch.pypa.io/latest/how-to/environment/package-indices/, apart from the access token to be generated on the fly.
Is this possible to achieve?
When just putting the two lines above in a pre-install-commands
block, it seems the environment variables are not persisting.
bkanukazeyus and bkanuka
Metadata
Metadata
Assignees
Labels
No labels