Skip to content

Commit

Permalink
✨ switch to ruemel.yaml and see. related to #37
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Nov 30, 2018
1 parent 4119912 commit f4b7570
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .moban.cd/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: moban
organisation: moremoban
releases:
- changes:
- action: Updated
details:
- "`#37`: switch from pyyaml to ruamel.yaml"
date: 28-11-2018
version: 0.3.5
- changes:
- action: Updated
details:
Expand Down
6 changes: 3 additions & 3 deletions .moban.cd/moban.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ organisation: moremoban
author: C. W.
contact: wangc_2011@hotmail.com
license: MIT
version: 0.3.4.1
current_version: 0.3.4.1
version: 0.3.5
current_version: 0.3.5
release: 0.3.4.1
branch: master
command_line_interface: "moban"
Expand All @@ -15,7 +15,7 @@ keywords:
- jinja2
- moban
dependencies:
- pyyaml>=3.11
- ruamel.yaml
- jinja2>=2.7.1
- lml>=0.0.7
- crayons
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Change log
================================================================================

0.3.5 - 28-11-2018
--------------------------------------------------------------------------------

Updated
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

#. `#37 <https://github.com/moremoban/moban/issues/37>`_: switch from pyyaml to
ruamel.yaml

0.3.4.1 - 28-11-2018
--------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# The short X.Y version
version = u'0.3.4.1'
# The full version, including alpha/beta/rc tags
release = u'0.3.4.1'
release = u'0.3.5'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion moban/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.3.4.1"
__version__ = "0.3.5"
__author__ = "C. W."
3 changes: 2 additions & 1 deletion moban/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import stat
import errno

import yaml
from ruamel.yaml import YAML
import moban.reporter as reporter
import moban.constants as constants
import moban.exceptions as exceptions
Expand Down Expand Up @@ -37,6 +37,7 @@ def open_yaml(base_dir, file_name):
"""
the_yaml_file = search_file(base_dir, file_name)
with open(the_yaml_file, "r") as data_yaml:
yaml = YAML(typ='safe')
data = yaml.load(data_yaml)
if data is not None:
parent_data = None
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyyaml>=3.11
ruamel.yaml
jinja2>=2.7.1
lml>=0.0.7
crayons
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

NAME = 'moban'
AUTHOR = 'C. W.'
VERSION = '0.3.4.1'
VERSION = '0.3.5'
EMAIL = 'wangc_2011@hotmail.com'
LICENSE = 'MIT'
ENTRY_POINTS = {
Expand Down Expand Up @@ -46,7 +46,7 @@
]

INSTALL_REQUIRES = [
'pyyaml>=3.11',
'ruamel.yaml',
'jinja2>=2.7.1',
'lml>=0.0.7',
'crayons',
Expand Down

0 comments on commit f4b7570

Please sign in to comment.