mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
should the Python module's version always match the library version? #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anthrotype on GitHub (Sep 8, 2015).
v0.2.0 has been tagged, but the Python package version as stored in
python/brotlimodule.ccstill says "0.1.0" (see here).This version string is read by the setup.py, and stored in the package metadata upon installing.
I wonder if the Python module's version should also increase every time a Brotli update is tagged, or if language bindings should have their own version numbers, independent from the core library.
WDYT?
@szabadka commented on GitHub (Sep 11, 2015):
I think the Python module's version should refer to the version of the underlying Brotli library, but it seems difficult to keep them in sync automatically. Any ideas would be welcome.
If we would do it manually, we would have to remember to bump the version number right before we tag the release, right? Doing it right after would be too late since everything built from the tagged release would have the wrong version number (as with v0.2.0). I will try to remember doing this going forward.
@anthrotype commented on GitHub (Sep 11, 2015):
here they use a post-commit git hook which automatically adds a new tag whenever the version string is modified.
I don't know if it's worth doing it though.
@szabadka commented on GitHub (Sep 11, 2015):
It is not clear if this would work if the version is updated through merging a pull request. Anyway, let's try to remember updating the version string before release for now and see if that works. The bro.cc does not have a --version flag yet, before we attempt to do this automation, I want to move the BROTLI_VERSION define to a common place and use it from the bro.cc as well.
@anthrotype commented on GitHub (Sep 11, 2015):
yes, that sounds good to me. Thanks.
@szabadka commented on GitHub (Oct 2, 2015):
I created the version.h header in PR #193
Closing this now as the question in the issue was decided.
@anthrotype commented on GitHub (Oct 2, 2015):
thanks!