-
Notifications
You must be signed in to change notification settings - Fork 1
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 #8 from moremoban/dev
release 0.0.2
- Loading branch information
Showing
28 changed files
with
484 additions
and
226 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
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,12 @@ | ||
[settings] | ||
line_length=79 | ||
# Ignore generated files | ||
skip=setup.py, moban/__init__.py | ||
known_third_party=slimish_jinja, moban, fs, lml, ruamel.yaml, mock, nose | ||
indent=' ' | ||
multi_line_output=3 | ||
length_sort=1 | ||
include_trailing_comma=true | ||
default_section=FIRSTPARTY | ||
no_lines_before=LOCALFOLDER | ||
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends 'travis.yml.jj2' %} | ||
|
||
{%block custom_python_versions%} | ||
python: | ||
- 3.8 | ||
- 3.7 | ||
- 3.6 | ||
{%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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Given a data.json file with the following content | ||
|
||
.. code-block:: | ||
|
||
{ | ||
"person": { | ||
"firstname": "Smith", | ||
"lastname": "Jones", | ||
}, | ||
} | ||
|
||
.. code-block:: bash | ||
|
||
{% raw %} | ||
$ moban --template-type slim -c data.json "{{person.firstname}} {{person.lastname}}" | ||
Slimming <p>{{first... to moban.output | ||
Slimmed 1 file. | ||
$ cat moban.output | ||
Smith Jones | ||
{% endraw %} |
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,18 +1,19 @@ | ||
requires: | ||
- pypi-mobans-pkg==0.0.2 | ||
configuration: | ||
template_dir: | ||
- "pypi-mobans-pkg:templates" | ||
- "git://github.com/moremoban/pypi-mobans?submodule=true&branch=dev!/templates" | ||
- "git://github.com/moremoban/pypi-mobans?submodule=true&branch=dev!/statics" | ||
- ".moban.d" | ||
configuration: moban-slim.yml | ||
targets: | ||
- README.rst: CUSTOM_README.rst.jj2 | ||
- setup.py: custom_setup.py.jj2 | ||
- requirements.txt: requirements.txt.jj2 | ||
- "tests/requirements.txt": "tests/custom_requirements.txt.jj2" | ||
- "docs/source/conf.py": "docs/conf.py_t" | ||
- test.sh: test.script.jj2 | ||
- "moban_slim/_version.py": "_version.py.jj2" | ||
- .gitignore: gitignore.jj2 | ||
- .travis.yml: travis.yml.jj2 | ||
- Pipfile: Pipfile.jj2 | ||
- .travis.yml: custom_travis.yml.jj2 | ||
- output: CHANGELOG.rst | ||
configuration: changelog.yml | ||
template: CHANGELOG.rst.jj2 | ||
- lint.sh: lint.script.jj2 | ||
- ".github/workflows/pythonpublish.yml": "pythonpublish.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
Oops, something went wrong.