Skip to content

Fix the version bump script to update the version headers - #2096

Merged
darbyjohnston merged 4 commits into
AcademySoftwareFoundation:mainfrom
darbyjohnston:version-bump
Nov 23, 2026
Merged

darbyjohnston merged 4 commits into
AcademySoftwareFoundation:mainfrom
darbyjohnston:version-bump

Conversation

@darbyjohnston

Copy link
Copy Markdown
Collaborator

This PR fixes bump_version_number.py to update the versions in the C++ header files.

Also the version and namespace macros are now made from the version numbers, so they can't get out of sync.

Assisted-by: Claude Code / Claude Opus 5.5

bump_version_number.py still edited the version lines in CMakeLists.txt,
which were removed when the version moved to the version headers, so it
changed nothing there and never updated the headers. A minor version bump
would have left the C++ version, namespace and SOVERSION behind the
Python version.

The script now updates the version numbers in both version headers, stops
with an error if a file does not have the expected version line, and only
writes the files once every change has been made. The --dryrun option is
now honored, and unused copies of the dev suffix functions were removed.

The version and namespace names in the headers are now made from the
version numbers, so they cannot get out of sync.

Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@codecov-commenter

codecov-commenter commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.70%. Comparing base (d3a3145) to head (20c5ff9).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2096   +/-   ##
=======================================
  Coverage   86.70%   86.70%           
=======================================
  Files         186      186           
  Lines       13762    13762           
  Branches     1280     1280           
=======================================
  Hits        11932    11932           
  Misses       1660     1660           
  Partials      170      170           
Flag Coverage Δ
cpp-unittests 64.67% <ø> (ø)
py-unittests 83.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3a3145...20c5ff9. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/opentimelineio/version.h Resolved
The bump script now updates the version and namespace names, for example
v0_19_0 and v0_19, along with the numbers.

Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@darbyjohnston darbyjohnston changed the title Fix the version bump script and compose the version macros Fix the version bump script to update the version headers Nov 20, 2026
@darbyjohnston darbyjohnston added this to the 1.0 Release milestone Nov 20, 2026
@darbyjohnston darbyjohnston added the build issues building OTIO label Nov 20, 2026
@darbyjohnston
darbyjohnston merged commit f38b2cb into AcademySoftwareFoundation:main Nov 23, 2026
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build issues building OTIO

Projects

Development

Successfully merging this pull request may close these issues.

3 participants