-
Notifications
You must be signed in to change notification settings - Fork 306
Add version header. #1907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add version header. #1907
Conversation
Signed-off-by: Peter Targett <[email protected]>
Signed-off-by: Peter Targett <[email protected]>
Hi, it looks like there are already
Also sorry, it looks like one of the CI jobs is failing unrelated to your changes, I'll look into that. |
Signed-off-by: Peter Targett <[email protected]>
Just as an example, I was looking at how OpenEXR does their version file and they have the version numbers in the header and parse those with CMake:
I wonder if there are any advantages to this vs. using |
I guess it's just another way to end up with the same result, I don't see any obvious benefit? |
It looks like the Python builds are failing on the CI:
|
Fix python builds. Signed-off-by: Peter Targett <[email protected]>
We did have a more traditional build-system-built version file before. The reason I switched to that system was that I got tired of debugging all the ways people build OpenEXR and manage to make the version header unavailable, the permutations are endless when people start bringing all kinds of different build systems to the table. OpenEXR is built by more than just cmake, and consumed by package managers that all do their own interesting things with the version header file :] I figured if the version.h file was ground truth, then it would always just work and I wouldn't have to deal with GitHub issues where this week vcpkg is broken, next week the Debian distro has a twist, etc. OTIO doesn't have that build permutation complexity but it does have python packaging to contend with. I don't have a preference on how to do it, but since @darbyjohnston mentioned the OpenEXR set up, I thought some background is in order. |
I hope we don't have to support any other build systems, but I would like to support packaging like Debian or vcpkg. Do you think the CMake generated |
It should not cause any issues. Both will run cmake behind the scene. |
Thanks for confirming that, @JeanChristopheMorinPerso |
Signed-off-by: Peter Targett <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your changes status has failed because you have indirect coverage changes. Learn more about Unexpected Coverage Changes and reasons for indirect coverage changes. Additional details and impacted files@@ Coverage Diff @@
## main #1907 +/- ##
==========================================
+ Coverage 84.11% 84.86% +0.74%
==========================================
Files 198 181 -17
Lines 22241 13054 -9187
Branches 4687 1206 -3481
==========================================
- Hits 18709 11078 -7631
+ Misses 2610 1790 -820
+ Partials 922 186 -736
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 136 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Signed-off-by: Peter Targett <[email protected]>
639f57c
into
AcademySoftwareFoundation:main
Add a version header file for C++ installs.
Allows 3rd-party apps that use OTIO to reference the version.