From fc1d59a722efcd488770ee94ec71f5d92dd505ec Mon Sep 17 00:00:00 2001 From: chfw Date: Sat, 24 Feb 2018 20:12:40 +0000 Subject: [PATCH] :egg: :ferris_wheel: release 0.0.3 --- CHANGELOG.rst | 10 ++++++++++ changelog.yml | 6 ++++++ docs/source/conf.py | 2 +- docs/source/filespec.rst | 5 +++++ docs/source/index.rst | 1 - docs/source/usage.rst | 15 +++++++++++++-- setup.py | 8 +++++--- yehua.yaml | 2 +- 8 files changed, 41 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9f18186..9a65ef0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,16 @@ Change log ================================================================================ +0.0.3 - 24/02/2018 +-------------------------------------------------------------------------------- + +Added +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +#. To add all files to a git repo is being made optional. The action is + specified in `git-repo-files` under `post-moban` section. This particular + need arises when it is used to scaffold other type of projects such as npm. + 0.0.2 - 15/10/2017 -------------------------------------------------------------------------------- diff --git a/changelog.yml b/changelog.yml index 55d1648..7d8ca29 100644 --- a/changelog.yml +++ b/changelog.yml @@ -1,4 +1,10 @@ releases: +- changes: + - action: Added + details: + - "To add all files to a git repo is being made optional. The action is specified in `git-repo-files` under `post-moban` section. This particular need arises when it is used to scaffold other type of projects such as npm." + date: 24/02/2018 + version: 0.0.3 - changes: - action: Added details: diff --git a/docs/source/conf.py b/docs/source/conf.py index baf607a..6cf1a0b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -17,7 +17,7 @@ project = u'yehua' copyright = u'2017 Onni Software Ltd.' -version = '0.0.2' +version = '0.0.3' release = '0.0.3' exclude_patterns = [] pygments_style = 'sphinx' diff --git a/docs/source/filespec.rst b/docs/source/filespec.rst index 7a2ca04..52dfd37 100644 --- a/docs/source/filespec.rst +++ b/docs/source/filespec.rst @@ -13,6 +13,8 @@ Here is the sample startup file:: "1. Answser": - follow_up_keyword: "Follow up question?" "2. Answer": "N/A" + mobans: + - 'mobans': 'this is optional' layout: - tests - docs: @@ -27,3 +29,6 @@ Here is the sample startup file:: static: - ".moban.d/README.rst": "README.rst" - "{{project_src}}/__init__.py": __init__.py.jj2 + post-moban: + git-repo-files: + - "this_is_optional" diff --git a/docs/source/index.rst b/docs/source/index.rst index fb38897..49a2dda 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -5,7 +5,6 @@ :Source code: http://github.com/moremoban/yehua.git :Issues: http://github.com/moremoban/yehua/issues :License: New BSD License -:Development: |release| :Released: |version| :Generated: |today| diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 6e96af9..6914a72 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -69,7 +69,7 @@ The files in this section follows this spec: - templated_target_file: template.file.in.templates.folder .. literalinclude:: ../../yehua/resources/yehua.yml - :lines: 31-33 + :lines: 33-36 As you can see, **yehua** would expand `project_name` for you. @@ -82,7 +82,7 @@ File in this section is simply copied over. Here is the spec:: - relative_file_path: relative_static_file_path_in_static_folder .. literalinclude:: ../../yehua/resources/yehua.yml - :lines: 34-46 + :lines: 37-44 Template files @@ -107,3 +107,14 @@ Static files The static files in yehua/resources/static are copied over by yehua according to the instruction file. + + +After all actions +-------------------------------------------------------------------------------- + +The possible extra actions is `git-repo-files` where you can name the files +to be added to a git repo. Here is a list of default files to be added to +the file repo: + +.. literalinclude:: ../../yehua/resources/yehua.yml + :lines: 46-62 diff --git a/setup.py b/setup.py index f88057c..300de1b 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ 'package.' ) URL = 'https://github.com/moremoban/yehua' -DOWNLOAD_URL = '%s/archive/0.0.2.tar.gz' % URL +DOWNLOAD_URL = '%s/archive/0.0.3.tar.gz' % URL FILES = ['README.rst', 'CHANGELOG.rst'] KEYWORDS = [ 'python' @@ -56,8 +56,8 @@ # You do not need to read beyond this line PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format( sys.executable) -GS_COMMAND = ('gs yehua v0.0.2 ' + - "Find 0.0.2 in changelog for more details") +GS_COMMAND = ('gs yehua v0.0.3 ' + + "Find 0.0.3 in changelog for more details") NO_GS_MESSAGE = ('Automatic github release is disabled. ' + 'Please install gease to enable it.') UPLOAD_FAILED_MSG = ( @@ -86,6 +86,8 @@ def run(self): try: self.status('Removing previous builds...') rmtree(os.path.join(HERE, 'dist')) + rmtree(os.path.join(HERE, 'build')) + rmtree(os.path.join(HERE, 'yehua.egg-info')) except OSError: pass diff --git a/yehua.yaml b/yehua.yaml index ac5f560..636f349 100644 --- a/yehua.yaml +++ b/yehua.yaml @@ -6,7 +6,7 @@ contact: "wangc_2011@hotmail.com" company: "Onni Software Ltd." version: "0.0.3" current_version: "0.0.3" -release: "0.0.2" +release: "0.0.3" copyright_year: 2017 command_line_interface: "yh" entry_point: "yehua.main:main"