Skip to content

Commit 5132ca9

Browse files
committed
adjust lazy loading behavior
1 parent 54c87e6 commit 5132ca9

File tree

8 files changed

+29
-22
lines changed

8 files changed

+29
-22
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ python:
66
- pypy
77
- 2.6
88
- 2.7
9-
- pypy3
109
- 3.3
1110
- 3.4
1211
- 3.5

pyexcel_xlsxw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ release: 0.0.1
66
file_type: xlsx
77
dependencies:
88
- XlsxWriter==0.9.3
9-
- pyexcel-io>=0.2.2
9+
- pyexcel-io>=0.3.0
1010
description: A wrapper library to write data in xlsx and xlsm format

pyexcel_xlsxw/__init__.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010
# flake8: noqa
1111
# this line has to be place above all else
1212
# because of dynamic import
13-
_FILE_TYPE = 'xlsx'
14-
__pyexcel_io_plugins__ = [_FILE_TYPE]
13+
__FILE_TYPE__ = 'xlsx'
14+
__META__ = {
15+
'submodule': __FILE_TYPE__,
16+
'file_types': [__FILE_TYPE__],
17+
'stream_type': 'binary'
18+
}
19+
__pyexcel_io_plugins__ = [__META__]
1520

1621

1722
from pyexcel_io.io import isstream, store_data as write_data
@@ -20,5 +25,5 @@
2025
def save_data(afile, data, file_type=None, **keywords):
2126
"""standalone module function for writing module supported file type"""
2227
if isstream(afile) and file_type is None:
23-
file_type = _FILE_TYPE
28+
file_type = __FILE_TYPE__
2429
write_data(afile, data, file_type=file_type, **keywords)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
XlsxWriter==0.9.3
2-
pyexcel-io>=0.2.2
2+
pyexcel-io>=0.3.0

rnd_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
https://github.com/pyexcel/pyexcel/archive/master.zip
2+
https://github.com/pyexcel/pyexcel-io/archive/master.zip
23

setup.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
VERSION = '0.0.2'
1111
EMAIL = 'wangc_2011 (at) hotmail.com'
1212
LICENSE = 'New BSD'
13-
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
1413
DESCRIPTION = (
1514
'A wrapper library to write data in xlsx and xlsm format' +
1615
''
@@ -22,15 +21,6 @@
2221
'xlsx'
2322
]
2423

25-
INSTALL_REQUIRES = [
26-
'XlsxWriter==0.9.3',
27-
'pyexcel-io>=0.2.2',
28-
]
29-
30-
31-
EXTRAS_REQUIRE = {
32-
}
33-
3424
CLASSIFIERS = [
3525
'Topic :: Office/Business',
3626
'Topic :: Utilities',
@@ -46,6 +36,16 @@
4636
'Programming Language :: Python :: Implementation :: PyPy'
4737
]
4838

39+
INSTALL_REQUIRES = [
40+
'XlsxWriter==0.9.3',
41+
'pyexcel-io>=0.3.0',
42+
]
43+
44+
45+
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
46+
EXTRAS_REQUIRE = {
47+
}
48+
4949

5050
def read_files(*files):
5151
"""Read files into setup"""
@@ -91,14 +91,14 @@ def filter_out_test_code(file_handle):
9191
version=VERSION,
9292
author_email=EMAIL,
9393
description=DESCRIPTION,
94-
install_requires=INSTALL_REQUIRES,
94+
long_description=read_files('README.rst', 'CHANGELOG.rst'),
95+
license=LICENSE,
9596
keywords=KEYWORDS,
9697
extras_require=EXTRAS_REQUIRE,
98+
tests_require=['nose'],
99+
install_requires=INSTALL_REQUIRES,
97100
packages=PACKAGES,
98101
include_package_data=True,
99-
long_description=read_files('README.rst', 'CHANGELOG.rst'),
100102
zip_safe=False,
101-
tests_require=['nose'],
102-
license=LICENSE,
103103
classifiers=CLASSIFIERS
104104
)

test.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11

2+
23
pip freeze
3-
nosetests --with-cov --cover-package pyexcel_xlsxw --cover-package tests --with-doctest --doctest-extension=.rst tests README.rst pyexcel_xlsxw && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long
4+
nosetests --with-cov --cover-package pyexcel_xlsxw --cover-package tests --with-doctest --doctest-extension=.rst tests README.rst docs/source pyexcel_xlsxw && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long

test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11

2+
23
pip freeze
3-
nosetests --with-cov --cover-package pyexcel_xlsxw --cover-package tests --with-doctest --doctest-extension=.rst tests README.rst pyexcel_xlsxw && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long
4+
nosetests --with-cov --cover-package pyexcel_xlsxw --cover-package tests --with-doctest --doctest-extension=.rst tests README.rst docs/source pyexcel_xlsxw && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long

0 commit comments

Comments
 (0)