Closed crazybmanp closed 7 years ago
each cog will have its own version (implemented on cog) and RyuZU will have a version embedded in BotMain.
The version will be in the format of [Major].[Minor].[Build]
In [1]: import git
In [2]: repo = git.Repo(search_parent_directories=True)
In [3]: sha = repo.head.object.hexsha
In [4]: short_sha = repo.git.rev_parse(sha, short=1)
In [5]: short_sha
Out[5]: u'd5afd'
possible code to aquire build number
looks like we could just use https://blog.mozilla.org/warner/2012/01/31/version-string-management-in-python-introducing-python-versioneer/
Two options currently