Skip to content

Commit fe1c6d7

Browse files
committed
support pyexcel-text mimetypes
1 parent 8abbb99 commit fe1c6d7

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ New BSD License
9696
Dependencies
9797
============
9898

99-
* pyexcel >= 0.1.2
99+
* pyexcel >= 0.1.7

pyexcel_webio/__init__.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
:license: New BSD License
99
"""
1010
import pyexcel as pe
11-
import sys
12-
PY2 = sys.version_info[0] == 2
13-
if PY2:
14-
from StringIO import StringIO as BytesIO
15-
else:
16-
from io import BytesIO
1711

1812

1913
FILE_TYPE_MIME_TABLE = {
@@ -24,7 +18,17 @@
2418
"ods": "application/vnd.oasis.opendocument.spreadsheet",
2519
"xls": "application/vnd.ms-excel",
2620
"xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
27-
"xlsm": "application/vnd.ms-excel.sheet.macroenabled.12"
21+
"xlsm": "application/vnd.ms-excel.sheet.macroenabled.12",
22+
"json": "application/json",
23+
"plain": "text/plain",
24+
"simple": "text/plain",
25+
"grid": "text/plain",
26+
"pipe": "text/plain",
27+
"orgtbl": "text/plain",
28+
"rst": "text/plain",
29+
"mediawiki": "text/plain",
30+
"latex": "application/x-latex",
31+
"latex_booktabs": "application/x-latex"
2832
}
2933

3034

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
README_txt = readme.read()
1010

1111
dependencies = [
12-
'pyexcel>=0.1.5'
12+
'pyexcel>=0.1.7'
1313
]
1414

1515
setup(
@@ -26,7 +26,7 @@
2626
zip_safe=False,
2727
tests_require=['nose'],
2828
keywords=['API', 'pyexcel', 'Excel', 'HTTP'],
29-
license='GNU GPLv3 or BSD',
29+
license='BSD',
3030
classifiers=[
3131
'Development Status :: 3 - Alpha',
3232
'Environment :: Web Environment',

0 commit comments

Comments
 (0)