Skip to content

Commit

Permalink
Fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
danlamanna committed Feb 7, 2022
1 parent fe3c87a commit e4a8466
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion isic_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime
from importlib.metadata import PackageNotFoundError, version
import os
import platform
import sys
Expand All @@ -13,7 +14,11 @@
from isic_cli.image import image
from isic_cli.metadata import metadata

__version__ = None
try:
__version__ = version('isic-cli')
except PackageNotFoundError:
# package is not installed
pass


def get_oauth_client():
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'pandas',
'requests',
'retryable-requests',
'rich',
'typer',
],
extras_require={
Expand Down

0 comments on commit e4a8466

Please sign in to comment.