From 44038ffe97d4d5cc141402c376303fa0462c157d Mon Sep 17 00:00:00 2001 From: ckaznocha Date: Sat, 30 Aug 2014 16:47:21 -0400 Subject: [PATCH 1/2] Push to PyPi --- .travis.yml | 9 +++++++++ README.md | 9 ++++----- setup.cfg | 2 ++ setup.py | 3 ++- 4 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 setup.cfg diff --git a/.travis.yml b/.travis.yml index e48da71..c04d1a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 3a34c54..3c568b8 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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, @@ -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 @@ -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 @@ -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']) ```` diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b88034e --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md diff --git a/setup.py b/setup.py index 9584403..920785e 100644 --- a/setup.py +++ b/setup.py @@ -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', packages=find_packages(), - keywords="Axosoft" + keywords=["Axosoft", "scrum", "api", "ontime"], ) From 7146196ce6f41e143ac936fca9db680aad4e8be5 Mon Sep 17 00:00:00 2001 From: ckaznocha Date: Sat, 30 Aug 2014 16:53:56 -0400 Subject: [PATCH 2/2] Fix version number --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 920785e..846acbf 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +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', + download_url='http://github.com/ckaznocha/axosoft-python/tarball/0.1.0', packages=find_packages(), keywords=["Axosoft", "scrum", "api", "ontime"], )