From 6f05f7eef40e780f29da2450bf2fd69356c99031 Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Tue, 16 Jun 2026 14:11:47 -0400 Subject: [PATCH] =?UTF-8?q?ci:=20pin=20twine<6,=20bump=20to=20v0.1.1=20?= =?UTF-8?q?=E2=80=94=20classic=20auth=20on=20build=20runner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit twine 6 (Sep 2025) auto-detects GitLab CI envvars and refuses to fall back to ~/.pypirc on the runner, requiring PYPI_ID_TOKEN (Trusted Publishing OIDC) instead. Pipeline #40338 (v0.1.0 tag) hit this and failed with TrustedPublishingFailure. Pinning twine<6 restores classic ~/.pypirc auth that ago / make_post_sell / remarkbox already use on the same runner. When we migrate to Trusted Publishing as a coordinated change across all four python/* repos, we'll drop this pin and add an id_tokens block + PyPI trusted-publisher config. --- .gitlab-ci.yml | 10 ++++++++-- erldistpy/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index deefd60..7f4f29c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,7 +37,13 @@ pypi-twine: - python3 -m venv .venv - . .venv/bin/activate - pip install --upgrade pip - - pip install build twine + # Pin twine <6 — newer twine auto-detects GitLab CI and refuses to + # fall back to ~/.pypirc on the runner, requiring PYPI_ID_TOKEN + # (Trusted Publishing OIDC) instead. Until we migrate all four + # python/* repos to Trusted Publishing in one coordinated change, + # stick with the classic ~/.pypirc path that ago / make_post_sell / + # remarkbox already use. + - pip install build "twine<6" - python -m build - twine check dist/* - - twine upload dist/* + - twine upload --non-interactive dist/* diff --git a/erldistpy/__init__.py b/erldistpy/__init__.py index aae15f2..17a408c 100644 --- a/erldistpy/__init__.py +++ b/erldistpy/__init__.py @@ -1,6 +1,6 @@ """erldistpy — native Python client for our Erlang distribution protocol.""" -__version__ = "0.1.0" +__version__ = "0.1.1" from erldistpy.channel import Channel, ChannelError, IncomingMessage from erldistpy.epmd import EpmdError, EpmdInfo, lookup diff --git a/pyproject.toml b/pyproject.toml index b26f500..42c1932 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "erldistpy" -version = "0.1.0" +version = "0.1.1" description = "Native Python client for Erlang distribution protocol — EPMD + v6 handshake + gen_server call(), no asyncio." readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.10"