From 46020575a632f1a4b78c878c84d40e1400ccd42c Mon Sep 17 00:00:00 2001 From: James Rowe Date: Mon, 11 Jun 2012 13:08:14 +0100 Subject: [PATCH 1/5] Rewording of the API v3 migration note. There has been a reprieve for the API v2 switch-off, and the note from 3414c22d25a54624e554be5bdb8a6fb327ff27d7 is no longer as urgent. --- README.rst | 5 ++--- doc/index.rst | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index a266014..b3897ef 100644 --- a/README.rst +++ b/README.rst @@ -8,8 +8,8 @@ github2 - GitHub API v2 library for Python. .. warning:: - GitHub are planning to `switch off API v2`_ on 2012-05-01, you should - be looking to replace ``github2`` as soon as possible. + GitHub have marked API v2 as deprecated, you should be looking to replace + your usage of ``github2`` in the near future. Both remoteobjects_ and micromodels_ provide easy-to-use functionality for creating bindings to remote APIs, and should significantly reduce the amount @@ -21,7 +21,6 @@ of the `GitHub API`_. See the ``doc/`` directory for installation instructions and usage information. If you prefer you can also read the `documentation online`_. -.. _switch off API v2: https://github.com/blog/1090-github-api-moving-on .. _remoteobjects: https://github.com/saymedia/remoteobjects .. _micromodels: https://github.com/j4mie/micromodels .. _GitHub API: http://develop.github.com/ diff --git a/doc/index.rst b/doc/index.rst index d909c02..963e6a2 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -16,14 +16,13 @@ .. warning:: - GitHub are planning to `switch off API v2`_ on 2012-05-01, you should - be looking to replace ``github2`` as soon as possible. + GitHub have marked API v2 as deprecated, you should be looking to replace + your usage of ``github2`` in the near future. Both remoteobjects_ and micromodels_ provide easy-to-use functionality for creating bindings to remote APIs, and should significantly reduce the amount of work needed in moving away from GitHub's API v2. -.. _switch off API v2: https://github.com/blog/1090-github-api-moving-on .. _remoteobjects: https://github.com/saymedia/remoteobjects .. _micromodels: https://github.com/j4mie/micromodels From 8647c559ceb9b0ecd3af68e728e36fb2de4b6ab2 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Mon, 11 Jun 2012 13:09:34 +0100 Subject: [PATCH 2/5] Minor fixes to quickstart doc. This makes the usage far closer to what a user would expect in an interactive session. --- doc/quickstart.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/quickstart.rst b/doc/quickstart.rst index 2d3988f..ff54b29 100644 --- a/doc/quickstart.rst +++ b/doc/quickstart.rst @@ -13,6 +13,7 @@ package. Create an unauthenticated client object:: + >>> from github2.client import Github >>> github = Github() .. note:: @@ -28,6 +29,7 @@ Read the description of the ``python-github2`` project:: >>> repo = github.repos.show("ask/python-github2") >>> repo.description + u'github client in python, with issues support.' We can take advantage of Python's :func:`dir` to explore the package a little more:: From 698394fa0d5e03ca43a02dccd4ce6a2f553576f5 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Mon, 11 Jun 2012 13:22:19 +0100 Subject: [PATCH 3/5] Include ChangeLog in sdist generated tarballs. --- MANIFEST.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MANIFEST.in b/MANIFEST.in index ac52cc3..e77f35d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,6 @@ recursive-include examples * + +include ChangeLog include NEWS.rst include README.rst include AUTHORS From 587f415607426a1eb1ab8e13f8ea0031525d3de6 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Mon, 11 Jun 2012 13:46:39 +0100 Subject: [PATCH 4/5] Bumped version to 0.6.2. --- NEWS.rst | 6 ++++++ README.rst | 2 +- github2/_version.py | 14 +++++++------- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index e7092fe..eaa874c 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -6,6 +6,12 @@ look at the `git repository`_ for the full project history. .. _git repository: https://github.com/ask/python-github2/ +0.6.2 - 2012-06-11 +------------------ + +* Updated dependencies to handle recent ``python-dateutil`` releases +* Fixed ``simplejson`` dependencies for Python 2.4 + 0.6.1 - 2012-02-28 ------------------ diff --git a/README.rst b/README.rst index b3897ef..a91633f 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ github2 - GitHub API v2 library for Python. :Authors: Ask Solem (askh@opera.com) -:Version: 0.6.1 +:Version: 0.6.2 .. warning:: diff --git a/github2/_version.py b/github2/_version.py index 0269a27..6e26b1f 100644 --- a/github2/_version.py +++ b/github2/_version.py @@ -1,9 +1,9 @@ -# This is github2 version 0.6.1 (2012-02-28) +# This is github2 version 0.6.2 (2012-06-11) # pylint: disable=C0103, C0111, C0121, W0622 -dotted = "0.6.1" -libtool = "6:21" -hex = 0x000601 -date = "2012-02-28" -tuple = (0, 6, 1) -web = "github2/0.6.1" +dotted = "0.6.2" +libtool = "6:22" +hex = 0x000602 +date = "2012-06-11" +tuple = (0, 6, 2) +web = "github2/0.6.2" From 4287019520643e2fcd46c9c5b3aac439cdc35b88 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Tue, 20 Jul 2021 07:48:23 +1000 Subject: [PATCH 5/5] docs: Fix a few typos (#82) There are small typos in: - github2/client.py - github2/request.py Fixes: - Should read `specific` rather than `specifc`. - Should read `occurred` rather than `occured`. --- github2/client.py | 2 +- github2/request.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/github2/client.py b/github2/client.py index 56b5dcd..d0a3f2b 100644 --- a/github2/client.py +++ b/github2/client.py @@ -107,7 +107,7 @@ def get_blob_info(self, project, tree_sha, path): return blob.get("blob") def get_tree(self, project, tree_sha): - """Get tree information for a specifc tree. + """Get tree information for a specific tree. :param str project: GitHub project :param str tree_sha: object ID of tree diff --git a/github2/request.py b/github2/request.py index 1314c77..5961471 100644 --- a/github2/request.py +++ b/github2/request.py @@ -113,7 +113,7 @@ class GithubError(Exception): class HttpError(RuntimeError): - """A HTTP error occured when making a request to the GitHub API.""" + """A HTTP error occurred when making a request to the GitHub API.""" def __init__(self, message, content, code): """Create a HttpError exception.