feat(api): find version using importlib.metadata

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2332>
This commit is contained in:
jo 2023-01-21 00:45:17 +01:00 committed by Marge
commit 9bf0367372
3 changed files with 10 additions and 7 deletions

5
api/tests/test_init.py Normal file
View file

@ -0,0 +1,5 @@
def test_version():
from funkwhale_api import __version__, version
assert isinstance(version, str)
assert version == __version__