fix internal package version
This commit is contained in:
parent
8501f9fe08
commit
03a534f344
3 changed files with 9 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
project = 'ytmusicapi'
|
project = 'ytmusicapi'
|
||||||
copyright = '2020, sigma67'
|
copyright = '2022, sigma67'
|
||||||
author = 'sigma67'
|
author = 'sigma67'
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
from ytmusicapi._version import __version__
|
|
||||||
from ytmusicapi.ytmusic import YTMusic
|
from ytmusicapi.ytmusic import YTMusic
|
||||||
|
from importlib.metadata import version, PackageNotFoundError
|
||||||
|
|
||||||
__copyright__ = 'Copyright 2020 sigma67'
|
try:
|
||||||
|
__version__ = version("ytmusicapi")
|
||||||
|
except PackageNotFoundError:
|
||||||
|
# package is not installed
|
||||||
|
pass
|
||||||
|
|
||||||
|
__copyright__ = 'Copyright 2022 sigma67'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__title__ = 'ytmusicapi'
|
__title__ = 'ytmusicapi'
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
__version__ = "0.22.0"
|
|
||||||
Loading…
Reference in a new issue