Skip to content

Commit 4c8e739

Browse files
committed
Merge pull request #40 from ckaznocha/release/0.1.0
Release/0.1.0
2 parents 9bef125 + 7146196 commit 4c8e739

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@ install:
1616
- travis_retry pip install tox
1717
script:
1818
- travis_retry tox
19+
deploy:
20+
provider: pypi
21+
user: ckaznocha
22+
password:
23+
secure: Wz7oufpB43HUAi/DXsJRVcIOUfBkLy7jZzE7+G/xRTKq+mQ3pTMTJ186Vj1EXEUfkXYpi86YAIcevzCFTi1Hrgp8pKme/6Xe+n6nArdChplVnxx6jr54sizaBPppXaejr/VuXvN0tCKl8AninHcmFlzwzRbzMJFoA8H/H6+PgoY=
24+
on:
25+
tags: true
26+
repo: ckaznocha/axosoft-python
27+
branch: master

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ axosoft-python
44
[![Coverage Status](https://img.shields.io/coveralls/ckaznocha/axosoft-python.svg)](https://coveralls.io/r/ckaznocha/axosoft-python?branch=master)
55
[![Code Health](https://landscape.io/github/ckaznocha/axosoft-python/master/landscape.png)](https://landscape.io/github/ckaznocha/axosoft-python/master)
66
[![Stories in Ready](https://badge.waffle.io/ckaznocha/axosoft-python.svg?label=ready&title=stories+ready)](http://waffle.io/ckaznocha/axosoft-python)
7-
[![Stories in Progress](https://badge.waffle.io/ckaznocha/axosoft-python.svg?label=in+progress&title=stories+in+progress)](http://waffle.io/ckaznocha/axosoft-python)
87
[![License](http://img.shields.io/:license-mit-blue.svg)](http://ckaznocha.mit-license.org)
98

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

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

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

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

124123
````
125124

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
author="Clifton Kaznocha",
1212
author_email="clifton@kaznocha.com",
1313
url="http://github.com/ckaznocha/axosoft-python",
14+
download_url='http://github.com/ckaznocha/axosoft-python/tarball/0.1.0',
1415
packages=find_packages(),
15-
keywords="Axosoft"
16+
keywords=["Axosoft", "scrum", "api", "ontime"],
1617
)

0 commit comments

Comments
 (0)