Skip to content

Commit

Permalink
Merge pull request #4 from NZME/deprecation
Browse files Browse the repository at this point in the history
added deprecation warning, bump to v0.0.7
  • Loading branch information
therefromhere authored Jan 10, 2017
2 parents 7e58014 + 4176ab0 commit 189611a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
Django Constance CLI
====================
Django Constance CLI - Deprecated
=================================

Command-line interface for `django constance <https://github.com/jazzband/django-constance/>`_.

Deprecation
-----------

django-constance-cli is deprecated, the functionality is part of django-constance>=1.3.4.

See https://github.com/jazzband/django-constance/pull/180


Installation
------------
Expand All @@ -15,6 +22,7 @@ Installation
Change Log
----------

- 0.0.7 Added deprecation warning
- 0.0.6 Fix `--help` (doesn't like ugettext_lazy)
- 0.0.5 Travis -> PyPi
- 0.0.4 Travis build
Expand Down
6 changes: 5 additions & 1 deletion constance_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
__version__ = '0.0.6'
import warnings

__version__ = '0.0.7'

warnings.warn("django-constance-cli is deprecated, the functionality is part of django-constance>=1.3.4", DeprecationWarning)
4 changes: 4 additions & 0 deletions constance_cli_test/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

from django.utils import six

import warnings

warnings.simplefilter('always', DeprecationWarning)

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Expand Down

0 comments on commit 189611a

Please sign in to comment.