Skip to content

Commit df38491

Browse files
authored
Merge pull request #11 from moremoban/dev
release 0.0.4
2 parents fd71d43 + 6aa8df5 commit df38491

File tree

10 files changed

+50
-24
lines changed

10 files changed

+50
-24
lines changed

.isort.cfg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[settings]
2+
line_length=79
3+
# Ignore generated files
4+
skip=setup.py, moban/__init__.py
5+
known_third_party=moban, fs, lml, crayons, jinja2, ruamel.yaml, mock, nose
6+
indent=' '
7+
multi_line_output=3
8+
length_sort=1
9+
include_trailing_comma=true
10+
default_section=FIRSTPARTY
11+
no_lines_before=LOCALFOLDER
12+
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

CHANGELOG.rst

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

4+
0.0.4 - 14.10.2019
5+
--------------------------------------------------------------------------------
6+
7+
**Updated**
8+
9+
#. `#10 <https://github.com/moremoban/moban-handlebars/issues/10>`_: support
10+
moban v6.5
11+
412
0.0.3 - 10.09.2019
513
--------------------------------------------------------------------------------
614

7-
Updated
8-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
**Updated**
916

1017
#. `#7 <https://github.com/moremoban/moban-handlebars/issues/7>`_: support moban
1118
v4.1
@@ -15,8 +22,7 @@ Updated
1522
0.0.2 - 22-01-2019
1623
--------------------------------------------------------------------------------
1724

18-
Updated
19-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25+
**Updated**
2026

2127
#. `#1 <https://github.com/moremoban/moban-handlebars/issues/1>`_: support moban
2228
v0.3.8
@@ -28,7 +34,6 @@ Updated
2834
0.0.1 - 18-11-2018
2935
--------------------------------------------------------------------------------
3036

31-
First release
32-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37+
**First release**
3338

3439
#. render .hbr .handlebars files for moban

changelog.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: moban-handlebars
22
organisation: moremoban
33
releases:
4+
- changes:
5+
- action: Updated
6+
details:
7+
- "`#10`: support moban v6.5"
8+
date: 14.10.2019
9+
version: 0.0.4
410
- changes:
511
- action: Updated
612
details:

docs/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# This file only contains a selection of the most common options. For a full
44
# list see the documentation:
5-
# http://www.sphinx-doc.org/en/master/config
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
66

77
# -- Path setup --------------------------------------------------------------
88

@@ -20,9 +20,9 @@
2020
copyright = ''
2121
author = 'Charlie Liu, C.W. et al'
2222
# The short X.Y version
23-
version = '0.0.3'
23+
version = '0.0.4'
2424
# The full version, including alpha/beta/rc tags
25-
release = '0.0.3'
25+
release = '0.0.4'
2626

2727
# -- General configuration ---------------------------------------------------
2828

@@ -59,4 +59,4 @@
5959
# Add any paths that contain custom static files (such as style sheets) here,
6060
# relative to this directory. They are copied after the builtin static files,
6161
# so a file named "default.css" will overwrite the builtin "default.css".
62-
html_static_path = ['static']
62+
html_static_path = ['static']

moban-handlebars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ organisation: "moremoban"
33
author: "Charlie Liu, C.W. et al"
44
55
company: "Moremoban dev team and its contributors"
6-
version: "0.0.3"
7-
current_version: "0.0.3"
8-
release: "0.0.3"
6+
version: "0.0.4"
7+
current_version: "0.0.4"
8+
release: "0.0.4"
99
copyright_year: 2018-2019
1010
license: MIT
1111
dependencies:

moban_handlebars/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# flake8: noqa
22
import moban.constants as constants
33
from lml.plugin import PluginInfo, PluginInfoChain
4+
45
from moban_handlebars._version import __author__, __version__
56

67
PluginInfoChain(__name__).add_a_plugin_instance(

moban_handlebars/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.0.3"
1+
__version__ = "0.0.4"
22
__author__ = "Charlie Liu, C.W. et al"

moban_handlebars/engine.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import sys
22

3-
from moban import file_system
4-
53
from pybars import Compiler
4+
from moban.externals import file_system
65

76
PY2 = sys.version_info[0] == 2
87

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929

3030
NAME = "moban-handlebars"
3131
AUTHOR = "Charlie Liu, C.W. et al"
32-
VERSION = "0.0.3"
32+
VERSION = "0.0.4"
3333
3434
LICENSE = "MIT"
3535
DESCRIPTION = (
3636
"Provide handlebars templating capability to moban."
3737
)
3838
URL = "https://github.com/moremoban/moban-handlebars"
39-
DOWNLOAD_URL = "%s/archive/0.0.3.tar.gz" % URL
39+
DOWNLOAD_URL = "%s/archive/0.0.4.tar.gz" % URL
4040
FILES = ["README.rst", 'CONTRIBUTORS.rst', "CHANGELOG.rst"]
4141
KEYWORDS = [
4242
"python",
@@ -71,8 +71,8 @@
7171
}
7272
# You do not need to read beyond this line
7373
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
74-
GS_COMMAND = ("gs moban-handlebars v0.0.3 " +
75-
"Find 0.0.3 in changelog for more details")
74+
GS_COMMAND = ("gs moban-handlebars v0.0.4 " +
75+
"Find 0.0.4 in changelog for more details")
7676
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
7777
"Please install gease to enable it.")
7878
UPLOAD_FAILED_MSG = (
@@ -114,7 +114,7 @@ def run(self):
114114
self.status(NO_GS_MESSAGE)
115115
if run_status:
116116
if os.system(PUBLISH_COMMAND) != 0:
117-
self.status(UPLOAD_FAILED_MSG % PUBLISH_COMMAND)
117+
self.status(UPLOAD_FAILED_MSG)
118118

119119
sys.exit()
120120

tests/test_handlebar_engine.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import os
22

3-
from moban.core import ENGINES
4-
from moban_handlebars.engine import EngineHandlebars
5-
from moban import file_system
3+
from moban.core import ENGINES, plugins
64
from nose.tools import eq_
5+
from moban.externals import file_system
6+
7+
from moban_handlebars.engine import EngineHandlebars
8+
9+
plugins.make_sure_all_pkg_are_loaded()
710

811

912
def test_handlebars_template_not_found():

0 commit comments

Comments
 (0)