Skip to content

Commit 197f2f6

Browse files
committed
Update Readme and metadata
1 parent 6ce9f19 commit 197f2f6

File tree

5 files changed

+20
-23
lines changed

5 files changed

+20
-23
lines changed

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Development Lead
55
=================
66

77
- David Medina <[email protected]>
8-
- Francisco Marcos <[email protected]>
98

109
Forked and redesign from Kenneth Reitz's repo
1110
----------------------------------------------
@@ -21,3 +20,4 @@ Patches and Suggestions
2120
- Mahdi Yusuf
2221
- Rok Garbas
2322
- Antti Kaihola <[email protected]>
23+
- Francisco Marcos <[email protected]>

README.rst

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pygithub3
22
==========
33

4-
Pygithub3 is a wrapper to the `Github API v3 <http://developer.github.com/v3/>`_,
4+
Pygithub3 is a wrapper to the **Github API v3**,
55
written in Python.
66

77
It has been developed with extensibility in mind, because the ``API`` is in a
@@ -10,6 +10,10 @@ beta state, trying to achieve a very loosly coupled software.
1010
It should be very easy to extend to support new ``requests`` and ``resources``,
1111
because each of them are managed by itself.
1212

13+
`Pygithub3 docs <http://pygithub3.rtfd.org>`_
14+
15+
`Github API v3 docs <http://developer.github.com/v3/>`_
16+
1317
Fast install
1418
-------------
1519
::
@@ -20,25 +24,15 @@ Fast example
2024
-------------
2125
::
2226

23-
from pygithub3.github import Github
27+
from pygithub3 import Github
2428

25-
gh = Github()
26-
copitux = gh.users.get('copitux')
27-
copitux_followers = gh.users.followers.list('copitux')
28-
copitux_followers.all() # lazy iterator that must be consumed
29+
gh = Github(login='copitux', password='password')
2930

30-
gh.users.set_credentials(login='github_user', password='github_password')
31-
# or: gh.users.set_token('token_code')
32-
github_user = gh.users.get()
33-
gh.users.followers.set_credentials(login='another_user', password='another_password')
34-
another_user_followers = gh.users.followers.list().all()
35-
""" Continue...
36-
gh.users.emails.set_credentials( ...
37-
github_user_emails = gh.users.emails.list()
31+
copitux = gh.users.get()
32+
kennethreitz = gh.users.get('kennethreitz')
3833

39-
Each service (users, emails, followers ...) is isolated from the rest. Maybe in
40-
future releases the behaviour of Github component changes to share configuration
41-
"""
34+
copitux_repos = gh.repos.list().all()
35+
kennethreitz_repos = gh.repos.list('kennethreitz').all()
4236

4337
Achievements
4438
-------------
@@ -50,7 +44,6 @@ TODO
5044
-----
5145

5246
- `Repo service <http://developer.github.com/v3/repos/>`_
53-
- Docs
5447

5548
Contribute
5649
-----------

docs/conf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@
4949
# built documents.
5050
#
5151
# The short X.Y version.
52-
version = '0.2'
52+
try:
53+
from pygithub3 import __version__
54+
except:
55+
__version__ = 'dev'
56+
version = __version__
5357
# The full version, including alpha/beta/rc tags.
54-
release = '0.2'
58+
release = __version__
5559

5660
# The language for content autogenerated by Sphinx. Refer to documentation
5761
# for a list of supported languages.

pygithub3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- encoding: utf-8 -*-
33

44
__title__ = 'pygithub3'
5-
__version__ = '0.1'
5+
__version__ = '0.1.9'
66
__author__ = 'David Medina'
77
__email__ = '[email protected]'
88
__license__ = 'ISC'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'Programming Language :: Python :: 2.7',
2424
'License :: OSI Approved :: ISC License (ISCL)',
2525
'Operating System :: OS Independent',
26-
'Development Status :: 1 - Planning',
26+
'Development Status :: 3 - Alpha',
2727
'Intended Audience :: Developers',
2828
),
2929
)

0 commit comments

Comments
 (0)