Skip to content

Commit 44b3bdc

Browse files
committed
update io interface to 0.0.4
1 parent 2323cb1 commit 44b3bdc

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

pyexcel_xls/__init__.py

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
pyexcel.ext.xls
2+
pyexcel_xls
33
~~~~~~~~~~~~~~~~~~~
44
55
The lower level xls/xlsm file format handler using xlrd/xlwt
@@ -11,7 +11,14 @@
1111
import datetime
1212
import xlrd
1313
from xlwt import Workbook, XFStyle
14-
from pyexcel_io import SheetReader, BookReader, SheetWriter, BookWriter
14+
from pyexcel_io import (
15+
SheetReader,
16+
BookReader,
17+
SheetWriter,
18+
BookWriter,
19+
READERS,
20+
WRITERS
21+
)
1522
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
1623
from ordereddict import OrderedDict
1724
else:
@@ -203,20 +210,15 @@ def close(self):
203210
"""
204211
self.wb.save(self.file)
205212

206-
try:
207-
from pyexcel.io import READERS
208-
from pyexcel.io import WRITERS
209-
210-
READERS.update({
211-
"xls": XLBook,
212-
"xlsm": XLBook,
213-
"xlsx": XLBook
214-
})
215-
WRITERS.update({
216-
"xls": XLWriter
217-
})
218-
except:
219-
# to allow this module to function independently
220-
pass
221-
222-
__VERSION__ = "0.0.6"
213+
214+
READERS.update({
215+
"xls": XLBook,
216+
"xlsm": XLBook,
217+
"xlsx": XLBook
218+
})
219+
WRITERS.update({
220+
"xls": XLWriter
221+
})
222+
223+
224+
__VERSION__ = "0.0.7"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
dependencies = [
1313
'xlrd',
1414
'xlwt-future',
15-
'pyexcel-io>=0.0.3'
15+
'pyexcel-io>=0.0.4'
1616
]
1717
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
1818
dependencies.append('ordereddict')
1919

2020
setup(
2121
name='pyexcel-xls',
2222
author="C. W.",
23-
version='0.0.6',
23+
version='0.0.7',
2424
author_email="[email protected]",
2525
url="https://github.com/chfw/pyexcel-xls",
2626
description='A wrapper library to read, manipulate and write data in xls format. It reads xlsx and xlsm format',

0 commit comments

Comments
 (0)