10 Commits

Author SHA1 Message Date
Brant Knudson
b913f827bb Fix to preserve argspec
The positional wrapper is fixed so that the argspec of the wrapped
function is preserved.
2016-04-15 11:20:47 -05:00
Morgan Fainberg
6e859de3ec Fix version string.
Version string for positional, not python-keystoneclient
2016-01-17 12:45:38 -08:00
Jamie Lennox
fc43875e6d Emit a DeprecationWarning rather than log a message
When used as a library we really don't know how logging will be
configured in the calling application so we shouldn't be logging our own
messages. Instead the standard way to signal deprecation is via a
DeprecationWarning.

Change the WARN enforcement to emit a warning instead of logging.

Resolves: #1
2016-01-14 12:32:28 +11:00
Morgan Fainberg
12ab596539 Merge branch 'jamielennox-readme'
Conflicts:
	README.rst
2016-01-13 17:21:27 -08:00
Morgan Fainberg
0090b9b776 Merge pull request #5 from jamielennox/from-positional
Use from positional import positional syntax
2016-01-13 16:36:13 -08:00
Morgan Fainberg
5c4522c3aa Add Sphinx Documentation
Add in support for sphinx documentation.
2016-01-13 16:32:15 -08:00
Jamie Lennox
7e2d1345fe Move doc into readme and write shorter class doc
The class documentation is quite long because I had to explain it to
everyone that was using it when it was first reviewed. This sort of
information makes more sense in the README.

Move the documentation to the README and write a more focused class
doc string.
2016-01-14 10:33:39 +11:00
Jamie Lennox
c3e142923d Use from positional import positional syntax
This is always how i expected the class to be used and is why the WARN
and EXCEPT variables are on both the module and the class. It's much
neater and in the style of from pprint import pprint.

The tests should reflect the way we expect people to consume it.
2016-01-14 10:22:06 +11:00
Morgan Fainberg
640322793f Add tests and support files.
Add in the testing and support files for travis, LICENSEing. This
commit also ensures that all the files are no longer referencing
python-keystoneclient.
2016-01-12 21:36:03 -08:00
Morgan Fainberg
bf40e3819b Initial Commit
Initial commit of the positional decorator for the positional
pypi package.
2016-01-12 21:04:47 -08:00