Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[settings]
line_length=79
known_first_party=pyexcel_io, xlsxwriter
known_third_party=mock,nose
indent=' '
multi_line_output=3
length_sort=1
default_section=FIRSTPARTY
no_lines_before=LOCALFOLDER
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Change log
================================================================================

0.6.1 - 8.10.2020
--------------------------------------------------------------------------------

**Updated**

#. `#9 <https://github.com/pyexcel/pyexcel-xlsxw/issues/9>`_: pyexcel-xlsxw
0.6.0 failed to write to a stream

0.6.0 - 8.10.2020
--------------------------------------------------------------------------------

Expand Down
6 changes: 6 additions & 0 deletions changelog.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: pyexcel-xlsxw
organisation: pyexcel
releases:
- changes:
- action: Updated
details:
- '`#9`: pyexcel-xlsxw 0.6.0 failed to write to a stream'
date: 8.10.2020
version: 0.6.1
- changes:
- action: Updated
details:
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
copyright = '2015-2020 Onni Software Ltd.'
author = 'chfw'
# The short X.Y version
version = '0.6.0'
version = '0.6.1'
# The full version, including alpha/beta/rc tags
release = '0.6.0'
release = '0.6.1'

# -- General configuration ---------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions pyexcel-xlsxw.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
overrides: "pyexcel.yaml"
name: "pyexcel-xlsxw"
nick_name: xlsxw
version: 0.6.0
current_version: 0.6.0
release: 0.6.0
version: 0.6.1
current_version: 0.6.1
release: 0.6.1
file_type: xlsx
dependencies:
- XlsxWriter>=0.9.3
Expand Down
2 changes: 1 addition & 1 deletion pyexcel_xlsxw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
__FILE_TYPE__ = "xlsx"
IOPluginInfoChainV2(__name__).add_a_writer(
relative_plugin_class_path="xlsxw.XLSXWriter",
locations=["file"],
locations=["file", "memory"],
file_types=[__FILE_TYPE__],
stream_type="binary",
)
Expand Down
2 changes: 1 addition & 1 deletion pyexcel_xlsxw/xlsxw.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:license: New BSD License
"""
import xlsxwriter
from pyexcel_io.plugin_api import ISheetWriter, IWriter
from pyexcel_io.plugin_api import IWriter, ISheetWriter


class XLSXSheetWriter(ISheetWriter):
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@

NAME = "pyexcel-xlsxw"
AUTHOR = "chfw"
VERSION = "0.6.0"
VERSION = "0.6.1"
EMAIL = "info@pyexcel.org"
LICENSE = "New BSD"
DESCRIPTION = (
"A wrapper library to write data in xlsx and xlsm format"
)
URL = "https://github.com/pyexcel/pyexcel-xlsxw"
DOWNLOAD_URL = "%s/archive/0.6.0.tar.gz" % URL
DOWNLOAD_URL = "%s/archive/0.6.1.tar.gz" % URL
FILES = ["README.rst", "CHANGELOG.rst"]
KEYWORDS = [
"python",
Expand Down Expand Up @@ -73,8 +73,8 @@
}
# You do not need to read beyond this line
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
GS_COMMAND = ("gs pyexcel-xlsxw v0.6.0 " +
"Find 0.6.0 in changelog for more details")
GS_COMMAND = ("gs pyexcel-xlsxw v0.6.1 " +
"Find 0.6.1 in changelog for more details")
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
"Please install gease to enable it.")
UPLOAD_FAILED_MSG = (
Expand Down
1 change: 1 addition & 0 deletions tests/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os

import pyexcel

from nose.tools import eq_


Expand Down
3 changes: 1 addition & 2 deletions tests/test_bug_fixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
This file keeps all fixes for issues found

"""
import datetime
import os
import datetime
from textwrap import dedent
from unittest import TestCase

import pyexcel as pe

from pyexcel_xlsxw import save_data


Expand Down
2 changes: 1 addition & 1 deletion tests/test_formatters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
import os
import datetime

import pyexcel as pe

Expand Down
3 changes: 2 additions & 1 deletion tests/test_multiple_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import pyexcel
from base import PyexcelMultipleSheetBase

from nose.tools import raises

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

@raises(KeyError)
@raises(ValueError)
def test_load_a_single_sheet4(self):
pyexcel.get_book(file_name=self.testfile, sheet_name="Not exist")

Expand Down
1 change: 1 addition & 0 deletions tests/test_stringio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pyexcel
from base import create_sample_file1

from nose.tools import eq_


Expand Down
3 changes: 1 addition & 2 deletions tests/test_writer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os

from base import PyexcelHatWriterBase, PyexcelWriterBase
from base import PyexcelWriterBase, PyexcelHatWriterBase
from pyexcel_xls import get_data

from pyexcel_xlsxw import xlsxw as xlsx


Expand Down