mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Add __version_info__ derived from __version__
This might be tuple of more than two values (major and minor version) if commits have been made after a release.
This commit is contained in:
parent
a113c28ea1
commit
fc47dacbbd
2 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from datasette.version import __version_info__, __version__ # noqa
|
||||
from .hookspecs import hookimpl # noqa
|
||||
from .hookspecs import hookspec # noqa
|
||||
|
||||
from ._version import get_versions
|
||||
__version__ = get_versions()['version']
|
||||
del get_versions
|
||||
__version_info__ = tuple(__version__.split("."))
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
__version_info__ = (0, 22)
|
||||
__version__ = '.'.join(map(str, __version_info__))
|
||||
Loading…
Add table
Add a link
Reference in a new issue