enable keyword streaming to get_data and use pyexcel-io 0.1.0

This commit is contained in:
chfw 2015-12-18 23:10:35 +00:00
parent ae20c512a9
commit d0c7eae785
7 changed files with 25 additions and 9 deletions

3
MANIFEST.in Normal file
View File

@ -0,0 +1,3 @@
include README.rst
include requirements.txt
include VERSION

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.1.0-dev

View File

@ -15,6 +15,12 @@
import sys
import os
try:
with open(os.path.join("..", "..", "VERSION"), "r") as version:
version_txt = version.read().rstrip()
except:
version_txt = "not_in_sphinx"
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@ -53,9 +59,9 @@ copyright = u'2015, C.W.'
# built documents.
#
# The short X.Y version.
version = '0.0.8'
version = version_txt
# The full version, including alpha/beta/rc tags.
release = '0.0.8'
release = version_txt
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@ -19,7 +19,7 @@ from pyexcel_io import (
READERS,
WRITERS,
isstream,
load_data as read_data,
get_data as read_data,
store_data as write_data
)
PY2 = sys.version_info[0] == 2

View File

@ -1,2 +1,3 @@
pyexcel-io>=0.1.0
xlrd
xlwt-future

View File

@ -9,18 +9,21 @@ import sys
with open("README.rst", 'r') as readme:
README_txt = readme.read()
dependencies = [
'xlrd',
'xlwt-future',
'pyexcel-io>=0.0.4'
]
with open("requirements.txt", 'r') as requirements_txt:
lines = requirements_txt.readlines()
lines = map(lambda x: x.rstrip(), lines)
dependencies = lines
with open("VERSION", "r") as version:
version_txt = version.read().rstrip()
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
dependencies.append('ordereddict')
setup(
name='pyexcel-xls',
author="C. W.",
version='0.0.8',
version=version_txt,
author_email="wangc_2011@hotmail.com",
url="https://github.com/chfw/pyexcel-xls",
description='A wrapper library to read, manipulate and write data in xls format. It reads xlsx and xlsm format',

View File

@ -16,6 +16,8 @@ class TestNativeXLWriter:
writer.close()
reader = xls.XLBook(self.testfile)
content = reader.sheets()
for key in content.keys():
content[key] = list(content[key])
assert content == self.content
def tearDown(self):