Skip to content

Commit

Permalink
added requirements.txt to manifest. deprecated jinja2_renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
knowsuchagency committed Jun 26, 2017
1 parent d023131 commit 8d92bae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst
include package.json
include requirements.txt

graft ninjadog

Expand Down
4 changes: 2 additions & 2 deletions ninjadog/ext/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def jinja2_renderer(string: str = '',
Returns: html string
"""
warnings.warn("\nThis function will be deprecated in the upcoming minor version " \
"use ninjadog.render(... with_jinja=True) instead", PendingDeprecationWarning, stacklevel=2)
warnings.warn("\nThis function is deprecated and will be removed in the upcoming minor version.\n" \
"Please use ninjadog.render(... with_jinja=True) instead", DeprecationWarning, stacklevel=2)
# lock arguments
pug_renderer = partial(_render,
context=context,
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ sphinx-autodoc-typehints==1.2.0
mypy==0.511
wheel==0.29.0
fabric3==1.13.1.post1
tox-pyenv==1.0.3
2 changes: 1 addition & 1 deletion tests/test_ninjadog.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_jinja2_renderer_raises_pending_deprecation():
import warnings
from ninjadog import jinja2_renderer
warnings.simplefilter('error')
with pytest.raises(PendingDeprecationWarning):
with pytest.raises(DeprecationWarning):
jinja2_renderer('h1 foo')


Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[tox]
envlist = py35, py36 flake8
envlist = py36

[travis]
python =
3.5: py35
3.6: py36

[testenv:flake8]
Expand Down

0 comments on commit 8d92bae

Please sign in to comment.