Skip to content

Commit

Permalink
move chardet to optional lib
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Nov 9, 2024
1 parent 5890b72 commit 041cfd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyexcel-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ copyright_year: 2015-2022
moban_command: false
is_on_conda: true
dependencies:
- chardet
- lml>=0.0.4
test_dependencies:
- pyexcel
- pyexcel-xls==0.5.9
- SQLAlchemy
- pyexcel-xlsxw
extra_dependencies:
- chardet
- xls:
- pyexcel-xls>=0.6.0
- xlsx:
Expand Down
6 changes: 5 additions & 1 deletion pyexcel_io/readers/csvz.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
import zipfile
from io import BytesIO

import chardet
try:
import chardet
except ImportError:
print("Please install chardet so as to use csvz")
raise
from pyexcel_io import constants
from pyexcel_io.sheet import NamedContent
from pyexcel_io._compact import StringIO
Expand Down

0 comments on commit 041cfd8

Please sign in to comment.