Skip to content

chore: pin gitpython below 3.1.60 for release bump - #324

Merged
karthikbekalp merged 1 commit into
aws-deadline:mainlinefrom
karthikbekalp:depFix
Aug 26, 2026
Merged

karthikbekalp merged 1 commit into
aws-deadline:mainlinefrom
karthikbekalp:depFix

Conversation

@karthikbekalp

Copy link
Copy Markdown
Contributor

Problem

The release version-bump workflow fails on the NextSemver step (failed run):

type object 'Actor' has no attribute 'name_email_regex'

This is upstream dependency drift — nothing in this repo changed to cause it:

  • python-semantic-release 10.6.1 (latest) reads git.Actor.name_email_regex unconditionally during config validation (semantic_release/cli/config.py:745) and requires only gitpython ~= 3.0, with no upper bound within the 3.x line.
  • GitPython 3.1.60 (released 2026-08-25, via gitpython-developers/GitPython#2215) removed the Actor.name_email_regex class attribute. Every version 3.1.44–3.1.59 has it; only 3.1.60 dropped it.
  • requirements-release.txt had no gitpython bound, so the bump workflow's pip install resolved gitpython==3.1.60 at run time and semantic-release --strict version hit the AttributeError and exited 1.

Upgrading python-semantic-release does not help: 10.6.1 is the latest and still carries the reference.

Upstream status

The break is tracked upstream and a fix is in flight, but not yet released:

Fix

Pin gitpython < 3.1.60 in requirements-release.txt until python-semantic-release ships a release that drops the name_email_regex reference.

Verification

A clean-venv install of the updated requirements-release.txt resolves gitpython==3.1.59 (attribute present) alongside python-semantic-release==10.6.1, and the semantic-release CLI loads correctly.

Follow-up

Once python-semantic-release cuts a release including #1477, bump python-semantic-release and remove the gitpython < 3.1.60 pin.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

python-semantic-release 10.6.1 references git.Actor.name_email_regex during
config validation, but GitPython removed that attribute in 3.1.60. The bump
workflow installs requirements-release.txt with no gitpython bound, so pip
resolved 3.1.60 and the NextSemver step failed with:

  type object 'Actor' has no attribute 'name_email_regex'

Pin gitpython < 3.1.60 until python-semantic-release drops the reference.

Signed-off-by: Karthik BekalPattathana <133984042+karthikbekalp@users.noreply.github.com>
@karthikbekalp
karthikbekalp requested a review from a team August 26, 2026 21:23
@karthikbekalp
karthikbekalp enabled auto-merge (squash) August 26, 2026 21:25
@karthikbekalp
karthikbekalp merged commit f078be9 into aws-deadline:mainline Aug 26, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants