-
Notifications
You must be signed in to change notification settings - Fork 520
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
fix: version should be set by pyproject.toml #2471
fix: version should be set by pyproject.toml #2471
Conversation
50c6b89
to
996d17a
Compare
Dang — I didn’t get the memo about that addition. I’ll update the “Publishing.md” doc to add that. However, in that document, I did say double check that there is not the version somewhere else so I should have caught it… 🦤 Bigger question — does this mean we need to do a 0.10.2 to get this properly published? |
@swcurran No, 0.10.1 is valid since it was published before we merged the poetry PR. So no changes required for the release. |
Of course. Phewww…. I didn’t mess up :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great catch and fix.
d1dc71e
996d17a
to
d1dc71e
Compare
@swcurran @usingtechnology Sorry, fixing the conflicts on poetry.lock dismissed your reviews -- this should be ready to merge now though! |
I need to resolve issues in integration tests. My path to the pyproject.toml is bad. This isn't urgent (until we start preparing for another release) so I'll mark this as a draft and we can get some of the other pending PRs merged first. |
d1dc71e
to
bc9a7e2
Compare
`aries_cloudagent.version.__version__` was out of sync with the version listed in the pyproject.toml file. The pyproject.toml file should be the source of truth as it will be used when publishing using poetry. However, `__version__` is used in code for some operations. To ensure that the pyproject file and the `__version__` can't get out of sync, `aries_cloudagent.version` will now read from the package metadata to obtain the version. Signed-off-by: Daniel Bluhm <[email protected]>
bc9a7e2
to
492091e
Compare
@usingtechnology @swcurran this is ready for another review. |
Signed-off-by: Daniel Bluhm <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
aries_cloudagent.version.__version__
was out of sync with the version listed in the pyproject.toml file. The pyproject.toml file should be the source of truth as it will be used when publishing using poetry. However,__version__
is used in code for some operations. To ensure that the pyproject file and the__version__
can't get out of sync,aries_cloudagent.version
will now be read from the package metadata.Update: I was previously trying to read from pyproject.toml. This was a naive approach that wouldn't have worked after installing ACA-Py as a pip package. The better solution is the one I've switched to, just reading the package metadata.