Skip to content

Commit b199660

Browse files
committed
🤝 update project meta data
1 parent 778db19 commit b199660

13 files changed

+65
-48
lines changed

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
With your PR, here is a check list:
22

3-
- [ ] Has Test cases written
4-
- [ ] Has all code lines tested
3+
- [ ] Has test cases written?
4+
- [ ] Has all code lines tested?
55
- [ ] Has `make format` been run?
6-
- [ ] Has `moban` been run?
6+
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
77
- [ ] Passes all Travis CI builds
88
- [ ] Has fair amount of documentation if your change is complex
9-
- [ ] run 'make format' so as to confirm the pyexcel organisation's coding style
10-
- [ ] Please update CHANGELOG.rst
11-
- [ ] Please add yourself to CONTRIBUTORS.rst
129
- [ ] Agree on NEW BSD License for your contribution

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

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on: [push]
2+
3+
jobs:
4+
run_moban:
5+
runs-on: ubuntu-latest
6+
name: synchronize templates via moban
7+
steps:
8+
- uses: actions/checkout@v2
9+
with:
10+
ref: ${{ github.head_ref }}
11+
- name: Set up Python
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: '3.7'
15+
- name: check changes
16+
run: |
17+
pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
18+
moban
19+
git status
20+
git diff --exit-code
21+
- name: Auto-commit
22+
if: failure()
23+
uses: docker://cdssnc/auto-commit-github-action
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
args: >-
28+
This is an auto-commit, updating project meta data,
29+
such as changelog.rst, contributors.rst

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
{%block custom_python_versions%}
44
python:
55
- 3.6
6-
- 3.5
7-
- 3.4
8-
- 3.3
9-
- 2.7
10-
- 2.6
6+
- 3.7
7+
- 3.8
118
{%endblock%}
129

Diff for: .travis.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ notifications:
55
email: false
66
python:
77
- 3.6
8-
- 3.5
9-
- 3.4
10-
- 3.3
11-
- 2.7
12-
- 2.6
8+
- 3.7
9+
- 3.8
1310

1411
stages:
1512
- lint
@@ -31,7 +28,7 @@ stages:
3128
env:
3229
- MINREQ=0
3330
stage: moban
34-
install: pip install moban>=0.0.4 gitfs2 pypifs
31+
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
3532
script:
3633
- moban
3734
- git diff --exit-code

Diff for: CONTRIBUTORS.rst

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
Contributors
2-
================
31

4-
Author is in setup.py file and module __author__. Hence please find the
5-
contributors here.
62

7-
In alphabetic order:
8-
9-
*. `Jona <https://github.com/jonadem>`_
3+
1 contributors
4+
================================================================================
105

6+
In alphabetical order:
117

8+
* `Jona <https://github.com/jonadem>`_

Diff for: Makefile

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
all: test
22

3-
test:
3+
test: lint
44
bash test.sh
55

6+
install_test:
7+
pip install -r tests/requirements.txt
8+
9+
lint:
10+
bash lint.sh
11+
12+
format:
13+
bash format.sh
14+
15+
git-diff-check:
16+
git diff --exit-code

Diff for: README.rst

-16
Original file line numberDiff line numberDiff line change
@@ -334,22 +334,6 @@ Please run::
334334
so as to beautify your code otherwise travis-ci may fail your unit test.
335335

336336

337-
And make sure you would have run moban command
338-
---------------------------------------------------------
339-
340-
Additional steps are required:
341-
342-
#. pip install moban
343-
#. make your changes in `.moban.d` directory, then issue command `moban`
344-
#. moban
345-
346-
otherwise travis-ci may also fail your unit test.
347-
348-
What is .moban.d
349-
---------------------------------
350-
351-
`.moban.d` stores the specific meta data for the library.
352-
353337
Credits
354338
================================================================================
355339

Diff for: format.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
isort $(find pyexcel_odsr -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
2+
black -l 79 pyexcel_odsr
3+
black -l 79 tests

Diff for: lint.sh

+1-1
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
2+
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs

Diff for: pyexcel_odsr.yml renamed to pyexcel-odsr.yml

File renamed without changes.

Diff for: pyexcel_odsr/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Auto generated by moban
22
__version__ = '0.5.2'
3-
__author__ = 'C.W.'
3+
__author__ = 'chfw'

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
2929

3030
NAME = "pyexcel-odsr"
31-
AUTHOR = "C.W."
31+
AUTHOR = "chfw"
3232
VERSION = "0.5.2"
3333
3434
LICENSE = "New BSD"

Diff for: tests/requirements.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ mock;python_version<"3"
33
codecov
44
coverage
55
flake8
6-
psutil
7-
pyexcel
8-
pyexcel-ods
9-
pyexcel-xls
6+
black
7+
isort
8+
collective.checkdocs
9+
pygments
10+
moban
11+
moban_jinja2_github

0 commit comments

Comments
 (0)