Skip to content

Commit e583511

Browse files
authored
Merge pull request #14 from pyexcel/dev
release 0.6.2
2 parents 03b87d5 + 2635298 commit e583511

20 files changed

+252
-228
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Set up Python
1212
uses: actions/setup-python@v1
1313
with:
14-
python-version: 3.8
14+
python-version: 3.11
1515
- name: lint
1616
run: |
1717
pip --use-deprecated=legacy-resolver install flake8

.github/workflows/moban-update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
- name: Set up Python
1313
uses: actions/setup-python@v1
1414
with:
15-
python-version: '3.7'
15+
python-version: '3.11'
1616
- name: check changes
1717
run: |
1818
pip install markupsafe==2.0.1
19-
pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
19+
pip install ruamel.yaml moban gitfs2 pypifs moban-jinja2-github moban-ansible
2020
moban
2121
git status
2222
git diff --exit-code

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: [Ubuntu]
14-
python_version: ["3.9.16"]
14+
python_version: ["3.9.24"]
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
pip --use-deprecated=legacy-resolver install -r requirements.txt
2727
pip --use-deprecated=legacy-resolver install -r tests/requirements.txt
28+
pip --use-deprecated=legacy-resolver install -r rnd_requirements.txt
2829
- name: test
2930
run: |
3031
pip freeze

.moban.d/custom_readme.rst.jj2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Otherwise, this library works OK with lxml 3.4.4 or above.
4444
>>> data = OrderedDict()
4545
>>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
4646
>>> data.update({"Sheet 2": [[7, 8, 9], [10, 11, 12]]})
47-
>>> io = StringIO()
47+
>>> io = BytesIO()
4848
>>> save_data(io, data)
4949
>>> unused = io.seek(0)
5050
>>> # do something with the io

CHANGELOG.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
Change log
22
================================================================================
33

4+
0.6.2 - 31.10.2025
5+
--------------------------------------------------------------------------------
6+
7+
**Fixed**
8+
9+
#. Fix freeze when parsing certain corrupt XLSX files
10+
#. Fix reading of files with more than 26 columns
11+
12+
**Updated**
13+
14+
#. Migrated to pytest
15+
416
0.6.1 - 11.11.2024
517
--------------------------------------------------------------------------------
618

719
**Updated**
820

9-
#. #9: Potential fix for incorrect reading of data with empty cells when used
10-
with pyexcel
21+
#. `#9 <https://github.com/pyexcel/pyexcel-xlsxr/issues/9>`_: Potential fix for
22+
incorrect reading of data with empty cells when used with pyexcel
1123

1224
0.6.0 - 10.10.2020
1325
--------------------------------------------------------------------------------

CONTRIBUTORS.rst

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

22

3-
1 contributors
3+
2 contributors
44
================================================================================
55

66
In alphabetical order:
77

88
* `Mark Skelton <https://github.com/mtskelton>`_
9+
* `Pierre-Louis Peeters <https://github.com/PLPeeters>`_

README.rst

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ pyexcel-xlsxr - Let you focus on data, instead of xlsx format
1616

1717

1818

19+
.. image:: https://pepy.tech/badge/pyexcel-xlsxr/month
20+
:target: https://pepy.tech/project/pyexcel-xlsxr
1921

2022

2123
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
@@ -47,19 +49,11 @@ Otherwise, this library works OK with lxml 3.4.4 or above.
4749
Support the project
4850
================================================================================
4951

50-
If your company has embedded pyexcel and its components into a revenue generating
51-
product, please support me on github, `patreon <https://www.patreon.com/bePatron?u=5537627>`_
52-
or `bounty source <https://salt.bountysource.com/teams/chfw-pyexcel>`_ to maintain
53-
the project and develop it further.
54-
55-
If you are an individual, you are welcome to support me too and for however long
56-
you feel like. As my backer, you will receive
57-
`early access to pyexcel related contents <https://www.patreon.com/pyexcel/posts>`_.
58-
59-
And your issues will get prioritized if you would like to become my patreon as `pyexcel pro user`.
60-
61-
With your financial support, I will be able to invest
62-
a little bit more time in coding, documentation and writing interesting posts.
52+
If your company uses pyexcel and its components in a revenue-generating product,
53+
please consider supporting the project on GitHub or
54+
`Patreon <https://www.patreon.com/bePatron?u=5537627>`_. Your financial
55+
support will enable me to dedicate more time to coding, improving documentation,
56+
and creating engaging content.
6357

6458

6559
Known constraints
@@ -99,15 +93,8 @@ As a standalone library
9993

10094
>>> import os
10195
>>> import sys
102-
>>> if sys.version_info[0] < 3:
103-
... from StringIO import StringIO
104-
... else:
105-
... from io import BytesIO as StringIO
106-
>>> PY2 = sys.version_info[0] == 2
107-
>>> if PY2 and sys.version_info[1] < 7:
108-
... from ordereddict import OrderedDict
109-
... else:
110-
... from collections import OrderedDict
96+
>>> from io import BytesIO
97+
>>> from collections import OrderedDict
11198

11299

113100
.. testcode::
@@ -141,7 +128,7 @@ Here's the sample code:
141128
>>> data = OrderedDict()
142129
>>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
143130
>>> data.update({"Sheet 2": [[7, 8, 9], [10, 11, 12]]})
144-
>>> io = StringIO()
131+
>>> io = BytesIO()
145132
>>> save_data(io, data)
146133
>>> unused = io.seek(0)
147134
>>> # do something with the io
@@ -317,15 +304,18 @@ and update changelog.yml
317304
.. note::
318305

319306
As to rnd_requirements.txt, usually, it is created when a dependent
320-
library is not released. Once the dependecy is installed
307+
library is not released. Once the dependency is installed
321308
(will be released), the future
322309
version of the dependency in the requirements.txt will be valid.
323310

324311

325312
How to test your contribution
326-
------------------------------
313+
--------------------------------------------------------------------------------
327314

328-
Although `nose` and `doctest` are both used in code testing, it is adviable that unit tests are put in tests. `doctest` is incorporated only to make sure the code examples in documentation remain valid across different development releases.
315+
Although `nose` and `doctest` are both used in code testing, it is advisable
316+
that unit tests are put in tests. `doctest` is incorporated only to make sure
317+
the code examples in documentation remain valid across different development
318+
releases.
329319

330320
On Linux/Unix systems, please launch your tests like this::
331321

changelog.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
name: pyexcel-xlsxr
22
organisation: pyexcel
33
releases:
4+
- changes:
5+
- action: Fixed
6+
details:
7+
- 'Fix freeze when parsing certain corrupt XLSX files'
8+
- 'Fix reading of files with more than 26 columns'
9+
- action: Updated
10+
details:
11+
- 'Migrated to pytest'
12+
date: 31.10.2025
13+
version: 0.6.2
414
- changes:
515
- action: Updated
616
details:
7-
- '#9: Potential fix for incorrect reading of data with empty cells when used with pyexcel '
17+
- '`#9`: Potential fix for incorrect reading of data with empty cells when used with pyexcel '
818
date: 11.11.2024
919
version: 0.6.1
1020
- changes:

lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pip install flake8
2-
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs
2+
flake8 --exclude=.venv,.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs

pyexcel_xlsxr/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""
2-
pyexcel_xlsxr
3-
~~~~~~~~~~~~~~~~~~~
4-
The lower level xlsx file format handler using lxml
5-
:copyright: (c) 2015-2020 by Onni Software Ltd & its contributors
6-
:license: New BSD License
2+
pyexcel_xlsxr
3+
~~~~~~~~~~~~~~~~~~~
4+
The lower level xlsx file format handler using lxml
5+
:copyright: (c) 2015-2020 by Onni Software Ltd & its contributors
6+
:license: New BSD License
77
"""
8+
89
from pyexcel_io.io import get_data as read_data
910
from pyexcel_io.io import isstream
1011
from pyexcel_io.plugins import IOPluginInfoChainV2

0 commit comments

Comments
 (0)