Skip to content

Commit 3deb0d0

Browse files
committed
📚 update project metadata
1 parent be0613d commit 3deb0d0

File tree

7 files changed

+43
-37
lines changed

7 files changed

+43
-37
lines changed

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
python-version: 3.8
1515
- name: lint
1616
run: |
17-
pip install flake8
18-
pip install -r tests/requirements.txt
17+
pip --use-deprecated=legacy-resolver install flake8
18+
pip --use-deprecated=legacy-resolver install -r tests/requirements.txt
1919
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long .
2020
python setup.py checkdocs

.github/workflows/moban-update.yml

+4-4
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:
1415
python-version: '3.7'
1516
- name: check changes
1617
run: |
18+
pip install markupsafe==2.0.1
1719
pip install 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

.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

.github/workflows/tests.yml

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
name: run_tests
1+
name: Run unit tests on Windows, Ubuntu and Mac
22

33
on: [push, pull_request]
44

55
jobs:
6+
67
test:
8+
name: ${{ matrix.os }} / ${{ matrix.python_version }}
9+
runs-on: ${{ matrix.os }}-latest
710
strategy:
8-
fail-fast: false
9-
matrix:
10-
python-version: [3.6, 3.7, 3.8, 3.9]
11-
os: [macOs-latest, ubuntu-latest, windows-latest]
11+
fail-fast: false
12+
matrix:
13+
os: [Ubuntu]
14+
python_version: ["3.9.16"]
1215

13-
runs-on: ${{ matrix.os }}
14-
name: run tests
1516
steps:
1617
- uses: actions/checkout@v2
1718
- name: Set up Python
18-
uses: actions/setup-python@v1
19+
uses: actions/setup-python@v5
1920
with:
20-
python-version: ${{ matrix.python-version }}
21+
python-version: ${{ matrix.python_version }}
22+
architecture: x64
23+
2124
- name: install
2225
run: |
23-
pip install -r requirements.txt
24-
pip install -r tests/requirements.txt
26+
pip --use-deprecated=legacy-resolver install -r requirements.txt
27+
pip --use-deprecated=legacy-resolver install -r tests/requirements.txt
2528
- name: test
2629
run: |
2730
pip freeze

CONTRIBUTORS.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22

3-
No contributors yet
4-
=======================
3+
1 contributors
4+
================================================================================
55

6-
* Your github link will be listed here after your PR is merged
6+
In alphabetical order:
7+
8+
* `Mark Skelton <https://github.com/mtskelton>`_

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-xlsxr' 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

README.rst

+4-8
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@ pyexcel-xlsxr - Let you focus on data, instead of xlsx format
88
.. 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://github.com/pyexcel/pyexcel-xlsxr/workflows/run_tests/badge.svg
12-
:target: http://github.com/pyexcel/pyexcel-xlsxr/actions
13-
1411
.. image:: https://codecov.io/gh/pyexcel/pyexcel-xlsxr/branch/master/graph/badge.svg
1512
:target: https://codecov.io/gh/pyexcel/pyexcel-xlsxr
1613

1714
.. image:: https://badge.fury.io/py/pyexcel-xlsxr.svg
1815
:target: https://pypi.org/project/pyexcel-xlsxr
1916

2017

21-
.. image:: https://pepy.tech/badge/pyexcel-xlsxr/month
22-
:target: https://pepy.tech/project/pyexcel-xlsxr
18+
2319

2420

2521
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
@@ -316,7 +312,7 @@ Then install relevant development requirements:
316312
#. pip install -r tests/requirements.txt
317313

318314
Once you have finished your changes, please provide test case(s), relevant documentation
319-
and update CHANGELOG.rst.
315+
and update changelog.yml
320316

321317
.. note::
322318

@@ -335,7 +331,7 @@ On Linux/Unix systems, please launch your tests like this::
335331

336332
$ make
337333

338-
On Windows systems, please issue this command::
334+
On Windows, please issue this command::
339335

340336
> test.bat
341337

@@ -347,7 +343,7 @@ Please run::
347343

348344
$ make format
349345

350-
so as to beautify your code otherwise travis-ci may fail your unit test.
346+
so as to beautify your code otherwise your build may fail your unit test.
351347

352348

353349

0 commit comments

Comments
 (0)