Skip to content

Commit c6f5bdd

Browse files
authored
Merge pull request #55 from pyexcel/dev
0.6.1 release
2 parents 7922408 + b8be00a commit c6f5bdd

28 files changed

+181
-138
lines changed

Diff for: .github/PULL_REQUEST_TEMPLATE.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ With your PR, here is a check list:
44
- [ ] Has all code lines tested?
55
- [ ] Has `make format` been run?
66
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
7-
- [ ] Passes all Travis CI builds
87
- [ ] Has fair amount of documentation if your change is complex
98
- [ ] Agree on NEW BSD License for your contribution

Diff for: .github/workflows/lint.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
name: lint code
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: 3.11
15+
- name: lint
16+
run: |
17+
pip --use-deprecated=legacy-resolver install flake8
18+
pip --use-deprecated=legacy-resolver install -r tests/requirements.txt
19+
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long .
20+
python setup.py checkdocs

Diff for: .github/workflows/moban-update.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ jobs:
88
- uses: actions/checkout@v2
99
with:
1010
ref: ${{ github.head_ref }}
11+
token: ${{ secrets.PAT }}
1112
- name: Set up Python
1213
uses: actions/setup-python@v1
1314
with:
14-
python-version: '3.7'
15+
python-version: '3.11'
1516
- name: check changes
1617
run: |
17-
pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
18+
pip install markupsafe==2.0.1
19+
pip install ruamel.yaml moban gitfs2 pypifs moban-jinja2-github moban-ansible
1820
moban
1921
git status
2022
git diff --exit-code
2123
- name: Auto-commit
2224
if: failure()
23-
uses: docker://cdssnc/auto-commit-github-action
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
uses: stefanzweifel/git-auto-commit-action@v4
2626
with:
27-
args: >-
27+
commit_message: >-
2828
This is an auto-commit, updating project meta data,
2929
such as changelog.rst, contributors.rst

Diff for: .github/workflows/pythonpublish.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ on:
55
types: [created]
66

77
jobs:
8-
deploy:
8+
pypi-publish:
9+
name: upload release to PyPI
910
runs-on: ubuntu-latest
11+
# Specifying a GitHub environment is optional, but strongly encouraged
12+
environment: pypi
13+
permissions:
14+
# IMPORTANT: this permission is mandatory for trusted publishing
15+
id-token: write
1016
steps:
17+
# retrieve your distributions here
1118
- uses: actions/checkout@v1
1219
- name: Set up Python
1320
uses: actions/setup-python@v1
@@ -16,11 +23,9 @@ jobs:
1623
- name: Install dependencies
1724
run: |
1825
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine
20-
- name: Build and publish
21-
env:
22-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26+
pip install setuptools wheel
27+
- name: Build
2428
run: |
2529
python setup.py sdist bdist_wheel
26-
twine upload dist/*
30+
- name: Publish package distributions to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1

Diff for: .github/workflows/tests.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run unit tests on Windows, Ubuntu and Mac
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
test:
8+
name: ${{ matrix.os }} / ${{ matrix.python_version }}
9+
runs-on: ${{ matrix.os }}-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [Ubuntu]
14+
python_version: ["3.9.16"]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python_version }}
22+
architecture: x64
23+
24+
- name: install
25+
run: |
26+
pip --use-deprecated=legacy-resolver install -r requirements.txt
27+
pip --use-deprecated=legacy-resolver install -r tests/requirements.txt
28+
- name: test
29+
run: |
30+
pip freeze
31+
nosetests --verbosity=3 --with-coverage --cover-package pyexcel_xlsx --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xlsx
32+
- name: Upload coverage
33+
uses: codecov/codecov-action@v1
34+
with:
35+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

Diff for: .moban.d/custom_travis.yml.jj2

-8
This file was deleted.

Diff for: .moban.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ targets:
66
- README.rst: custom_README.rst.jj2
77
- setup.py: custom_setup.py.jj2
88
- "docs/source/conf.py": "docs/source/conf.py.jj2"
9-
- .travis.yml: custom_travis.yml.jj2
109
- MANIFEST.in: MANIFEST.in.jj2
1110
- .gitignore: gitignore.jj2
1211
- "tests/requirements.txt": "tests/requirements.txt"

Diff for: .readthedocs.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
13+
# Build documentation in the docs/ directory with Sphinx
14+
sphinx:
15+
configuration: docs/source/conf.py
16+
17+
# Optionally build your docs in additional formats such as PDF
18+
formats:
19+
- pdf
20+
21+
python:

Diff for: .travis.yml

-43
This file was deleted.

Diff for: CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Change log
22
================================================================================
33

4+
0.6.1 - 10.11.2024
5+
--------------------------------------------------------------------------------
6+
7+
**Updated**
8+
9+
#. Compatability with openpyxl 3.1.0 and later
10+
411
0.6.0 - 10.10.2020
512
--------------------------------------------------------------------------------
613

Diff for: CONTRIBUTORS.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11

22

3-
3 contributors
3+
5 contributors
44
================================================================================
55

66
In alphabetical order:
77

88
* `Benoit Pierre <https://github.com/benoit-pierre>`_
9+
* `Chun-Sheng, Li <https://github.com/peter279k>`_
10+
* `Craig Anderson <https://github.com/craiga>`_
911
* `John Vandenberg <https://github.com/jayvdb>`_
1012
* `Stephen J. Fuhry <https://github.com/fuhrysteve>`_

Diff for: LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015-2020 by Onni Software Ltd. and its contributors
1+
Copyright (c) 2015-2022 by Onni Software Ltd. and its contributors
22
All rights reserved.
33

44
Redistribution and use in source and binary forms of the software as well
@@ -13,7 +13,7 @@ that the following conditions are met:
1313
and/or other materials provided with the distribution.
1414

1515
* Neither the name of 'pyexcel-xlsx' nor the names of the contributors
16-
may not be used to endorse or promote products derived from this software
16+
may be used to endorse or promote products derived from this software
1717
without specific prior written permission.
1818

1919
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND

Diff for: README.rst

+18-22
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ pyexcel-xlsx - Let you focus on data, instead of xlsx format
55
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png
66
:target: https://www.patreon.com/chfw
77

8-
.. image:: https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg
8+
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel-mobans/master/images/awesome-badge.svg
99
:target: https://awesome-python.com/#specific-formats-processing
1010

11-
.. image:: https://travis-ci.org/pyexcel/pyexcel-xlsx.svg?branch=master
12-
:target: http://travis-ci.org/pyexcel/pyexcel-xlsx
13-
1411
.. image:: https://codecov.io/gh/pyexcel/pyexcel-xlsx/branch/master/graph/badge.svg
1512
:target: https://codecov.io/gh/pyexcel/pyexcel-xlsx
1613

@@ -20,8 +17,9 @@ pyexcel-xlsx - Let you focus on data, instead of xlsx format
2017
.. image:: https://anaconda.org/conda-forge/pyexcel-xlsx/badges/version.svg
2118
:target: https://anaconda.org/conda-forge/pyexcel-xlsx
2219

20+
2321
.. image:: https://pepy.tech/badge/pyexcel-xlsx/month
24-
:target: https://pepy.tech/project/pyexcel-xlsx/month
22+
:target: https://pepy.tech/project/pyexcel-xlsx
2523

2624
.. image:: https://anaconda.org/conda-forge/pyexcel-xlsx/badges/downloads.svg
2725
:target: https://anaconda.org/conda-forge/pyexcel-xlsx
@@ -48,25 +46,20 @@ Support the project
4846
================================================================================
4947

5048
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`.
49+
product, please support me on github, or `patreon <https://www.patreon.com/bePatron?u=5537627>`_
50+
maintain the project and develop it further.
6051

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+
With your financial support, I will be able to invest a little bit more time in coding,
53+
documentation and writing interesting posts.
6354

6455

6556
Known constraints
6657
==================
6758

6859
Fonts, colors and charts are not supported.
6960

61+
Nor to read password protected xls, xlsx and ods files.
62+
7063
Installation
7164
================================================================================
7265

@@ -338,26 +331,29 @@ Then install relevant development requirements:
338331
#. pip install -r tests/requirements.txt
339332

340333
Once you have finished your changes, please provide test case(s), relevant documentation
341-
and update CHANGELOG.rst.
334+
and update changelog.yml
342335

343336
.. note::
344337

345338
As to rnd_requirements.txt, usually, it is created when a dependent
346-
library is not released. Once the dependecy is installed
339+
library is not released. Once the dependency is installed
347340
(will be released), the future
348341
version of the dependency in the requirements.txt will be valid.
349342

350343

351344
How to test your contribution
352-
------------------------------
345+
--------------------------------------------------------------------------------
353346

354-
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.
347+
Although `nose` and `doctest` are both used in code testing, it is advisable
348+
that unit tests are put in tests. `doctest` is incorporated only to make sure
349+
the code examples in documentation remain valid across different development
350+
releases.
355351

356352
On Linux/Unix systems, please launch your tests like this::
357353

358354
$ make
359355

360-
On Windows systems, please issue this command::
356+
On Windows, please issue this command::
361357

362358
> test.bat
363359

@@ -369,7 +365,7 @@ Please run::
369365

370366
$ make format
371367

372-
so as to beautify your code otherwise travis-ci may fail your unit test.
368+
so as to beautify your code otherwise your build may fail your unit test.
373369

374370

375371

Diff for: changelog.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: pyexcel-xlsx
22
organisation: pyexcel
33
releases:
4+
- changes:
5+
- action: Updated
6+
details:
7+
- 'Compatability with openpyxl 3.1.0 and later'
8+
date: 10.11.2024
9+
version: 0.6.1
410
- changes:
511
- action: Updated
612
details:

0 commit comments

Comments
 (0)