From 45951339237ccff296024f0be1218cd1e01dc5c1 Mon Sep 17 00:00:00 2001 From: chfw Date: Tue, 4 Dec 2018 07:06:56 +0000 Subject: [PATCH] :egg: :ferris_wheel: release 0.5.11 --- CHANGELOG.rst | 9 +++++++++ changelog.yml | 6 ++++++ docs/source/conf.py | 4 ++-- pyexcel-io.yml | 8 ++++---- pyexcel_io/__init__.py | 8 ++++++-- pyexcel_io/plugins.py | 11 +++++++---- requirements.txt | 2 +- setup.py | 10 +++++----- 8 files changed, 40 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f7748a7..410225f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,15 @@ Change log ================================================================================ +0.5.10 - 3.12.2018 +-------------------------------------------------------------------------------- + +updated +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +#. `#59 `_: Please use + scan_plugins_regex, which lml 0.7 complains about + 0.5.10 - 27.11.2018 -------------------------------------------------------------------------------- diff --git a/changelog.yml b/changelog.yml index f0756e2..bee720a 100644 --- a/changelog.yml +++ b/changelog.yml @@ -1,6 +1,12 @@ name: pyexcel-io organisation: pyexcel releases: +- changes: + - action: updated + details: + - '`#59`: Please use scan_plugins_regex, which lml 0.7 complains about' + version: 0.5.10 + date: 3.12.2018 - changes: - action: added details: diff --git a/docs/source/conf.py b/docs/source/conf.py index 4abe12e..29f2cd4 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -29,9 +29,9 @@ copyright = u'2015-2018 Onni Software Ltd.' author = u'C.W.' # The short X.Y version -version = u'0.5.10' +version = u'0.5.11' # The full version, including alpha/beta/rc tags -release = u'0.5.10' +release = u'0.5.11' # -- General configuration --------------------------------------------------- diff --git a/pyexcel-io.yml b/pyexcel-io.yml index a9d5edc..9465bb3 100644 --- a/pyexcel-io.yml +++ b/pyexcel-io.yml @@ -1,12 +1,12 @@ overrides: "pyexcel.yaml" name: "pyexcel-io" nick_name: io -version: 0.5.10 -current_version: 0.5.10 -release: 0.5.10 +version: 0.5.11 +current_version: 0.5.11 +release: 0.5.11 dependencies: - ordereddict;python_version<"2.7" - - lml>=0.0.2 + - lml>=0.0.4 extra_dependencies: - xls: - pyexcel-xls>=0.5.0 diff --git a/pyexcel_io/__init__.py b/pyexcel_io/__init__.py index 3c7db99..b50c3e3 100644 --- a/pyexcel_io/__init__.py +++ b/pyexcel_io/__init__.py @@ -22,6 +22,10 @@ WHITE_LIST = [ "pyexcel_io.writers", "pyexcel_io.database", ] -PREFIX = "pyexcel_" +PREFIX_PATTERN = "^pyexcel_.*$" -plugins.load_plugins(PREFIX, __path__, BLACK_LIST, WHITE_LIST) +plugins.load_plugins( + PREFIX_PATTERN, + __path__, # noqa: F821 + BLACK_LIST, + WHITE_LIST) diff --git a/pyexcel_io/plugins.py b/pyexcel_io/plugins.py index 9674929..016e0a2 100644 --- a/pyexcel_io/plugins.py +++ b/pyexcel_io/plugins.py @@ -7,7 +7,7 @@ :copyright: (c) 2014-2017 by Onni Software Ltd. :license: New BSD License, see LICENSE for more details """ -from lml.loader import scan_plugins +from lml.loader import scan_plugins_regex from lml.plugin import PluginManager from lml.plugin import PluginInfoChain, PluginInfo @@ -132,8 +132,11 @@ READERS = IOManager(READER_PLUGIN, ioutils.AVAILABLE_READERS) WRITERS = IOManager(WRITER_PLUGIN, ioutils.AVAILABLE_WRITERS) -def load_plugins(prefix, path, black_list, white_list): +def load_plugins(plugin_name_patterns, path, black_list, white_list): """Try to discover all pyexcel-io plugins""" - scan_plugins( - prefix, path, black_list, white_list # constants.DEFAULT_PLUGIN_NAME, + scan_plugins_regex( + plugin_name_patterns=plugin_name_patterns, + pyinstaller_path=path, + black_list=black_list, + white_list=white_list ) diff --git a/requirements.txt b/requirements.txt index 54f884b..dac001a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ ordereddict;python_version<"2.7" -lml>=0.0.2 +lml>=0.0.4 diff --git a/setup.py b/setup.py index 470cbf5..dd5852d 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ PY26 = PY2 and sys.version_info[1] < 7 NAME = 'pyexcel-io' AUTHOR = 'C.W.' -VERSION = '0.5.10' +VERSION = '0.5.11' EMAIL = 'wangc_2011@hotmail.com' LICENSE = 'New BSD' DESCRIPTION = ( @@ -21,7 +21,7 @@ DESCRIPTION = ( 'format and to/from databases' ) URL = 'https://github.com/pyexcel/pyexcel-io' -DOWNLOAD_URL = '%s/archive/0.5.10.tar.gz' % URL +DOWNLOAD_URL = '%s/archive/0.5.11.tar.gz' % URL FILES = ['README.rst', 'CHANGELOG.rst'] KEYWORDS = [ 'python', @@ -49,7 +49,7 @@ CLASSIFIERS = [ ] INSTALL_REQUIRES = [ - 'lml>=0.0.2', + 'lml>=0.0.4', ] SETUP_COMMANDS = {} @@ -65,8 +65,8 @@ EXTRAS_REQUIRE = { # 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 pyexcel-io v0.5.10 ' + - "Find 0.5.10 in changelog for more details") +GS_COMMAND = ('gs pyexcel-io v0.5.11 ' + + "Find 0.5.11 in changelog for more details") NO_GS_MESSAGE = ('Automatic github release is disabled. ' + 'Please install gease to enable it.') UPLOAD_FAILED_MSG = (