Avoid confusion between github/ and Github.py on case-insensitive file systems (#143)

This commit is contained in:
Vincent Jacques
2013-03-12 10:16:06 +01:00
parent 86fe370b97
commit a39f421ca2
6 changed files with 23 additions and 32 deletions
+4 -13
View File
@@ -10,21 +10,12 @@ PyGithub is stable. I will maintain it up to date with the API, and fix bugs if
What's new?
===========
Version 1.12.2 (March 3rd, 2013)
--------------------------------
`Version 1.13.0 <https://github.com/jacquev6/PyGithub/issues?milestone=23&state=closed>`_ (March 15th, 2013) (`ksookocheff-va <https://github.com/ptwobrussell>`_'s edition)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
* `Fix <https://github.com/jacquev6/PyGithub/issues/142>`_ major issue with Python 3: Json decoding was broken. Thank you `bilderbuchi <https://github.com/bilderbuchi>`_ for reporting
All issues solved in this version were reported by `ksookocheff-va <https://github.com/ptwobrussell>`_. Thank you!
Version 1.12.1 (February 20th, 2013)
------------------------------------
* Nothing, but packaging/upload of 1.12.0 failed
`Version 1.12.0 <https://github.com/jacquev6/PyGithub/issues?milestone=22&state=closed>`_ (February 20th, 2013)
---------------------------------------------------------------------------------------------------------------
* Much better documentation: http://jacquev6.github.com/PyGithub
* `Implement <https://github.com/jacquev6/PyGithub/issues/140>`_ ``github.Repository.Repository.get_gir_contents``. Thank you `ksookocheff-va <https://github.com/ksookocheff-va>`_ for asking
* `Fix <https://github.com/jacquev6/PyGithub/issues/143>`_ for Python 3 on case-insensitive file-systems
Documentation
=============
+13 -13
View File
@@ -23,7 +23,7 @@ APIs
* ``/gists/:id``
* GET: :meth:`github.Github.Github.get_gist`
* GET: :meth:`github.MainClass.Github.get_gist`
* PATCH: :meth:`github.Gist.Gist.edit`
* DELETE: :meth:`github.Gist.Gist.delete`
@@ -50,7 +50,7 @@ APIs
* ``/gists/public``
* GET: :meth:`github.Github.Github.get_gists`
* GET: :meth:`github.MainClass.Github.get_gists`
* ``/gists/starred``
@@ -58,15 +58,15 @@ APIs
* ``/gitignore/templates``
* GET: :meth:`github.Github.Github.get_gitignore_templates`
* GET: :meth:`github.MainClass.Github.get_gitignore_templates`
* ``/gitignore/templates/:name``
* GET: :meth:`github.Github.Github.get_gitignore_template`
* GET: :meth:`github.MainClass.Github.get_gitignore_template`
* ``/hooks``
* GET: :meth:`github.Github.Github.get_hooks`
* GET: :meth:`github.MainClass.Github.get_hooks`
* ``/hub``
@@ -82,19 +82,19 @@ APIs
* ``/legacy/repos/search/:keyword``
* GET: :meth:`github.Github.Github.legacy_search_repos`
* GET: :meth:`github.MainClass.Github.legacy_search_repos`
* ``/legacy/user/email/:email``
* GET: :meth:`github.Github.Github.legacy_search_user_by_email`
* GET: :meth:`github.MainClass.Github.legacy_search_user_by_email`
* ``/legacy/user/search/:keyword``
* GET: :meth:`github.Github.Github.legacy_search_users`
* GET: :meth:`github.MainClass.Github.legacy_search_users`
* ``/markdown``
* POST: :meth:`github.Github.Github.render_markdown`
* POST: :meth:`github.MainClass.Github.render_markdown`
* ``/markdown/raw``
@@ -106,7 +106,7 @@ APIs
* ``/orgs/:org``
* GET: :meth:`github.Github.Github.get_organization`
* GET: :meth:`github.MainClass.Github.get_organization`
* PATCH: :meth:`github.Organization.Organization.edit`
* ``/orgs/:org/events``
@@ -148,7 +148,7 @@ APIs
* ``/repos/:user/:repo``
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_repo` or :meth:`github.NamedUser.NamedUser.get_repo` or :meth:`github.Organization.Organization.get_repo` or :meth:`github.Github.Github.get_repo`
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_repo` or :meth:`github.NamedUser.NamedUser.get_repo` or :meth:`github.Organization.Organization.get_repo` or :meth:`github.MainClass.Github.get_repo`
* PATCH: :meth:`github.Repository.Repository.edit`
* DELETE: :meth:`github.Repository.Repository.delete`
@@ -482,7 +482,7 @@ APIs
* ``/user``
* GET: :meth:`github.Github.Github.get_user`
* GET: :meth:`github.MainClass.Github.get_user`
* PATCH: :meth:`github.AuthenticatedUser.AuthenticatedUser.edit`
* ``/user/emails``
@@ -557,7 +557,7 @@ APIs
* ``/users/:user``
* GET: :meth:`github.Github.Github.get_user`
* GET: :meth:`github.MainClass.Github.get_user`
* ``/users/:user/events``
+3 -3
View File
@@ -31,14 +31,14 @@ Version 1.12.1 (February 20th, 2013)
* Fix bug in PaginatedList without url parameters. Thank you `llimllib <https://github.com/llimllib>`_ for the `contribution <https://github.com/jacquev6/PyGithub/pull/133>`_
* `Implement <https://github.com/jacquev6/PyGithub/issues/130>`_ :meth:`github.NamedUser.NamedUser.get_keys`
* `Support PubSubHub <https://github.com/jacquev6/PyGithub/issues/129>`_: :meth:`github.Repository.Repository.subscribe_to_hub` and :meth:`github.Repository.Repository.unsubscribe_from_hub`
* `Publish the oauth scopes <https://github.com/jacquev6/PyGithub/issues/134>`_ in :attr:`github.Github.Github.oauth_scopes`, thank you `bilderbuchi <https://github.com/bilderbuchi>`_ for asking
* `Publish the oauth scopes <https://github.com/jacquev6/PyGithub/issues/134>`_ in :attr:`github.MainClass.Github.oauth_scopes`, thank you `bilderbuchi <https://github.com/bilderbuchi>`_ for asking
`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 :meth:`github.Github.Github.get_repo` to get a repo directly from its full name. thank you `lwc <https://github.com/lwc>`_ for the contribution
* :meth:`github.Github.Github.get_gitignore_templates` and :meth:`github.Github.Github.get_gitignore_template` for APIs ``/gitignore/templates``
* Add a shortcut function :meth:`github.MainClass.Github.get_repo` to get a repo directly from its full name. thank you `lwc <https://github.com/lwc>`_ for the contribution
* :meth:`github.MainClass.Github.get_gitignore_templates` and :meth:`github.MainClass.Github.get_gitignore_template` for APIs ``/gitignore/templates``
* Add the optional ``ref`` parameter to :meth:`github.Repository.Repository.get_contents` and :meth:`github.Repository.Repository.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``: :meth:`github.Repository.Repository.get_pulls_comments` or :meth:`github.Repository.Repository.get_pulls_review_comments`; ``GET /repos/:user/:repo/issues/comments``: :meth:`github.Repository.Repository.get_issues_comments`)
+1 -1
View File
@@ -1,4 +1,4 @@
Main class: Github
==================
.. autoclass:: github.Github.Github
.. autoclass:: github.MainClass.Github
+2 -2
View File
@@ -14,14 +14,14 @@
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
"""
The primary class you will instanciate is :class:`github.Github.Github`.
The primary class you will instanciate is :class:`github.MainClass.Github`.
From its ``get_``, ``create_`` methods, you will obtain instances of all Github objects
like :class:`github.NamedUser.NamedUser` or :class:`github.Repository.Repository`.
"""
import logging
from Github import Github
from MainClass import Github
from GithubException import GithubException
from InputFileContent import InputFileContent
from InputGitAuthor import InputGitAuthor