Matt Menzenski
01/31/2024, 2:49 PMAnother use for this is to supply credentials for a private Python package index:
Actually maybe https://docs.meltano.com/guide/plugin-management#installing-plugins-from-a-custom-python-package-index-pypi is the better documentation for this.Copy codepip_url: "https://${NEXUS_USERNAME}:${NEXUS_PASSWORD}@nexus.example.com/simple"
Matt Menzenski
01/31/2024, 2:53 PMmeltano install
winds up here: - whatever is provided in the pip_url
is tokenized here and passed directly to pip install
.
This worked for me:
pip_url: >-
tap-my-custom-plugin==0.1.0
--extra-index-url https://${MY_USERNAME}:${MY_PASSWORD}@my-artifactory-host.com/artifactory/api/pypi/pypi/simple
--trusted-host <http://my-artifactory-host.com|my-artifactory-host.com>
marcin_wojciechowski
01/31/2024, 3:44 PMMatt Menzenski
01/31/2024, 4:05 PMvisch
01/31/2024, 5:39 PMARG PIP_INDEX_URL=<your_custom_pypi_url>
gets you there as well and might be more what you're afterEdgar Ramírez (Arch.dev)
01/31/2024, 7:50 PMPIP_EXTRA_INDEX_URL=...
or
PIP_INDEX_URL=...
wherever meltano install
runs should do the trick.visch
01/31/2024, 7:51 PMMatt Menzenski
01/31/2024, 9:01 PMPIP_EXTRA_INDEX_URL
/ PIP_INDEX_URL
option but that’ll take more coordination to adopt in a way that won’t impact anyone.