From f9c8da0f39cfe80fa7bd77c48018c4cda294f04f Mon Sep 17 00:00:00 2001 From: David Leong <116610336+leongdl@users.noreply.github.com> Date: Tue, 25 Aug 2026 17:13:53 -0700 Subject: [PATCH] chore: pin GitPython for release bump The Release: Bump workflow fails before it does any git work: ::ERROR:: type object 'Actor' has no attribute 'name_email_regex' GitPython 3.1.60 dropped `Actor.name_email_regex`, which python-semantic-release 10.6.1 still references. PSR depends on `gitpython~=3.0`, so a fresh `pip install -r requirements-release.txt` in CI resolved 3.1.60 and broke the bump. Nothing in this repo changed; the transitive dependency floated. Pin `GitPython == 3.1.59`, matching the fix openjd-model already landed in 12816ad. Verified by A/B against the workflow's own command (`semantic-release -v --strict version --no-commit --no-push --no-tag --minor`) in a clean venv at this commit: exit 0 on 3.1.59, and the CI error reproduced verbatim on 3.1.60. With the pin in place the bump computes 0.12.0, both with and without the forced minor. Refs: https://github.com/OpenJobDescription/openjd-sessions-for-python/actions/runs/32913960024 Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com> --- requirements-release.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/requirements-release.txt b/requirements-release.txt index 333d561c..e1454d3a 100644 --- a/requirements-release.txt +++ b/requirements-release.txt @@ -1 +1,7 @@ -python-semantic-release == 10.6.* \ No newline at end of file +python-semantic-release == 10.6.* +# GitPython 3.1.60 dropped Actor.name_email_regex, which python-semantic-release +# 10.6.1 still references; the release bump dies with +# "type object 'Actor' has no attribute 'name_email_regex'" before it does any +# git work. PSR depends on `gitpython~=3.0`, so the bad version floats in on a +# fresh install. Unpin once PSR ships a release compatible with 3.1.60+. +GitPython == 3.1.59