-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from moremoban/dev
release 0.3.1
- Loading branch information
Showing
47 changed files
with
387 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[settings] | ||
line_length=79 | ||
known_first_party=lml, jinja2 | ||
indent=' ' | ||
multi_line_output=3 | ||
length_sort=1 | ||
forced_separate=django.contrib,django.utils | ||
default_section=FIRSTPARTY | ||
no_lines_before=LOCALFOLDER | ||
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
|
||
{%block platform_block%} | ||
{%endblock%} | ||
|
||
{%block morefiles%} 'CONTRIBUTORS.rst',{%endblock%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
requires: | ||
- https://github.com/moremoban/pypi-mobans | ||
configuration: | ||
template_dir: | ||
- "pypi-mobans:templates" | ||
- local | ||
configuration: config.yml | ||
targets: | ||
- mytravis.yml: travis.yml.jj2 | ||
- test.txt: demo.txt.jj2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
level 10: moban dependency as git repo | ||
================================================================================ | ||
|
||
Since the support to have a pypi package as dependency, the pro user of moban | ||
find it more useful to have git repo so that the changes to static content | ||
could get propagate as it happens using git push and git pull. | ||
|
||
For now, github.com, gitlab.com and bitbucket.com are supported. Pull request | ||
is welcome to add or improve this feature. | ||
|
||
|
||
Here are the sample file:: | ||
|
||
requires: | ||
- https://github.com/moremoban/pypi-mobans | ||
configuration: | ||
template_dir: | ||
- "pypi-mobans:templates" | ||
- local | ||
configuration: config.yml | ||
targets: | ||
- mytravis.yml: travis.yml.jj2 | ||
- test.txt: demo.txt.jj2 | ||
|
||
where `requires` lead to a list of pypi packages. And when you refer to it, | ||
please use "pypi-mobans:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
level10: "moban dependency as git repo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{level10}} |
23 changes: 23 additions & 0 deletions
23
docs/level-10-moban-dependency-as-git-repo/local/mytravis.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
sudo: false | ||
language: python | ||
notifications: | ||
email: false | ||
python: | ||
- pypy-5.3.1 | ||
- 3.7-dev | ||
- 3.6 | ||
- 3.5 | ||
- 3.4 | ||
- 2.7 | ||
before_install: | ||
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi | ||
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then | ||
mv min_requirements.txt requirements.txt ; | ||
fi | ||
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt | ||
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ; | ||
- pip install -r tests/requirements.txt | ||
script: | ||
- make test | ||
after_success: | ||
codecov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
sudo: false | ||
language: python | ||
notifications: | ||
email: false | ||
python: | ||
- pypy-5.3.1 | ||
- 3.7-dev | ||
- 3.6 | ||
- 3.5 | ||
- 3.4 | ||
- 2.7 | ||
before_install: | ||
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi | ||
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then | ||
mv min_requirements.txt requirements.txt ; | ||
fi | ||
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt | ||
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ; | ||
- pip install -r tests/requirements.txt | ||
script: | ||
- make test | ||
after_success: | ||
codecov |
1 change: 1 addition & 0 deletions
1
docs/level-7-use-custom-jinja2-filter-test-n-global/custom-jj2-plugin/filter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import sys | ||
import base64 | ||
|
||
from moban.extensions import JinjaFilter | ||
|
||
|
||
|
1 change: 0 additions & 1 deletion
1
docs/level-7-use-custom-jinja2-filter-test-n-global/custom-jj2-plugin/global.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from moban.extensions import jinja_global | ||
|
||
|
||
jinja_global('global', dict(hello='world')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from moban.main import main | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version__ = "0.3.0" | ||
__version__ = "0.3.1" | ||
__author__ = "C. W." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import re | ||
|
||
from moban.extensions import JinjaFilter | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
import moban.utils as utils | ||
import moban.constants as constants | ||
|
||
|
||
PY2 = sys.version_info[0] == 2 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.