Skip to content

Commit 093dee4

Browse files
committed
🤝 apply common templates from pyexcel mobans. moremoban/moban#348
1 parent 7f54170 commit 093dee4

File tree

14 files changed

+161
-234
lines changed

14 files changed

+161
-234
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
With your PR, here is a check list:
2+
3+
- [ ] Has Test cases written
4+
- [ ] Has all code lines tested
5+
- [ ] Passes all Travis CI builds
6+
- [ ] Has fair amount of documentation if your change is complex
7+
- [ ] run 'make format' so as to confirm the pyexcel organisation's coding style
8+
- [ ] Please update CHANGELOG.rst
9+
- [ ] Please add yourself to CONTRIBUTORS.rst
10+
- [ ] Agree on NEW BSD License for your contribution

.gitignore

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ parts/
2525
sdist/
2626
var/
2727
wheels/
28+
pip-wheel-metadata/
29+
share/python-wheels/
2830
*.egg-info/
2931
.installed.cfg
3032
*.egg
@@ -43,6 +45,7 @@ pip-delete-this-directory.txt
4345
# Unit test / coverage reports
4446
htmlcov/
4547
.tox/
48+
.nox/
4649
.coverage
4750
.coverage.*
4851
.cache
@@ -77,9 +80,20 @@ target/
7780
# Jupyter Notebook
7881
.ipynb_checkpoints
7982

83+
# IPython
84+
profile_default/
85+
ipython_config.py
86+
8087
# pyenv
8188
.python-version
8289

90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don’t work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
8397
# celery beat schedule file
8498
celerybeat-schedule
8599

@@ -107,6 +121,11 @@ venv.bak/
107121

108122
# mypy
109123
.mypy_cache/
124+
.dmypy.json
125+
dmypy.json
126+
127+
# Pyre type checker
128+
.pyre/
110129

111130
# VirtualEnv rules
112131
# Virtualenv
@@ -238,6 +257,10 @@ flycheck_*.el
238257
# directory configuration
239258
.dir-locals.el
240259

260+
# network security
261+
/network-security.data
262+
263+
241264
# Vim rules
242265
# Swap
243266
[._]*.s[a-v][a-z]
@@ -268,6 +291,9 @@ tags
268291
.idea/**/dictionaries
269292
.idea/**/shelf
270293

294+
# Generated files
295+
.idea/**/contentModel.xml
296+
271297
# Sensitive or high-churn files
272298
.idea/**/dataSources/
273299
.idea/**/dataSources.ids
@@ -281,6 +307,14 @@ tags
281307
.idea/**/gradle.xml
282308
.idea/**/libraries
283309

310+
# Gradle and Maven with auto-import
311+
# When using Gradle or Maven with auto-import, you should exclude module files,
312+
# since they will be recreated, and may cause churn. Uncomment if using
313+
# auto-import.
314+
# .idea/modules.xml
315+
# .idea/*.iml
316+
# .idea/modules
317+
284318
# CMake
285319
cmake-build-*/
286320

@@ -311,6 +345,9 @@ fabric.properties
311345
# Editor-based Rest Client
312346
.idea/httpRequests
313347

348+
# Android studio 3.1+ serialized cache file
349+
.idea/caches/build_file_checksums.ser
350+
314351
# SublimeText rules
315352
# Cache files for Sublime Text
316353
*.tmlanguage.cache
@@ -390,7 +427,6 @@ DerivedData/
390427
!default.perspectivev3
391428

392429
# Eclipse rules
393-
394430
.metadata
395431
bin/
396432
tmp/

.moban.d/README.rst

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

.moban.d/setup.py

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

.moban.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,16 @@
1-
requires:
2-
- type: git
3-
url: https://github.com/moremoban/pypi-mobans
4-
submodule: true
5-
- https://github.com/pyexcel/pyexcel-mobans
1+
overrides: "git://github.com/pyexcel/pyexcel-mobans!/mobanfile.yaml"
62
configuration:
7-
configuration_dir: "pyexcel-mobans:config"
8-
template_dir:
9-
- "pyexcel-mobans:templates"
10-
- "pypi-mobans:templates"
11-
- ".moban.d"
123
configuration: pyexcel-ods.yml
134
targets:
14-
- README.rst: README.rst
15-
- setup.py: setup.py
5+
- README.rst: custom_README.rst.jj2
6+
- setup.py: custom_setup.py.jj2
167
- "docs/source/conf.py": "docs/source/conf.py.jj2"
178
- .travis.yml: travis.yml
189
- .gitignore: gitignore.jj2
19-
- requirements.txt: requirements.txt
20-
- LICENSE: NEW_BSD_LICENSE.jj2
2110
- MANIFEST.in: MANIFEST.in.jj2
2211
- "tests/requirements.txt": "tests/requirements.txt"
23-
- test.sh: test.script.jj2
24-
- test.bat: test.script.jj2
2512
- "tests/test_filter.py": "tests/test_filter.py.jj2"
2613
- "tests/test_formatters.py": "tests/test_formatters.py"
2714
- "tests/test_stringio.py": "tests/test_stringio.py.jj2"
2815
- "tests/test_writer.py": "tests/test_writer.py.jj2"
2916
- "tests/base.py": "tests/base.py.jj2"
30-
- output: CHANGELOG.rst
31-
configuration: changelog.yml
32-
template: CHANGELOG.rst.jj2
33-
- lint.sh: lint.script.jj2

.travis.yml

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,11 @@
1-
sudo: false
2-
dist: xenial
3-
language: python
4-
notifications:
5-
email: false
1+
{% extends "travis.yml.jj2" %}
2+
3+
{%block custom_python_versions%}
64
python:
75
- 3.8-dev
86
- 3.7
97
- 3.6
108
- 3.5
119
- 2.7
10+
{%endblock%}
1211

13-
stages:
14-
- test
15-
- lint
16-
17-
.disable_global: &disable_global
18-
before_install: false
19-
install: true
20-
before_script: false
21-
after_success: false
22-
after_failure: false
23-
24-
.lint: &lint
25-
<<: *disable_global
26-
python: 3.6
27-
stage: lint
28-
install: pip install flake8
29-
script: make lint
30-
31-
jobs:
32-
include:
33-
- *lint
34-
35-
stage: test
36-
37-
script: make test
38-
39-
before_install:
40-
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
41-
mv min_requirements.txt requirements.txt ;
42-
fi
43-
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
44-
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
45-
- pip install -r tests/requirements.txt
46-
script:
47-
- make test
48-
after_success:
49-
codecov

0 commit comments

Comments
 (0)