mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Move version info back to separate module
This commit is contained in:
parent
fc47dacbbd
commit
49f317752c
2 changed files with 7 additions and 5 deletions
|
|
@ -1,7 +1,3 @@
|
||||||
|
from datasette.version import __version_info__, __version__ # noqa
|
||||||
from .hookspecs import hookimpl # noqa
|
from .hookspecs import hookimpl # noqa
|
||||||
from .hookspecs import hookspec # noqa
|
from .hookspecs import hookspec # noqa
|
||||||
|
|
||||||
from ._version import get_versions
|
|
||||||
__version__ = get_versions()['version']
|
|
||||||
del get_versions
|
|
||||||
__version_info__ = tuple(__version__.split("."))
|
|
||||||
|
|
|
||||||
6
datasette/version.py
Normal file
6
datasette/version.py
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
from ._version import get_versions
|
||||||
|
|
||||||
|
__version__ = get_versions()['version']
|
||||||
|
del get_versions
|
||||||
|
|
||||||
|
__version_info__ = tuple(__version__.split("."))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue