in gitlab, the internal private pypi repo has the ...
# general
f
in gitlab, the internal private pypi repo has the form
Copy code
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
In a given python BUILD file to publish there, I need to specify the repository - from recollection, i don;t have access to the environment variables in the BUILD file do I? if so, how can I inject that constructed repsotory
Copy code
#
python_distribution(

    repositories=[
       "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi"   # <---- how do i do this 
    ]
I do not currently have a .pypirc file, but could create it for this CICD step. but figured it'd be cleaner to inject it in
f
there's access to env vars via the
env
directive, please see https://www.pantsbuild.org/docs/targets#environment-variables