Skip to content

Commit c6e6b97

Browse files
committed
🤝 update project meta data
1 parent b553d59 commit c6e6b97

14 files changed

+67
-37
lines changed

.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

.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

CONTRIBUTORS.rst

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
No contributors yet
4+
=======================
5+
6+
* Your github link will be listed here after your PR is merged

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include README.rst
22
include LICENSE
33
include CHANGELOG.rst
4+
include CONTRIBUTORS.rst
45
recursive-include tests *
56
recursive-include docs *

Makefile

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
all: test
22

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

6-
document:
7-
bash document.sh
6+
install_test:
7+
pip install -r tests/requirements.txt
88

9-
spelling:
10-
sphinx-build -b spelling docs/source/ docs/build/spelling
9+
lint:
10+
bash lint.sh
1111

1212
format:
13-
isort -y $(find pyexcel_pdfr -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
14-
black -l 79 pyexcel_pdfr
15-
black -l 79 tests
13+
bash format.sh
1614

17-
lint:
18-
bash lint.sh
15+
git-diff-check:
16+
git diff --exit-code

README.rst

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

128128

129-
And make sure you would have run moban command
130-
---------------------------------------------------------
131-
132-
Additional steps are required:
133-
134-
#. pip install moban
135-
#. make your changes in `.moban.d` directory, then issue command `moban`
136-
#. moban
137-
138-
otherwise travis-ci may also fail your unit test.
139-
140-
What is .moban.d
141-
---------------------------------
142-
143-
`.moban.d` stores the specific meta data for the library.
144-
145129

146130

147131
License

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
project = 'pyexcel-pdfr'
2525
copyright = '2015-2019 Onni Software Ltd.'
26-
author = 'C.W.'
26+
author = 'chfw'
2727
# The short X.Y version
2828
version = '0.5.0-rc1'
2929
# The full version, including alpha/beta/rc tags

format.sh

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

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

pyexcel-pdfr.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ release: "0.5.0-rc1"
77
file_type: "pdf"
88
dependencies:
99
- pdftables
10+
- pyexcel-io==0.5.20
11+
test_dependencies:
12+
- pyexcel
13+
- pyexcel-io==0.5.20
1014
description: "Read tables in pdf files as tabular data"

pyexcel_pdfr/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__version__ = '0.5.0-rc1'
2-
__author__ = 'C.W.'
2+
__author__ = 'chfw'

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pdftables
2+
pyexcel-io==0.5.20

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
3232

3333
NAME = "pyexcel-pdfr"
34-
AUTHOR = "C.W."
34+
AUTHOR = "chfw"
3535
VERSION = "0.5.0-rc1"
3636
3737
LICENSE = "New BSD"
@@ -63,6 +63,7 @@
6363

6464
INSTALL_REQUIRES = [
6565
"pdftables",
66+
"pyexcel-io==0.5.20",
6667
]
6768
SETUP_COMMANDS = {}
6869

tests/requirements.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ mock;python_version<"3"
33
codecov
44
coverage
55
flake8
6+
black
7+
isort
8+
collective.checkdocs
9+
pygments
10+
moban
11+
moban_jinja2_github
612
pyexcel
7-
pyexcel-xls
13+
pyexcel-io==0.5.20

0 commit comments

Comments
 (0)