Skip to content

Commit f3901dc

Browse files
committed
fix: optional dependencies
1 parent 4e80e1b commit f3901dc

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

MEFrpLib/__init__.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
from .client_async import AsyncMEFrpClient
2-
from .client_sync import MEFrpClient
1+
try:
2+
from .client_async import AsyncMEFrpClient
3+
except ImportError:
4+
AsyncMEFrpClient = None # type: ignore
5+
6+
try:
7+
from .client_sync import MEFrpClient
8+
except ImportError:
9+
MEFrpClient = None # type: ignore
10+
311
from .exceptions import APIError, AuthError, MEFrpError, NetworkError
412
from .models import *
513

6-
__version__ = "0.1.0"
14+
__version__ = "3.1.0"
715
__all__ = [
816
"MEFrpClient",
917
"AsyncMEFrpClient",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "MEFrpLib"
7-
version = "3.0.0"
7+
version = "3.1.0"
88
description = "ME Frp 5.0 Official Python SDK"
99
readme = "README.md"
1010
requires-python = ">=3.8"

0 commit comments

Comments
 (0)