From 57af7011917b07585c903c495735ef92cd5f0e8f Mon Sep 17 00:00:00 2001 From: Cory Dodt Date: Fri, 29 Dec 2017 23:38:05 -0800 Subject: [PATCH] 0.5.1 whoops backwards compatibility --- README.md | 9 +++++---- codado/_version.py | 2 +- codado/kleinish/openapi.py | 6 ++++++ codado/kleinish/tree.py | 6 ++++++ 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 codado/kleinish/openapi.py create mode 100644 codado/kleinish/tree.py diff --git a/README.md b/README.md index b63ef43..4d3ba60 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,8 @@ A library of utilities for systems application development - codado.tx.Main: a Twisted Usage helper that creates a useful main() function - codado.dockerish: a docker event listener that integrates with the Twisted event loop and can automatically call handlers for events -- codado.kleinish.tree: a decorator for klein @route methods that delegates into another class with a "subklein" of other routes -- urltool: A command-line tool that dumps klein routes from a project, when - the project is using kleinish.tree - ## Running Tests ``` @@ -38,6 +34,10 @@ $ twine upload dist/* ``` ## Change Log +### [0.5.1] - 2017.12.29 +#### Added: + - For backward compatibility, restore `codado.kleinish.tree` and `.openapi` (which are still deprecated) + ### [0.5.0] - 2017.12.29 #### Added: - fix `install_requires` missing `mock` to help pip installation @@ -58,5 +58,6 @@ $ twine upload dist/* - 0.4: Initial public usable release [Crosscap]: https://github.com/corydodt/Crosscap +[0.5.1]: https://github.com/corydodt/Codado/compare/release-0.5.0...release-0.5.1 [0.5.0]: https://github.com/corydodt/Codado/compare/release-0.4.0...release-0.5.0 [0.4]: https://github.com/corydodt/Codado/tree/release-0.4.0 diff --git a/codado/_version.py b/codado/_version.py index 7ca0c03..801a946 100644 --- a/codado/_version.py +++ b/codado/_version.py @@ -1,2 +1,2 @@ -__version__ = "0.5.0" +__version__ = "0.5.1" __all__ = ["__version__"] diff --git a/codado/kleinish/openapi.py b/codado/kleinish/openapi.py new file mode 100644 index 0000000..90d11b5 --- /dev/null +++ b/codado/kleinish/openapi.py @@ -0,0 +1,6 @@ +""" +Backwards-compatibility only: import textHTML and queryParameter +""" +from crosscap.openapi import textHTML, queryParameter + +(textHTML, queryParameter) # for pyflakes diff --git a/codado/kleinish/tree.py b/codado/kleinish/tree.py new file mode 100644 index 0000000..f08bbc9 --- /dev/null +++ b/codado/kleinish/tree.py @@ -0,0 +1,6 @@ +""" +Backwards-compatibility only: import the decorators +""" +from crosscap.tree import enter, openAPIDoc + +(enter, openAPIDoc) # for pyflakes