Skip to content

Commit 8cd5f37

Browse files
authored
New style reader (#1)
* 🎉 new style io * 📚 update readme * 🤝 update project meta data * 💄 update coding style * 📚 update change log and version. 🔥 remove builds lower than python 3.6 * 🔥 remove unwanted matrix
1 parent 2855e37 commit 8cd5f37

24 files changed

+251
-128
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 6 deletions
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

Lines changed: 29 additions & 0 deletions
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
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
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 }}
24+
run: |
25+
python setup.py sdist bdist_wheel
26+
twine upload dist/*

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,3 +540,7 @@ cscope.files
540540
cscope.out
541541
cscope.in.out
542542
cscope.po.out
543+
544+
545+
# remove moban hash dictionary
546+
.moban.hashes

.isort.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[settings]
2+
line_length=79
3+
known_first_party=pyexcel_io,html5lib
4+
known_third_party=mock,nose,pyexcel
5+
indent=' '
6+
multi_line_output=3
7+
length_sort=1
8+
default_section=FIRSTPARTY
9+
no_lines_before=LOCALFOLDER
10+
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER

.moban.d/custom_travis.yml.jj2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "travis.yml.jj2" %}
2+
3+
{%block custom_python_versions%}
4+
python:
5+
- 3.8
6+
- 3.7
7+
- 3.6
8+
{%endblock%}

.moban.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ overrides: "git://github.com/pyexcel/pyexcel-mobans!/mobanfile.yaml"
22
configuration:
33
configuration: pyexcel-htmlr.yml
44
targets:
5-
- README.rst: custom_README.rst.jj2
65
- setup.py: custom_setup.py.jj2
76
- requirements.txt: requirements.txt
87
- MANIFEST.in: MANIFEST.in.jj2
98
- "tests/requirements.txt": "tests/custom_requirements.txt.jj2"
10-
- .travis.yml: travis.yml.jj2
9+
- .travis.yml: custom_travis.yml.jj2
1110
- .gitignore: gitignore.jj2
1211
- "docs/source/conf.py": "docs/source/conf.py.jj2"
1312
- "docs/source/index.rst": "index.rst.jj2"

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ language: python
44
notifications:
55
email: false
66
python:
7-
- &pypy2 pypy2.7-6.0
8-
- &pypy3 pypy3.5-6.0
97
- 3.8
108
- 3.7
119
- 3.6
12-
- 3.5
13-
- 2.7
1410

1511
stages:
1612
- lint
@@ -32,7 +28,7 @@ stages:
3228
env:
3329
- MINREQ=0
3430
stage: moban
35-
install: pip install moban>=0.0.4 gitfs2 pypifs
31+
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
3632
script:
3733
- moban
3834
- git diff --exit-code

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Change log
22
================================================================================
33

4+
0.6.0 - tbd
5+
--------------------------------------------------------------------------------
6+
7+
**Updated**
8+
9+
#. New style xlsx plugins, promoted by pyexcel-io v0.6.0.
10+
411
0.5.2 - 23.10.2017
512
--------------------------------------------------------------------------------
613

CONTRIBUTORS.rst

Lines changed: 6 additions & 0 deletions
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

0 commit comments

Comments
 (0)