From c58d550b679c17628b4e76b4d982959926a5f21f Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Tue, 25 Dec 2012 13:14:52 +0100 Subject: [PATCH] Prepare version 1.10.0 + pep8 --- ReadMe.md | 25 ++----------------------- doc/ChangeLog.md | 9 +++++++++ github/GitignoreTemplate.py | 1 + github/tests/Github_.py | 2 +- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index dafafefd..e0052f23 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -13,8 +13,8 @@ What's new? [![Build Status](https://travis-ci.org/jacquev6/PyGithub.png?branch=master)](https://travis-ci.org/jacquev6/PyGithub) -Next version ------------- +[Version 1.10.0](https://github.com/jacquev6/PyGithub/issues?milestone=16&state=closed) (December 25th, 2012) (Christmas 2012 edition) +-------------------------------------------------------------------------------------------------------------------------------------- * Major improvement: support Python 3! PyGithub is automaticaly tested on [Travis](http://travis-ci.org/jacquev6/PyGithub) with versions 2.5, 2.6, 2.7, 3.1 and 3.2 of Python * Add a shortcut function `Github.get_repo` to get a repo directly from its full name. thank you [lwc](https://github.com/lwc) for the contribution @@ -22,27 +22,6 @@ Next version * Add the optional `ref` parameter to `Repository.get_contents` and `get_readme`. Thank you [fixxxeruk](https://github.com/fixxxeruk) for the contribution * Get comments for all issues and all pull requests on a repository (`GET /repos/:user/:repo/pulls/comments`: `Repository.get_pulls_comments` or `Repository.get_pulls_review_comments`; `GET /repos/:user/:repo/issues/comments`: `Repository.get_issues_comments`) -[Version 1.9.1](https://github.com/jacquev6/PyGithub/issues?milestone=17&state=closed) (November 20th, 2012) ------------------------------------------------------------------------------------------------------------- - -* Fix an assertion failure when integers returned by Github do not fit in a Python `int` - -[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 - Previous versions ----------------- diff --git a/doc/ChangeLog.md b/doc/ChangeLog.md index e2b1689c..bed6db9b 100644 --- a/doc/ChangeLog.md +++ b/doc/ChangeLog.md @@ -1,3 +1,12 @@ +[Version 1.10.0](https://github.com/jacquev6/PyGithub/issues?milestone=16&state=closed) (December 25th, 2012) (Christmas 2012 edition) +-------------------------------------------------------------------------------------------------------------------------------------- + +* Major improvement: support Python 3! PyGithub is automaticaly tested on [Travis](http://travis-ci.org/jacquev6/PyGithub) with versions 2.5, 2.6, 2.7, 3.1 and 3.2 of Python +* Add a shortcut function `Github.get_repo` to get a repo directly from its full name. thank you [lwc](https://github.com/lwc) for the contribution +* `Github.get_gitignore_templates` and `Github.get_gitignore_template` for APIs `/gitignore/templates` +* Add the optional `ref` parameter to `Repository.get_contents` and `get_readme`. Thank you [fixxxeruk](https://github.com/fixxxeruk) for the contribution +* Get comments for all issues and all pull requests on a repository (`GET /repos/:user/:repo/pulls/comments`: `Repository.get_pulls_comments` or `Repository.get_pulls_review_comments`; `GET /repos/:user/:repo/issues/comments`: `Repository.get_issues_comments`) + [Version 1.9.1](https://github.com/jacquev6/PyGithub/issues?milestone=17&state=closed) (November 20th, 2012) ------------------------------------------------------------------------------------------------------------ diff --git a/github/GitignoreTemplate.py b/github/GitignoreTemplate.py index e28c8dc9..b683b913 100644 --- a/github/GitignoreTemplate.py +++ b/github/GitignoreTemplate.py @@ -15,6 +15,7 @@ import github.GithubObject + class GitignoreTemplate(github.GithubObject.BasicGithubObject): @property def source(self): diff --git a/github/tests/Github_.py b/github/tests/Github_.py index b8faf1f1..9a14be65 100644 --- a/github/tests/Github_.py +++ b/github/tests/Github_.py @@ -106,4 +106,4 @@ class Github(Framework.TestCase): t = self.g.get_gitignore_template("C++") self.assertEqual(t.name, "C++") - self.assertEqual(t.source,"# Compiled Object files\n*.slo\n*.lo\n*.o\n\n# Compiled Dynamic libraries\n*.so\n*.dylib\n\n# Compiled Static libraries\n*.lai\n*.la\n*.a\n") + self.assertEqual(t.source, "# Compiled Object files\n*.slo\n*.lo\n*.o\n\n# Compiled Dynamic libraries\n*.so\n*.dylib\n\n# Compiled Static libraries\n*.lai\n*.la\n*.a\n")