Skip to content

Commit 9c0bbbd

Browse files
authored
Merge pull request #38 from pyexcel/dev
release 0.6.0
2 parents 6a5a851 + cfb7d3a commit 9c0bbbd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+769
-630
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: chfw
4+
patreon: chfw

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
With your PR, here is a check list:
2+
3+
- [ ] Has test cases written?
4+
- [ ] Has all code lines tested?
5+
- [ ] Has `make format` been run?
6+
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
7+
- [ ] Passes all Travis CI builds
8+
- [ ] Has fair amount of documentation if your change is complex
9+
- [ ] 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

.gitignore

Lines changed: 80 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ parts/
2525
sdist/
2626
var/
2727
wheels/
28+
share/python-wheels/
2829
*.egg-info/
2930
.installed.cfg
3031
*.egg
@@ -43,14 +44,17 @@ pip-delete-this-directory.txt
4344
# Unit test / coverage reports
4445
htmlcov/
4546
.tox/
47+
.nox/
4648
.coverage
4749
.coverage.*
4850
.cache
4951
nosetests.xml
5052
coverage.xml
5153
*.cover
54+
*.py,cover
5255
.hypothesis/
5356
.pytest_cache/
57+
cover/
5458

5559
# Translations
5660
*.mo
@@ -60,6 +64,7 @@ coverage.xml
6064
*.log
6165
local_settings.py
6266
db.sqlite3
67+
db.sqlite3-journal
6368

6469
# Flask stuff:
6570
instance/
@@ -72,16 +77,34 @@ instance/
7277
docs/_build/
7378

7479
# PyBuilder
80+
.pybuilder/
7581
target/
7682

7783
# Jupyter Notebook
7884
.ipynb_checkpoints
7985

86+
# IPython
87+
profile_default/
88+
ipython_config.py
89+
8090
# pyenv
81-
.python-version
91+
# For a library or package, you might want to ignore these files since the code is
92+
# intended to run in multiple environments; otherwise, check them in:
93+
# .python-version
94+
95+
# pipenv
96+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
98+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
99+
# install all needed dependencies.
100+
#Pipfile.lock
101+
102+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
103+
__pypackages__/
82104

83-
# celery beat schedule file
105+
# Celery stuff
84106
celerybeat-schedule
107+
celerybeat.pid
85108

86109
# SageMath parsed files
87110
*.sage.py
@@ -107,6 +130,17 @@ venv.bak/
107130

108131
# mypy
109132
.mypy_cache/
133+
.dmypy.json
134+
dmypy.json
135+
136+
# Pyre type checker
137+
.pyre/
138+
139+
# pytype static type analyzer
140+
.pytype/
141+
142+
# Cython debug symbols
143+
cython_debug/
110144

111145
# VirtualEnv rules
112146
# Virtualenv
@@ -140,6 +174,7 @@ pip-selfcheck.json
140174
# Windows rules
141175
# Windows thumbnail cache files
142176
Thumbs.db
177+
Thumbs.db:encryptable
143178
ehthumbs.db
144179
ehthumbs_vista.db
145180

@@ -238,16 +273,22 @@ flycheck_*.el
238273
# directory configuration
239274
.dir-locals.el
240275

276+
# network security
277+
/network-security.data
278+
279+
241280
# Vim rules
242281
# Swap
243282
[._]*.s[a-v][a-z]
283+
!*.svg # comment out if you don't need vector files
244284
[._]*.sw[a-p]
245285
[._]s[a-rt-v][a-z]
246286
[._]ss[a-gi-z]
247287
[._]sw[a-p]
248288

249289
# Session
250290
Session.vim
291+
Sessionx.vim
251292

252293
# Temporary
253294
.netrwhist
@@ -258,7 +299,7 @@ tags
258299
[._]*.un~
259300

260301
# JetBrains rules
261-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
302+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
262303
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
263304

264305
# User-specific stuff
@@ -268,6 +309,9 @@ tags
268309
.idea/**/dictionaries
269310
.idea/**/shelf
270311

312+
# Generated files
313+
.idea/**/contentModel.xml
314+
271315
# Sensitive or high-churn files
272316
.idea/**/dataSources/
273317
.idea/**/dataSources.ids
@@ -281,6 +325,19 @@ tags
281325
.idea/**/gradle.xml
282326
.idea/**/libraries
283327

328+
# Gradle and Maven with auto-import
329+
# When using Gradle or Maven with auto-import, you should exclude module files,
330+
# since they will be recreated, and may cause churn. Uncomment if using
331+
# auto-import.
332+
# .idea/artifacts
333+
# .idea/compiler.xml
334+
# .idea/jarRepositories.xml
335+
# .idea/modules.xml
336+
# .idea/*.iml
337+
# .idea/modules
338+
# *.iml
339+
# *.ipr
340+
284341
# CMake
285342
cmake-build-*/
286343

@@ -311,6 +368,9 @@ fabric.properties
311368
# Editor-based Rest Client
312369
.idea/httpRequests
313370

371+
# Android studio 3.1+ serialized cache file
372+
.idea/caches/build_file_checksums.ser
373+
314374
# SublimeText rules
315375
# Cache files for Sublime Text
316376
*.tmlanguage.cache
@@ -326,6 +386,7 @@ fabric.properties
326386

327387
# SFTP configuration file
328388
sftp-config.json
389+
sftp-config-alt*.json
329390

330391
# Package control specific files
331392
Package Control.last-run
@@ -363,6 +424,10 @@ tmtags
363424
!.vscode/tasks.json
364425
!.vscode/launch.json
365426
!.vscode/extensions.json
427+
*.code-workspace
428+
429+
# Local History for Visual Studio Code
430+
.history/
366431

367432
# Xcode rules
368433
# Xcode
@@ -389,8 +454,10 @@ DerivedData/
389454
*.perspectivev3
390455
!default.perspectivev3
391456

392-
# Eclipse rules
457+
## Gcc Patch
458+
/*.gcno
393459

460+
# Eclipse rules
394461
.metadata
395462
bin/
396463
tmp/
@@ -441,12 +508,17 @@ local.properties
441508

442509
# Annotation Processing
443510
.apt_generated/
511+
.apt_generated_test/
444512

445513
# Scala IDE specific (Scala & Java development for Eclipse)
446514
.cache-main
447515
.scala_dependencies
448516
.worksheet
449517

518+
# Uncomment this line if you wish to ignore the project description file.
519+
# Typically, this file would be tracked if it contains build/dependency configurations:
520+
#.project
521+
450522
# TortoiseGit rules
451523
# Project-level settings
452524
/.tgitconfig
@@ -468,3 +540,7 @@ cscope.files
468540
cscope.out
469541
cscope.in.out
470542
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,xlrd,xlwt
4+
known_third_party=mock,nose
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
File renamed without changes.

.moban.d/setup.py renamed to .moban.d/custom_setup.py.jj2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
'xlsm'
1010
{%endblock%}
1111

12+
{% block morefiles %}"CONTRIBUTORS.rst",{% endblock %}
13+
1214
{%block additional_classifiers%}
1315
'Programming Language :: Python :: Implementation :: PyPy'
1416
{%endblock%}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% extends 'tests/base.py.jj2' %}
22

33
{%block ods_types%}
4-
{%endblock%}
4+
{%endblock%}

.moban.d/tests/requirements.txt renamed to .moban.d/tests/custom_requirements.txt.jj2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
{%block extras %}
33
pyexcel
44
xlrd==1.1.0
5+
moban
6+
black;python_version>="3.6"
7+
isort;python_version>="3.6"
58
{%endblock%}

.moban.d/travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.moban.d/xls_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+
{%block custom_python_versions%}
3+
python:
4+
- 3.8
5+
- 3.7
6+
- 3.6
7+
{%endblock%}
8+

.moban.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
1+
overrides: "git://github.com/pyexcel/pyexcel-mobans!/mobanfile.yaml"
12
configuration:
2-
configuration_dir: "commons/config"
3-
template_dir:
4-
- "commons/templates"
5-
- "setupmobans/templates"
6-
- ".moban.d"
73
configuration: pyexcel-xls.yml
84
targets:
9-
- README.rst: README.rst
10-
- setup.py: setup.py
5+
- README.rst: custom_README.rst.jj2
6+
- setup.py: custom_setup.py.jj2
117
- "docs/source/conf.py": "docs/source/conf.py.jj2"
12-
- .travis.yml: travis.yml
13-
- requirements.txt: requirements.txt
8+
- .travis.yml: xls_travis.yml.jj2
149
- .gitignore: gitignore.jj2
1510
- MANIFEST.in: MANIFEST.in.jj2
16-
- "tests/requirements.txt": "tests/requirements.txt"
17-
- test.sh: test.script.jj2
18-
- test.bat: test.script.jj2
19-
- "tests/test_filter.py": "tests/test_filter.py.jj2"
20-
- "tests/test_formatters.py": "tests/test_formatters.py.jj2"
21-
- "tests/test_stringio.py": "tests/test_stringio.py.jj2"
22-
- "tests/test_writer.py": "tests/test_writer.py.jj2"
23-
- "tests/base.py": "tests/base.py"
24-
- output: CHANGELOG.rst
25-
configuration: changelog.yml
26-
template: CHANGELOG.rst.jj2
11+
- "tests/requirements.txt": "tests/custom_requirements.txt.jj2"

0 commit comments

Comments
 (0)