Update doc link for PyPI

This commit is contained in:
Wan Liuyang
2018-03-02 11:37:27 +08:00
parent b2461670d3
commit 8daae1375e
3 changed files with 13 additions and 17 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ First create a Github instance::
Then play with your Github objects::
for repo in g.get_user().get_repos():
print repo.name
print(repo.name)
repo.edit(has_wiki=False)
Download and install
+2 -2
View File
@@ -89,7 +89,7 @@ class PaginatedList(PaginatedListBase):
You can simply enumerate through instances of this class::
for repo in user.get_repos():
print repo.name
print(repo.name)
You can also index them or take slices::
@@ -99,7 +99,7 @@ class PaginatedList(PaginatedListBase):
If you want to iterate in reversed order, just do::
for repo in user.get_repos().reversed:
print repo.name
print(repo.name)
And if you really need it, you can explicitely access a specific page::
+10 -14
View File
@@ -38,7 +38,7 @@ if __name__ == "__main__":
description="Use the full Github API v3",
author="Vincent Jacques",
author_email="vincent@vincent-jacques.net",
url="http://pygithub.github.io/PyGithub/v1/index.html",
url="http://pygithub.readthedocs.io/en/latest/",
long_description=textwrap.dedent("""\
(Very short) Tutorial
=====================
@@ -46,27 +46,23 @@ if __name__ == "__main__":
First create a Github instance::
from github import Github
# using username and password
g = Github("user", "password")
# or using an access token
g = Github("access_token")
Then play with your Github objects::
for repo in g.get_user().get_repos():
print repo.name
print(repo.name)
repo.edit(has_wiki=False)
You can also create a Github instance with an OAuth token::
g = Github(token)
Or without authentication::
g = Github()
Reference documentation
=======================
See http://pygithub.github.io/PyGithub/v1/index.html"""),
See http://pygithub.readthedocs.io/en/latest/"""),
packages=[
"github",
"github.tests",