Skip to content
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

One single version of truth #168

Merged
merged 4 commits into from
Dec 5, 2023
Merged

One single version of truth #168

merged 4 commits into from
Dec 5, 2023

Conversation

rturrado
Copy link
Contributor

Added include/version.hpp to define libqasm version in a single place.
Then made this definition available to Python code through the get_version method at version.py.
And used this method from setup.py.

This is very similar to what is done at the moment for the QX simulator.
The main difference is that I've put the implementation of the get_version method in a version.py file.
I've done this because I think that, in the future, it may be needed to access this get_version method from conanfile.py.

Then made this definition available to Python code through get_version method at version.py.
And used this method from setup.py.

This is very similar to what is done at the moment for the QX simulator.
The main difference is that I've put the implementation of the get_version method in a version.py file.
I've done this because I think, in the future, it may be needed to access this get_version method from conanfile.py.
@rturrado rturrado requested a review from pablolh November 24, 2023 13:48
And set 'version' using 'get_version()'.
This can be accomplished by exporting 'version.py' and 'include/version.hpp' together with the 'conanfile.py'.
version.py Outdated Show resolved Hide resolved
@rturrado rturrado requested a review from pablolh November 29, 2023 18:47
@rturrado rturrado merged commit 52340ed into develop Dec 5, 2023
14 of 15 checks passed
@rturrado rturrado deleted the one_version_of_truth branch December 5, 2023 11:14
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.

2 participants