Use pkg_resources to read version
This commit is contained in:
parent
a7fdc9f436
commit
73b5f9bcc5
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
|
import pkg_resources
|
||||||
|
|
||||||
from mopidy import config, ext
|
from mopidy import config, ext
|
||||||
|
|
||||||
__version__ = "0.2.1"
|
__version__ = pkg_resources.get_distribution("Mopidy-Subidy").version
|
||||||
|
|
||||||
|
|
||||||
class SubidyExtension(ext.Extension):
|
class SubidyExtension(ext.Extension):
|
||||||
|
|
Loading…
Add table
Reference in a new issue