tests | |
---|---|
package |
pip install depr
Simple decorator to deprecate functions in your codebase.
Can be used passing a reason for deprecation:
@deprecate(reason="Changed to a better way") def function(): pass
A callable with the new function to use:
@deprecate(replacement=other_callable) def function(): pass
Or just no options, and it will still raise a DeprecatationWarning using the deprecated function name:
@deprecate def function(): pass
Contributions and ideas are of course welcome, to do so simply:
- fork this project
- make some changes branching from master
- raise a PR to this repository
- if the PR gets approved add yourself to CONTRIBUTORS
Use tox to run tests for all the supported platforms locally, and you will also get travis to run them for you as soon as you open a PR.