Skip to content

Commit

Permalink
Add proper __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Aug 13, 2023
1 parent a28f406 commit e1576a7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fastapi_restful/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import importlib.metadata

from .cbv_base import Api, Resource, set_responses, take_init_parameters

__version__ = "0.4.3"
try:
__version__ = importlib.metadata.version(__name__)
except Exception as e:
warnings.warn(f"Could not determine version of {__name__}", stacklevel=1)
warnings.warn(str(e), stacklevel=1)
__version__ = "unknown"


__all__ = [
"Api",
Expand Down

0 comments on commit e1576a7

Please sign in to comment.