[python-cligj] 01/02: Imported Upstream version 0.3.0

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Mon Aug 17 19:30:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

johanvdw-guest pushed a commit to branch master
in repository python-cligj.

commit d5bdc47099c694990a430e43ff5d79cd7b12f6da
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Mon Aug 17 21:22:11 2015 +0200

    Imported Upstream version 0.3.0
---
 CHANGES.txt      |  6 ++++++
 README.rst       | 16 +++++++++++-----
 cligj/plugins.py |  8 ++++++++
 setup.py         |  4 ++--
 4 files changed, 27 insertions(+), 7 deletions(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index 322d831..defa767 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,9 @@
+0.3.0 (2015-08-12)
+------------------
+- Deprecation of the cligj.plugins module (#6). Please switch to the 
+  click-plugins module: https://github.com/click-contrib/click-plugins. The
+  cligj.plugins module will be removed from cligj at version 1.0.
+
 0.2.0 (2015-05-28)
 ------------------
 - Addition of a pluggable command group class and a corresponding click-style
diff --git a/README.rst b/README.rst
index f1ec307..82475b8 100755
--- a/README.rst
+++ b/README.rst
@@ -65,11 +65,17 @@ In this example, ``^^`` represents 0x1e.
 Plugins
 -------
 
-``cligj`` can also facilitate loading external `click-based <http://click.pocoo.org/4/>`_
-plugins via `setuptools entry points <https://pythonhosted.org/setuptools/setuptools.html#dynamic-discovery-of-services-and-plugins>`_.
-The ``cligj.plugins`` module contains a special ``group()`` decorator that behaves exactly like
-``click.group()`` except that it offers the opportunity load plugins and attach them to the
-group as it is istantiated.
+.. warning::
+   The cligj.plugins module is deprecated and will be removed at version 1.0.
+   Use `click-plugins <https://github.com/click-contrib/click-plugins>`_
+   instead.
+
+``cligj`` can also facilitate loading external `click-based
+<http://click.pocoo.org/4/>`_ plugins via `setuptools entry points
+<https://pythonhosted.org/setuptools/setuptools.html#dynamic-discovery-of-services-and-plugins>`_.
+The ``cligj.plugins`` module contains a special ``group()`` decorator that
+behaves exactly like ``click.group()`` except that it offers the opportunity
+load plugins and attach them to the group as it is istantiated.
 
 .. code-block:: python
 
diff --git a/cligj/plugins.py b/cligj/plugins.py
index 7ba38fc..9f4bff3 100644
--- a/cligj/plugins.py
+++ b/cligj/plugins.py
@@ -69,10 +69,18 @@ the command or use `--help`.
 import os
 import sys
 import traceback
+import warnings
 
 import click
 
 
+warnings.warn(
+    "cligj.plugins has been deprecated in favor of click-plugins: "
+    "https://github.com/click-contrib/click-plugins. The plugins "
+    "module will be removed in cligj 1.0.",
+    FutureWarning, stacklevel=2)
+
+
 class BrokenCommand(click.Command):
 
     """
diff --git a/setup.py b/setup.py
index 103de36..f09de36 100755
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ with codecs_open('README.rst', encoding='utf-8') as f:
 
 
 setup(name='cligj',
-      version='0.2.0',
+      version='0.3.0',
       description=u"Click params for commmand line interfaces to GeoJSON",
       long_description=long_description,
       classifiers=[],
@@ -21,7 +21,7 @@ setup(name='cligj',
       include_package_data=True,
       zip_safe=False,
       install_requires=[
-          'click>=3.0'
+          'click>=4.0'
       ],
       extras_require={
           'test': ['pytest'],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-cligj.git



More information about the Pkg-grass-devel mailing list