Skip to content

Commit f01eebf

Browse files
committed
first step towards pyexcel-io 0.2.0
1 parent e8d70d2 commit f01eebf

File tree

6 files changed

+12
-16
lines changed

6 files changed

+12
-16
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ python:
1212
- 3.5
1313
- pypy
1414
install:
15-
- rm applymoban.py
1615
- pip install -r requirements.txt
1716
- pip install -r tests/requirements.txt
1817
script:

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ License
211211

212212
New BSD License
213213

214+
214215
.. testcode::
215216
:hide:
216217

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
# built documents.
4646
#
4747
# The short X.Y version.
48-
version = '0.1.0'
48+
version = '0.2.0'
4949
# The full version, including alpha/beta/rc tags.
50-
release = '0.1.0'
50+
release = '0.2.0'
5151

5252
# The language for content autogenerated by Sphinx. Refer to documentation
5353
# for a list of supported languages.

moban.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-xlsx"
33
nick_name: xlsx
4-
version: 0.1.0
4+
version: 0.2.0
55
file_type: xlsx
66
dependencies:
77
- openpyxl==2.2.2

pyexcel_xlsx/__init__.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
BookReader,
1515
SheetWriter,
1616
BookWriter,
17-
READERS,
18-
WRITERS,
1917
isstream,
2018
get_data as read_data,
2119
store_data as write_data
@@ -142,14 +140,12 @@ def close(self):
142140
self.native_book.save(filename=self.file)
143141

144142

145-
READERS.update({
146-
"xlsm": XLSXBook,
147-
"xlsx": XLSXBook
148-
})
149-
WRITERS.update({
150-
"xlsm": XLSXWriter,
151-
"xlsx": XLSXWriter
152-
})
143+
def extend_pyexcel(ReaderFactory, WriterFactory):
144+
ReaderFactory.add_factory("xlsm", XLSXBook)
145+
ReaderFactory.add_factory("xlsx", XLSXBook)
146+
WriterFactory.add_factory("xlsm", XLSXWriter)
147+
WriterFactory.add_factory("xlsx", XLSXWriter)
148+
153149

154150
def save_data(afile, data, file_type=None, **keywords):
155151
if isstream(afile) and file_type is None:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
setup(
2020
name='pyexcel-xlsx',
21-
author='C. W.',
22-
version='0.1.0',
21+
author='C.W.',
22+
version='0.2.0',
2323
author_email='wangc_2011 (at) hotmail.com',
2424
url='https://github.com/pyexcel/pyexcel-xlsx',
2525
description='A wrapper library to read, manipulate and write data in xlsx and xlsm format',

0 commit comments

Comments
 (0)