Skip to content

Fix the version bump script and compose the version macros - #2096

Open
darbyjohnston wants to merge 3 commits into
AcademySoftwareFoundation:mainfrom
darbyjohnston:version-bump
Open

darbyjohnston wants to merge 3 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 83.66%. Comparing base (b0af5bf) to head (d2a0796).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2096   +/-   ##
=======================================
  Coverage   83.65%   83.66%           
=======================================
  Files         184      184           
  Lines       13696    13692    -4     
  Branches     1275     1276    +1     
=======================================
- Hits        11458    11456    -2     
+ Misses       2066     2064    -2     
  Partials      172      172           
Flag Coverage Δ
py-unittests 83.66% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes


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 b0af5bf...d2a0796. 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants