Prepare version 1.9.0

This commit is contained in:
Vincent Jacques
2012-11-19 21:40:17 +01:00
parent 63a56e074a
commit 86033f8a62
4 changed files with 35 additions and 4 deletions
+14 -3
View File
@@ -13,10 +13,21 @@ What's new?
[![Build Status](https://secure.travis-ci.org/jacquev6/PyGithub.png)](http://travis-ci.org/jacquev6/PyGithub)
[Version 1.8.1](https://github.com/jacquev6/PyGithub/issues?milestone=15&state=closed) (October 28th, 2012)
-----------------------------------------------------------------------------------------------------------
[Version 1.9.0](https://github.com/jacquev6/PyGithub/issues?milestone=14&state=closed) (November 19th, 2012)
------------------------------------------------------------------------------------------------------------
* Repository.get_git_ref prepends "refs/" to the requested references. Thank you [simon-weber](https://github.com/simon-weber) for noting the incoherence between documentation and behavior. If you feel like it's a breaking change, please see [this issue](https://github.com/jacquev6/PyGithub/issues/104)
* You can now use your client_id and client_secret to increase rate limiting without authentication
* You can now send a custom User-Agent
* PullRequest now has its 'assignee' attribute, thank you [mstead](https://github.com/mstead)
* Repository.edit now has 'default_branch' parameter
* create_repo has 'auto_init' and 'gitignore_template' parameters
* GistComment URL is changed (see http://developer.github.com/changes/2012-10-31-gist-comment-uris)
* A typo in the readme was fixed by [tymofij](https://github.com/tymofij), thank you
* Internal stuff:
* Add encoding comment to Python files, thank you [Zearin](https://github.com/Zearin)
* Restore support of Python 2.5
* Restore coverage measurement in setup.py test
* Small refactoring
Previous versions
-----------------
+16
View File
@@ -1,3 +1,19 @@
[Version 1.9.0](https://github.com/jacquev6/PyGithub/issues?milestone=14&state=closed) (November 19th, 2012)
------------------------------------------------------------------------------------------------------------
* You can now use your client_id and client_secret to increase rate limiting without authentication
* You can now send a custom User-Agent
* PullRequest now has its 'assignee' attribute, thank you [mstead](https://github.com/mstead)
* Repository.edit now has 'default_branch' parameter
* create_repo has 'auto_init' and 'gitignore_template' parameters
* GistComment URL is changed (see http://developer.github.com/changes/2012-10-31-gist-comment-uris)
* A typo in the readme was fixed by [tymofij](https://github.com/tymofij), thank you
* Internal stuff:
* Add encoding comment to Python files, thank you [Zearin](https://github.com/Zearin)
* Restore support of Python 2.5
* Restore coverage measurement in setup.py test
* Small refactoring
[Version 1.8.1](https://github.com/jacquev6/PyGithub/issues?milestone=15&state=closed) (October 28th, 2012)
-----------------------------------------------------------------------------------------------------------
+4
View File
@@ -10,7 +10,11 @@ Constructed from user's login and password or OAuth token or nothing:
g = Github( token )
g = Github()
You can also use your client_id and client_secret:
g = github.Github(client_id="YourClientId", client_secret="YourClientSecret")
You can add an argument `base_url = "http://my.enterprise.com:8080/path/to/github"` to connect to a local install of Github (ie. Github Enterprise).
You can add an argument `user_agent` to send a custom User-Agent header to Github.
Another argument, that can be passed is `timeout` which has default value `10`.
Attributes
+1 -1
View File
@@ -32,7 +32,7 @@ class Authentication(Framework.BasicTestCase):
# Warning: I don't have a scret key, so the requests for this test are forged
def testSecretKeyAuthentication(self):
g = github.Github(client_id=self.client_id,client_secret=self.client_secret)
g = github.Github(client_id=self.client_id, client_secret=self.client_secret)
self.assertListKeyEqual(g.get_organization("BeaverSoftware").get_repos("public"), lambda r: r.name, ["FatherBeaver", "PyGithub"])
def testUserAgent(self):