Skip to content

Commit 37b706c

Browse files
authored
Merge pull request #11 from pyexcel/dev
release 0.6.1
2 parents 543128f + a85759b commit 37b706c

14 files changed

+42
-17
lines changed

.isort.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[settings]
2+
line_length=79
3+
known_first_party=pyexcel_io, xlsxwriter
4+
known_third_party=mock,nose
5+
indent=' '
6+
multi_line_output=3
7+
length_sort=1
8+
default_section=FIRSTPARTY
9+
no_lines_before=LOCALFOLDER
10+
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change log
22
================================================================================
33

4+
0.6.1 - 10.10.2020
5+
--------------------------------------------------------------------------------
6+
7+
**Fixed**
8+
9+
#. `#9 <https://github.com/pyexcel/pyexcel-xlsxw/issues/9>`_: pyexcel-xlsxw
10+
0.6.0 failed to write to a stream
11+
412
0.6.0 - 8.10.2020
513
--------------------------------------------------------------------------------
614

changelog.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: pyexcel-xlsxw
22
organisation: pyexcel
33
releases:
4+
- changes:
5+
- action: Fixed
6+
details:
7+
- '`#9`: pyexcel-xlsxw 0.6.0 failed to write to a stream'
8+
date: 10.10.2020
9+
version: 0.6.1
410
- changes:
511
- action: Updated
612
details:

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
copyright = '2015-2020 Onni Software Ltd.'
2626
author = 'chfw'
2727
# The short X.Y version
28-
version = '0.6.0'
28+
version = '0.6.1'
2929
# The full version, including alpha/beta/rc tags
30-
release = '0.6.0'
30+
release = '0.6.1'
3131

3232
# -- General configuration ---------------------------------------------------
3333

pyexcel-xlsxw.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-xlsxw"
33
nick_name: xlsxw
4-
version: 0.6.0
5-
current_version: 0.6.0
6-
release: 0.6.0
4+
version: 0.6.1
5+
current_version: 0.6.1
6+
release: 0.6.1
77
file_type: xlsx
88
dependencies:
99
- XlsxWriter>=0.9.3

pyexcel_xlsxw/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
__FILE_TYPE__ = "xlsx"
2020
IOPluginInfoChainV2(__name__).add_a_writer(
2121
relative_plugin_class_path="xlsxw.XLSXWriter",
22-
locations=["file"],
22+
locations=["file", "memory"],
2323
file_types=[__FILE_TYPE__],
2424
stream_type="binary",
2525
)

pyexcel_xlsxw/xlsxw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:license: New BSD License
99
"""
1010
import xlsxwriter
11-
from pyexcel_io.plugin_api import ISheetWriter, IWriter
11+
from pyexcel_io.plugin_api import IWriter, ISheetWriter
1212

1313

1414
class XLSXSheetWriter(ISheetWriter):

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929

3030
NAME = "pyexcel-xlsxw"
3131
AUTHOR = "chfw"
32-
VERSION = "0.6.0"
32+
VERSION = "0.6.1"
3333
3434
LICENSE = "New BSD"
3535
DESCRIPTION = (
3636
"A wrapper library to write data in xlsx and xlsm format"
3737
)
3838
URL = "https://github.com/pyexcel/pyexcel-xlsxw"
39-
DOWNLOAD_URL = "%s/archive/0.6.0.tar.gz" % URL
39+
DOWNLOAD_URL = "%s/archive/0.6.1.tar.gz" % URL
4040
FILES = ["README.rst", "CHANGELOG.rst"]
4141
KEYWORDS = [
4242
"python",
@@ -73,8 +73,8 @@
7373
}
7474
# You do not need to read beyond this line
7575
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
76-
GS_COMMAND = ("gs pyexcel-xlsxw v0.6.0 " +
77-
"Find 0.6.0 in changelog for more details")
76+
GS_COMMAND = ("gs pyexcel-xlsxw v0.6.1 " +
77+
"Find 0.6.1 in changelog for more details")
7878
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
7979
"Please install gease to enable it.")
8080
UPLOAD_FAILED_MSG = (

tests/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22

33
import pyexcel
4+
45
from nose.tools import eq_
56

67

tests/test_bug_fixes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
This file keeps all fixes for issues found
44
55
"""
6-
import datetime
76
import os
7+
import datetime
88
from textwrap import dedent
99
from unittest import TestCase
1010

1111
import pyexcel as pe
12-
1312
from pyexcel_xlsxw import save_data
1413

1514

tests/test_formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import datetime
21
import os
2+
import datetime
33

44
import pyexcel as pe
55

tests/test_multiple_sheets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import pyexcel
55
from base import PyexcelMultipleSheetBase
6+
67
from nose.tools import raises
78

89
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
@@ -60,7 +61,7 @@ def test_load_a_single_sheet2(self):
6061
def test_load_a_single_sheet3(self):
6162
pyexcel.get_book(file_name=self.testfile, sheet_index=10000)
6263

63-
@raises(KeyError)
64+
@raises(ValueError)
6465
def test_load_a_single_sheet4(self):
6566
pyexcel.get_book(file_name=self.testfile, sheet_name="Not exist")
6667

tests/test_stringio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import pyexcel
44
from base import create_sample_file1
5+
56
from nose.tools import eq_
67

78

tests/test_writer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
22

3-
from base import PyexcelHatWriterBase, PyexcelWriterBase
3+
from base import PyexcelWriterBase, PyexcelHatWriterBase
44
from pyexcel_xls import get_data
5-
65
from pyexcel_xlsxw import xlsxw as xlsx
76

87

0 commit comments

Comments
 (0)