Skip to content

Commit

Permalink
Add Readme and Bump Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea de Marco committed Dec 2, 2014
1 parent 5395e0a commit 05e33eb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
16 changes: 16 additions & 0 deletions README.rst
Expand Up @@ -106,6 +106,22 @@ Cookie-based Authentication

resource = RTResource('http://<HOST>/REST/1.0/', '<USER>', '<PWD>', CookieAuthenticator)

QueryString-based Authentication
---------------------------

::

from rtkit.resource import RTResource
from rtkit.authenticators import QueryStringAuthenticator
from rtkit.errors import RTResourceError

from rtkit import set_logging
import logging
set_logging('debug')
logger = logging.getLogger('rtkit')

resource = RTResource('http://<HOST>/REST/1.0/', '<USER>', '<PWD>', QueryStringAuthenticator)

Kerberos Authentication
---------------------------

Expand Down
2 changes: 1 addition & 1 deletion rtkit/__init__.py
@@ -1,5 +1,5 @@
__author__ = 'Andrea De Marco <24erre@gmail.com>'
__version__ = '0.6.2'
__version__ = '0.7.0'
__classifiers__ = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand Down
3 changes: 2 additions & 1 deletion rtkit/authenticators.py
Expand Up @@ -17,11 +17,12 @@
import urllib
import urllib2
import cookielib
from urlparse import urlparse, urlsplit, parse_qs, urlunsplit
from urlparse import urlsplit, parse_qs, urlunsplit

__all__ = [
'BasicAuthenticator',
'CookieAuthenticator',
'QueryStringAuthenticator',
'KerberosAuthenticator',
]
if os.environ.get('__GEN_DOCS__', None):
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Expand Up @@ -15,7 +15,7 @@
version = pkg.__version__
classifiers = pkg.__classifiers__

readme = open(os.path.join(wd, 'README.rst'),'r').readlines()
readme = open(os.path.join(wd, 'README.rst'), 'r').readlines()
description = readme[1]
long_description = ''.join(readme)

Expand All @@ -35,8 +35,8 @@
description=description,
long_description=long_description,
classifiers=classifiers,
install_requires = reqs,
install_requires=reqs,
packages=find_packages(),
license = 'Apache License 2.0',
keywords ='RequestTracker REST',
license='Apache License 2.0',
keywords='RequestTracker REST',
)

0 comments on commit 05e33eb

Please sign in to comment.