Skip to content

Commit 3132e87

Browse files
committed
prepare for version 0.2.3 release
1 parent 6b68313 commit 3132e87

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ pass on "library" option to get_data and save_data.
133133

134134
plaincsv
135135
pagination
136+
renderer
136137
extendedcsv
137138
csvz
138139
sqlalchemy

pyexcel_io.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extra_dependencies:
99
- xls:
1010
- pyexcel-xls>=0.2.0
1111
- xlsx:
12-
- pyexcel-xlsx>=0.1.0
12+
- pyexcel-xlsx>=0.2.0
1313
- ods:
14-
- pyexcel-ods3>=0.1.0
14+
- pyexcel-ods3>=0.2.0
1515
description: A python library to read and write structured data in csv, zipped csv format and to/from databases

pyexcel_io/utils.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,19 @@
2828
}
2929

3030

31+
def _index_filter(current_index, start, limit=-1):
32+
out_range = constants.SKIP_DATA
33+
if current_index >= start:
34+
out_range = constants.TAKE_DATA
35+
if limit > 0 and out_range == constants.TAKE_DATA:
36+
if current_index >= (start + limit):
37+
out_range = constants.STOP_ITERATION
38+
return out_range
39+
40+
3141
def from_query_sets(column_names, query_sets,
3242
row_renderer=None,
33-
skip_row_func=None, start_row=0, row_limit=-1):
43+
skip_row_func=_index_filter, start_row=0, row_limit=-1):
3444
"""
3545
Convert query sets into an array
3646
"""
@@ -116,13 +126,3 @@ def resolve_missing_extensions(extension, available_list):
116126
raise NotImplementedError(message)
117127
else:
118128
raise NotImplementedError()
119-
120-
121-
def _index_filter(current_index, start, limit=-1):
122-
out_range = constants.SKIP_DATA
123-
if current_index >= start:
124-
out_range = constants.TAKE_DATA
125-
if limit > 0 and out_range == constants.TAKE_DATA:
126-
if current_index >= (start + limit):
127-
out_range = constants.STOP_ITERATION
128-
return out_range

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
5555
EXTRAS_REQUIRE = {
5656
'xls': ['pyexcel-xls>=0.2.0'],
57-
'xlsx': ['pyexcel-xlsx>=0.1.0'],
58-
'ods': ['pyexcel-ods3>=0.1.0'],
57+
'xlsx': ['pyexcel-xlsx>=0.2.0'],
58+
'ods': ['pyexcel-ods3>=0.2.0'],
5959
}
6060

6161

0 commit comments

Comments
 (0)