Skip to content

Commit 934cf0a

Browse files
authored
Merge pull request #371 from moremoban/dev
Fix regression error
2 parents 24ecad3 + 359c007 commit 934cf0a

File tree

15 files changed

+131
-40
lines changed

15 files changed

+131
-40
lines changed
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: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ htmlcov/
5252
nosetests.xml
5353
coverage.xml
5454
*.cover
55+
*.py,cover
5556
.hypothesis/
5657
.pytest_cache/
58+
cover/
5759

5860
# Translations
5961
*.mo
@@ -63,6 +65,7 @@ coverage.xml
6365
*.log
6466
local_settings.py
6567
db.sqlite3
68+
db.sqlite3-journal
6669

6770
# Flask stuff:
6871
instance/
@@ -75,6 +78,7 @@ instance/
7578
docs/_build/
7679

7780
# PyBuilder
81+
.pybuilder/
7882
target/
7983

8084
# Jupyter Notebook
@@ -85,17 +89,23 @@ profile_default/
8589
ipython_config.py
8690

8791
# pyenv
88-
.python-version
92+
# For a library or package, you might want to ignore these files since the code is
93+
# intended to run in multiple environments; otherwise, check them in:
94+
# .python-version
8995

9096
# pipenv
9197
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
9298
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93-
# having no cross-platform support, pipenv may install dependencies that dont work, or not
99+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94100
# install all needed dependencies.
95101
#Pipfile.lock
96102

97-
# celery beat schedule file
103+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
104+
__pypackages__/
105+
106+
# Celery stuff
98107
celerybeat-schedule
108+
celerybeat.pid
99109

100110
# SageMath parsed files
101111
*.sage.py
@@ -127,6 +137,16 @@ dmypy.json
127137
# Pyre type checker
128138
.pyre/
129139

140+
# pytype static type analyzer
141+
.pytype/
142+
143+
# Cython debug symbols
144+
cython_debug/
145+
146+
# static files generated from Django application using `collectstatic`
147+
media
148+
static
149+
130150
# VirtualEnv rules
131151
# Virtualenv
132152
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
@@ -159,6 +179,7 @@ pip-selfcheck.json
159179
# Windows rules
160180
# Windows thumbnail cache files
161181
Thumbs.db
182+
Thumbs.db:encryptable
162183
ehthumbs.db
163184
ehthumbs_vista.db
164185

@@ -264,13 +285,15 @@ flycheck_*.el
264285
# Vim rules
265286
# Swap
266287
[._]*.s[a-v][a-z]
288+
!*.svg # comment out if you don't need vector files
267289
[._]*.sw[a-p]
268290
[._]s[a-rt-v][a-z]
269291
[._]ss[a-gi-z]
270292
[._]sw[a-p]
271293

272294
# Session
273295
Session.vim
296+
Sessionx.vim
274297

275298
# Temporary
276299
.netrwhist
@@ -281,7 +304,7 @@ tags
281304
[._]*.un~
282305

283306
# JetBrains rules
284-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
307+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
285308
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
286309

287310
# User-specific stuff
@@ -311,9 +334,14 @@ tags
311334
# When using Gradle or Maven with auto-import, you should exclude module files,
312335
# since they will be recreated, and may cause churn. Uncomment if using
313336
# auto-import.
337+
# .idea/artifacts
338+
# .idea/compiler.xml
339+
# .idea/jarRepositories.xml
314340
# .idea/modules.xml
315341
# .idea/*.iml
316342
# .idea/modules
343+
# *.iml
344+
# *.ipr
317345

318346
# CMake
319347
cmake-build-*/
@@ -363,6 +391,7 @@ fabric.properties
363391

364392
# SFTP configuration file
365393
sftp-config.json
394+
sftp-config-alt*.json
366395

367396
# Package control specific files
368397
Package Control.last-run
@@ -400,6 +429,7 @@ tmtags
400429
!.vscode/tasks.json
401430
!.vscode/launch.json
402431
!.vscode/extensions.json
432+
*.code-workspace
403433

404434
# Xcode rules
405435
# Xcode
@@ -426,6 +456,9 @@ DerivedData/
426456
*.perspectivev3
427457
!default.perspectivev3
428458

459+
## Gcc Patch
460+
/*.gcno
461+
429462
# Eclipse rules
430463
.metadata
431464
bin/
@@ -477,12 +510,17 @@ local.properties
477510

478511
# Annotation Processing
479512
.apt_generated/
513+
.apt_generated_test/
480514

481515
# Scala IDE specific (Scala & Java development for Eclipse)
482516
.cache-main
483517
.scala_dependencies
484518
.worksheet
485519

520+
# Uncomment this line if you wish to ignore the project description file.
521+
# Typically, this file would be tracked if it contains build/dependency configurations:
522+
#.project
523+
486524
# TortoiseGit rules
487525
# Project-level settings
488526
/.tgitconfig

.moban.cd/changelog.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: moban
22
organisation: moremoban
33
releases:
4+
- changes:
5+
- action: Fixed
6+
details:
7+
- "`#365`: regression was introduced by v0.6.5.
8+
If you uses mobanfile as data configuration file,
9+
you are very likely to have this show stopper.
10+
Please upgrade to this version."
11+
date: 18.01.2020
12+
version: 0.7.1
413
- changes:
514
- action: Removed
615
details:

.moban.cd/moban.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ organisation: moremoban
44
author: C. W.
55
66
license: MIT
7-
version: 0.7.0
8-
current_version: 0.7.0
7+
version: 0.7.1
8+
current_version: 0.7.1
99
release: 0.7.0
1010
branch: master
1111
master: index
1212
command_line_interface: "moban"
1313
entry_point: "moban.main:main"
1414
company: Onni Software Ltd.
15-
copyright_year: 2017-2019
16-
copyright: 2017-2019 Onni Software Ltd. and its contributors
15+
copyright_year: 2017-2020
16+
copyright: 2017-2020 Onni Software Ltd. and its contributors
1717
keywords:
1818
- jinja2
1919
- moban

.travis.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,18 @@ stages:
1616
- moban
1717
- test
1818

19-
.disable_global: &disable_global
20-
addons: false
21-
cache: false
22-
env: {}
23-
python: false
24-
before_install: false
25-
install: false
26-
before_script: false
27-
script: false
28-
after_success: false
29-
after_failure: false
30-
before_deploy: false
31-
deploy: false
3219

3320
.lint: &lint
34-
<<: *disable_global
3521
git:
3622
submodules: false
3723
python: 3.6
3824
stage: lint
3925
script: make install_test format git-diff-check lint
4026

4127
.moban: &moban
42-
<<: *disable_global
4328
python: 3.6
4429
stage: moban
45-
install: pip install moban>=0.0.4
30+
install: pip install moban>=0.0.4 gitfs2 pypifs
4631
script: make update git-diff-check
4732

4833
jobs:

CHANGELOG.rst

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

4+
0.7.1 - 18.01.2020
5+
--------------------------------------------------------------------------------
6+
7+
**Fixed**
8+
9+
#. `#365 <https://github.com/moremoban/moban/issues/365>`_: regression was
10+
introduced by v0.6.5. If you uses mobanfile as data configuration file, you
11+
are very likely to have this show stopper. Please upgrade to this version.
12+
413
0.7.0 - 18.01.2020
514
--------------------------------------------------------------------------------
615

README.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ mó bǎn - 模板 General purpose static text generator
2727
:Issues: http://github.com/moremoban/moban/issues
2828
:License: MIT
2929

30+
.. image:: https://github.com/moremoban/moban/raw/dev/docs/images/moban-in-intro.gif
3031

3132
Announcement
3233
================================================================================
@@ -92,10 +93,6 @@ or clone it and install it:
9293
Quick start
9394
================================================================================
9495

95-
96-
.. image:: https://github.com/moremoban/moban/raw/dev/docs/images/moban-in-intro.gif
97-
98-
9996
.. code-block:: bash
10097
10198
$ export HELLO="world"
@@ -126,15 +123,21 @@ A bit formal example:
126123
$ moban -c data.yml -t my.template
127124
$ cat moban.output
128125
129-
Given data.yml as::
126+
Given data.yml as:
127+
128+
.. code-block:: bash
130129
131130
hello: world
132131
133-
and my.template as::
132+
and my.template as:
133+
134+
.. code-block:: bash
134135
135136
{{hello}}
136137
137-
moban.output will contain::
138+
moban.output will contain:
139+
140+
.. code-block:: bash
138141
139142
world
140143

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
- template: '.azure-pipelines-steps.yml'
1010
- job: 'MacOS'
1111
pool:
12-
vmImage: macOS-10.13
12+
vmImage: macOS-10.15
1313
steps:
1414
- template: '.azure-pipelines-steps-macos.yml'

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
# -- Project information -----------------------------------------------------
2323

2424
project = 'moban'
25-
copyright = '2017-2019 Onni Software Ltd.'
25+
copyright = '2017-2020 Onni Software Ltd.'
2626
author = 'C. W.'
2727
# The short X.Y version
28-
version = '0.7.0'
28+
version = '0.7.1'
2929
# The full version, including alpha/beta/rc tags
3030
release = '0.7.0'
3131

moban/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.7.0"
1+
__version__ = "0.7.1"
22
__author__ = "C. W."

0 commit comments

Comments
 (0)