Skip to content

Commit

Permalink
No need to rely on the backport importlib_metadata for version retr…
Browse files Browse the repository at this point in the history
…ieval anymore
  • Loading branch information
zen-xu committed Apr 17, 2024
1 parent fa3164c commit d9fea75
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions connectorx-python/connectorx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
from typing import Optional, Tuple, Union, List, Dict, Any

from importlib.metadata import version

from .connectorx import (
read_sql as _read_sql,
partition_sql as _partition_sql,
read_sql2 as _read_sql2,
get_meta as _get_meta,
)

try:
from importlib.metadata import version

__version__ = version(__name__)
except:
try:
from importlib_metadata import version

__version__ = version(__name__)
except:
pass
__version__ = version(__name__)

import os

Expand Down

0 comments on commit d9fea75

Please sign in to comment.