Skip to content

Commit

Permalink
Make msgspec and ormsgpack optional
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Oct 14, 2024
1 parent 69d67fd commit 6013e8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ classifiers = [
dependencies = [
"msgpack>=1",
"bitarray",
"msgspec",
]

[project.optional-dependencies]
Expand All @@ -40,6 +39,12 @@ dev = [
numpy = [
"numpy",
]
msgspec = [
"msgspec",
]
ormsgpack = [
"ormsgpack",
]

[project.urls]
"Homepage" = "https://github.com/TLCFEM/msglc"
Expand Down
2 changes: 1 addition & 1 deletion src/msglc/unpacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ def decode(self, data):
return ormsgpack.unpackb(data)

except ImportError:
pass
OrmsgpackUnpacker = MsgpackUnpacker

0 comments on commit 6013e8a

Please sign in to comment.