Skip to content

Commit

Permalink
Merge pull request #40 from ckaznocha/release/0.1.0
Browse files Browse the repository at this point in the history
Release/0.1.0
  • Loading branch information
ckaznocha committed Aug 30, 2014
2 parents 9bef125 + 7146196 commit 4c8e739
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ install:
- travis_retry pip install tox
script:
- travis_retry tox
deploy:
provider: pypi
user: ckaznocha
password:
secure: Wz7oufpB43HUAi/DXsJRVcIOUfBkLy7jZzE7+G/xRTKq+mQ3pTMTJ186Vj1EXEUfkXYpi86YAIcevzCFTi1Hrgp8pKme/6Xe+n6nArdChplVnxx6jr54sizaBPppXaejr/VuXvN0tCKl8AninHcmFlzwzRbzMJFoA8H/H6+PgoY=
on:
tags: true
repo: ckaznocha/axosoft-python
branch: master
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ axosoft-python
[![Coverage Status](https://img.shields.io/coveralls/ckaznocha/axosoft-python.svg)](https://coveralls.io/r/ckaznocha/axosoft-python?branch=master)
[![Code Health](https://landscape.io/github/ckaznocha/axosoft-python/master/landscape.png)](https://landscape.io/github/ckaznocha/axosoft-python/master)
[![Stories in Ready](https://badge.waffle.io/ckaznocha/axosoft-python.svg?label=ready&title=stories+ready)](http://waffle.io/ckaznocha/axosoft-python)
[![Stories in Progress](https://badge.waffle.io/ckaznocha/axosoft-python.svg?label=in+progress&title=stories+in+progress)](http://waffle.io/ckaznocha/axosoft-python)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://ckaznocha.mit-license.org)

An unofficial Python module for the Axosoft (formerly OnTime) API.
Expand Down Expand Up @@ -66,7 +65,7 @@ An unofficial Python module for the Axosoft (formerly OnTime) API.
Once they have authenticated they will be forwarded to the URL you provided.
Exchanged to code for a token by passing the code and the redirect_uri to complete_authentication_by_code().
"""
code = "query_string["code"]"
code = code_from_redirect_url

token = self.axosoft_client.complete_authentication_by_code(
code,
Expand Down Expand Up @@ -101,7 +100,7 @@ An unofficial Python module for the Axosoft (formerly OnTime) API.
The second argument is optionally the ID of a specific resource
The third argument is optionally a dictionary of parameters
"""
r = axosoft_client.get('releases', r['id'])
r = axosoft_client.get('releases', r['data']['id'])

"""
Update a release
Expand All @@ -110,7 +109,7 @@ An unofficial Python module for the Axosoft (formerly OnTime) API.
The second argument is the ID of the resource you are updating
The third arguments is a dictionary containing all the fields of your resource
"""
r = axosoft_client.update('releases', r['id'], payload={'name': 'testRelease', 'release_type': {'id': 1}})
r = axosoft_client.update('releases', r['data']['id'], payload={'name': 'testRelease', 'release_type': {'id': 1}})

"""
Delete a release
Expand All @@ -119,7 +118,7 @@ An unofficial Python module for the Axosoft (formerly OnTime) API.
The second argument is the ID of the resource you want to delete
Returns true if the delete was successful
"""
r = self.axosoft_client.delete('releases', r['id'])
r = self.axosoft_client.delete('releases', r['data']['id'])

````

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
author="Clifton Kaznocha",
author_email="clifton@kaznocha.com",
url="http://github.com/ckaznocha/axosoft-python",
download_url='http://github.com/ckaznocha/axosoft-python/tarball/0.1.0',
packages=find_packages(),
keywords="Axosoft"
keywords=["Axosoft", "scrum", "api", "ontime"],
)

0 comments on commit 4c8e739

Please sign in to comment.