🔨 code refactoring and 📚 update change log

This commit is contained in:
chfw 2018-11-06 18:14:24 +00:00
parent 0ab0a1a50a
commit 88b2c03899
11 changed files with 48 additions and 20 deletions

View File

@ -1,6 +1,7 @@
[settings] [settings]
line_length=79 line_length=79
known_first_party= known_first_party=
known_third_party=mock,nose
indent=' ' indent=' '
multi_line_output=3 multi_line_output=3
length_sort=1 length_sort=1

View File

@ -1,6 +1,10 @@
requires:
- type: git
url: https://github.com/moremoban/pypi-mobans
submodule: true
configuration: configuration:
template_dir: template_dir:
- "setupmobans/templates" - "pypi-mobans:templates"
- ".moban.d" - ".moban.d"
configuration: lml.yml configuration: lml.yml
targets: targets:

View File

@ -1,6 +1,15 @@
Change log Change log
================================================================================ ================================================================================
0.0.5 - unreleased
--------------------------------------------------------------------------------
Fixed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#. `#6 <https://github.com/chfw/lml/issues/6>`_: Catch and Ignore
ModuleNotFoundError
0.0.4 - 07.08.2018 0.0.4 - 07.08.2018
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -1,11 +1,17 @@
name: lml name: lml
organisation: chfw organisation: chfw
releases: releases:
- changes:
- action: Fixed
details:
- "`#6`: Catch and Ignore ModuleNotFoundError"
date: unreleased
version: 0.0.5
- changes: - changes:
- action: Added - action: Added
details: details:
- "`#4`: to find plugin names with different naming patterns" - "`#4`: to find plugin names with different naming patterns"
date: 07.08.2018 date: 07.08.2018
version: 0.0.4 version: 0.0.4
- changes: - changes:
- action: Added - action: Added

View File

@ -42,12 +42,7 @@ release = u'0.0.4'
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones. # ones.
extensions = [ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.viewcode',]
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
@ -74,7 +69,7 @@ language = 'en'
exclude_patterns = [] exclude_patterns = []
# The name of the Pygments (syntax highlighting) style to use. # The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx' pygments_style = None
# -- Options for HTML output ------------------------------------------------- # -- Options for HTML output -------------------------------------------------
@ -162,6 +157,24 @@ texinfo_documents = [
'Miscellaneous'), 'Miscellaneous'),
] ]
# -- Options for Epub output -------------------------------------------------
# Bibliographic Dublin Core info.
epub_title = project
# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
#
# epub_identifier = ''
# A unique identification for the text.
#
# epub_uid = ''
# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']
# -- Extension configuration ------------------------------------------------- # -- Extension configuration -------------------------------------------------
# -- Options for intersphinx extension --------------------------------------- # -- Options for intersphinx extension ---------------------------------------

View File

@ -2,9 +2,10 @@ import sys
import logging import logging
import logging.config import logging.config
from lml.loader import scan_plugins
from robotchef.plugin import CuisineManager, NoChefException from robotchef.plugin import CuisineManager, NoChefException
from lml.loader import scan_plugins
logging.basicConfig( logging.basicConfig(
format="%(name)s:%(lineno)d - %(levelname)s - %(message)s", format="%(name)s:%(lineno)d - %(levelname)s - %(message)s",
level=logging.DEBUG, level=logging.DEBUG,

View File

@ -1,8 +1,5 @@
from lml.loader import scan_plugins from lml.loader import scan_plugins
from robotchef_api.plugin import ( # noqa: F401 from robotchef_api.plugin import CuisineManager, NoChefException # noqa: F401
CuisineManager,
NoChefException,
)
BUILTINS = ["robotchef_api.robot_cuisine"] BUILTINS = ["robotchef_api.robot_cuisine"]

View File

@ -23,7 +23,7 @@ URL = 'https://github.com/chfw/lml'
DOWNLOAD_URL = '%s/archive/0.0.4.tar.gz' % URL DOWNLOAD_URL = '%s/archive/0.0.4.tar.gz' % URL
FILES = ['README.rst', 'CHANGELOG.rst'] FILES = ['README.rst', 'CHANGELOG.rst']
KEYWORDS = [ KEYWORDS = [
'python' 'python',
] ]
CLASSIFIERS = [ CLASSIFIERS = [

View File

@ -1,7 +1,6 @@
import json import json
from lml.plugin import PluginInfo from lml.plugin import PluginInfo
from nose.tools import eq_ from nose.tools import eq_

View File

@ -1,3 +1,4 @@
from mock import patch
from lml.plugin import ( from lml.plugin import (
PLUG_IN_MANAGERS, PLUG_IN_MANAGERS,
CACHED_PLUGIN_INFO, CACHED_PLUGIN_INFO,
@ -5,8 +6,6 @@ from lml.plugin import (
PluginManager, PluginManager,
_show_me_your_name, _show_me_your_name,
) )
from mock import patch
from nose.tools import eq_, raises from nose.tools import eq_, raises

View File

@ -1,7 +1,6 @@
from mock import patch
from lml.utils import do_import, json_dumps from lml.utils import do_import, json_dumps
from lml.plugin import PluginManager from lml.plugin import PluginManager
from mock import patch
from nose.tools import eq_ from nose.tools import eq_