modern-london-16641
08/23/2023, 2:14 PMTWINE_USERNAME and TWINE_PASSWORD working with an "extra" repository on python_distributionmodern-london-16641
08/23/2023, 2:16 PMpython_distribution(
name = "my-wheel",
dependencies = [
"..."
],
provides = python_artifact(
name="...",
version="0.0.1",
),
repositories = [
"<https://my-private-repo>",
]
)
And I'm calling publish like:
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token pants publish :my-wheel
From gitlab's CI/CDmodern-london-16641
08/23/2023, 2:17 PMpants.toml somewhere? Or do I just pass TWINE_REPOSITORY in as an env var as well?modern-london-16641
08/23/2023, 2:18 PM404, but the URL is definitely correct, so I assume it's something to do with the credscurved-television-6568
08/23/2023, 3:32 PMpants.toml configuration in order for it to come through.curved-television-6568
08/23/2023, 3:33 PMTWINE_<REPO>_USERNAME form of variables I think..modern-london-16641
08/23/2023, 3:34 PMcurved-television-6568
08/23/2023, 3:34 PMcurved-television-6568
08/23/2023, 3:36 PMmodern-london-16641
08/24/2023, 2:22 PM<https://gitlab.example.com/api/v4/projects/><project_id>/packages/pypi/simple
instead of
<https://gitlab.example.com/api/v4/projects/><project_id>/packages/pypi
... I just goofed when copying the gitlab URL. The former is for consuming packages, and the latter is for publishing ๐curved-television-6568
08/24/2023, 2:51 PM