Skip to content

Commit

Permalink
Use importlib.metadata to get the version number from the installed p…
Browse files Browse the repository at this point in the history
…ackage
  • Loading branch information
wkentaro committed Feb 3, 2024
1 parent 736c564 commit d39573f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gdown/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# flake8: noqa

import importlib.metadata

from . import exceptions
from .cached_download import cached_download
from .cached_download import md5sum
from .download import download
from .download_folder import download_folder
from .extractall import extractall

__author__ = "Kentaro Wada <[email protected]>"
__version__ = "4.7.3"
__version__ = importlib.metadata.version("gdown")
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ test = [
"ruff",
"twine",
"types-requests",
"types-setuptools",
]

[project.urls]
Expand Down

0 comments on commit d39573f

Please sign in to comment.