Skip to content

Commit

Permalink
Merge pull request #607 from zen-xu/remove-importlib-metadata
Browse files Browse the repository at this point in the history
No need to rely on the backport `importlib_metadata` for version retrieval anymore
  • Loading branch information
wangxiaoying authored Apr 17, 2024
2 parents 15fe40d + d9fea75 commit 113473f
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 113473f

Please sign in to comment.