Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 6183cf3

Browse files
author
Ben Olive
committed
Merge git://github.com/ask/python-github2
Conflicts: github2/request.py
2 parents 30880a4 + 587f415 commit 6183cf3

67 files changed

Lines changed: 1788 additions & 900 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
.DS_Store
2-
.coverage
3-
.noseids
4-
.ropeproject/
5-
.tox/
6-
*.pyc
7-
*~
8-
*.sqlite
9-
*.sqlite-journal
10-
settings_local.py
11-
local_settings.py
1+
*.egg-info/
2+
123
.*.sw[po]
4+
*.py[co]
5+
6+
build/
137
dist/
14-
*.egg-info
158
doc/.build/
16-
build/
17-
locale/
9+
.ropeproject/
10+
.tox/
11+
12+
ChangeLog
1813
pip-log.txt
14+
15+
.DS_Store
16+
.coverage
17+
.noseids

.ucopy.cfg

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[repo]
2+
name = python-github2
3+
license-from = bsd-3
4+
vcs = git
5+
6+
[files]
7+
ignore-from = git
8+
ignore-glob = COPYING, README.rst, .keep, test/data/github.com,api*
9+
10+
[patch]
11+
unicode = python
12+
13+
[author-override]
14+
Ask Solem = <askh@modwheel.net> <askh@opera.com>
15+
Chris Vale = <crispywalrus@gmail.com>
16+
Claudio B. = <claudiob@gmail.com>
17+
Daniel Greenfeld = <pydanny@gmail.com>
18+
Donald von Stufft = <donald@xenofox.com>
19+
Michael Basnight = <mbasnight@gmail.com>
20+
Sameer Al-Sakran = <sameer@whitelabellabs.com>
21+
Stéphane Angel = <s.angel@twidi.com>

AUTHORS

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,38 @@
1-
Ask Solem <askh@opera.com>
2-
Mark Paschal <markpasc@markpasc.org>
3-
Donald von Stufft <donald@xenofox.com>
4-
Maximillian Dornseif
1+
python-github2 was written by:
2+
3+
Ask Solem <askh@modwheel.net>
4+
5+
with contributions from the following people:
6+
7+
Adam Vandenberg <flangy@gmail.com>
58
Asheesh Laroia <asheesh@openhatch.org>
6-
Rick Harris <rick.harris@rackspace.com>
7-
Cody Soyland <codysoyland@gmail.com>
8-
Fernando Perez <Fernando.Perez@berkeley.edu>
9-
Evan Broder <broder@mit.edu>
10-
Scott Torborg <scott@crookedmedia.com>
11-
Claudio B. <claudiob@gmail.com>
9+
Barthelemy Dagenais <bart@cs.mcgill.ca>
1210
Chris Vale <crispywalrus@gmail.com>
13-
Adam Vandenberg <flangy@gmail.com>
14-
Kenneth Reitz <me@kennethreitz.com>
11+
Christopher MacGown <ignoti+github@gmail.com>
12+
Claudio B. <claudiob@gmail.com>
13+
Cody Soyland <codysoyland@gmail.com>
1514
Daniel Greenfeld <pydanny@gmail.com>
15+
Donald von Stufft <donald@xenofox.com>
16+
Evan Broder <broder@mit.edu>
17+
Fernando Perez <Fernando.Perez@berkeley.edu>
18+
Ionuț Arțăriși <mapleoin@lavabit.com>
19+
James Rowe <jnrowe@gmail.com>
20+
Jens Ohlig <jens.ohlig@gmail.com>
1621
Jeremy Dunck <jdunck@gmail.com>
1722
Jonas Obrist <jonas.obrist@divio.ch>
18-
Sameer Al-Sakran <sameer@whitelabellabs.com>
19-
Vincent Driessen <vincent@datafox.nl>
20-
James Rowe <jnrowe@gmail.com>
2123
Josh Weinberg <daemoncollector@gmail.com>
22-
Barthelemy Dagenais <bart@cs.mcgill.ca>
23-
Surajram Kumarave <root@surajram.com>
24-
broderboy <timothy.broder@gmail.com>
25-
Patryk Zawadzki <patrys@pld-linux.org>
24+
Justin Quick <justquick@gmail.com>
25+
Kenneth Reitz <me@kennethreitz.com>
26+
Mark Paschal <markpasc@markpasc.org>
27+
Maximillian Dornseif <m.dornseif@hudora.de>
2628
Michael Basnight <mbasnight@gmail.com>
27-
Christopher MacGown <ignoti+github@gmail.com>
29+
Patryk Zawadzki <patrys@pld-linux.org>
30+
Rick Harris <rick.harris@rackspace.com>
2831
Rok Garbas <rok@garbas.si>
29-
Ionuț Arțăriși <mapleoin@lavabit.com>
32+
Sameer Al-Sakran <sameer@whitelabellabs.com>
33+
Scott Torborg <scott@crookedmedia.com>
3034
Stéphane Angel <s.angel@twidi.com>
35+
Surajram Kumaravel <root@surajram.com>
36+
Vincent Driessen <vincent@datafox.nl>
37+
broderboy <timothy.broder@gmail.com>
38+
modocache <modocache@gmail.com>

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
recursive-include examples *
2+
3+
include ChangeLog
24
include NEWS.rst
35
include README.rst
46
include AUTHORS

NEWS.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,22 @@ look at the `git repository`_ for the full project history.
66

77
.. _git repository: https://github.com/ask/python-github2/
88

9-
.. contents::
9+
0.6.2 - 2012-06-11
10+
------------------
11+
12+
* Updated dependencies to handle recent ``python-dateutil`` releases
13+
* Fixed ``simplejson`` dependencies for Python 2.4
14+
15+
0.6.1 - 2012-02-28
16+
------------------
17+
18+
* Support for `GitHub:Enterprise`_ using the ``github_url`` parameter when
19+
creating a client
20+
* Adds SSH key management
21+
* Support reading SSL certificates from the location set in ``CURL_CA_BUNDLE``,
22+
if all else fails
23+
24+
.. _GitHub:Enterprise: https://enterprise.github.com/
1025

1126
0.6.0 - 2011-12-21
1227
------------------

README.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
11
================================================================================
2-
github2 - Github API v2 library for Python.
2+
github2 - GitHub API v2 library for Python.
33
================================================================================
44

55
:Authors:
66
Ask Solem (askh@opera.com)
7-
:Version: 0.6.0
7+
:Version: 0.6.2
8+
9+
.. warning::
10+
11+
GitHub have marked API v2 as deprecated, you should be looking to replace
12+
your usage of ``github2`` in the near future.
13+
14+
Both remoteobjects_ and micromodels_ provide easy-to-use functionality for
15+
creating bindings to remote APIs, and should significantly reduce the amount
16+
of work needed in moving away from GitHub's API v2.
817

918
This is a Python library implementing all of the features available in version 2
10-
of the `Github API`_.
19+
of the `GitHub API`_.
1120

1221
See the ``doc/`` directory for installation instructions and usage information.
1322
If you prefer you can also read the `documentation online`_.
1423

15-
.. _Github API: http://develop.github.com/
24+
.. _remoteobjects: https://github.com/saymedia/remoteobjects
25+
.. _micromodels: https://github.com/j4mie/micromodels
26+
.. _GitHub API: http://develop.github.com/
1627
.. _documentation online: http://packages.python.org/github2
1728

1829
License

doc/.templates/layout.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{#
2+
Copyright (C) 2011-2012 James Rowe <jnrowe@gmail.com>
3+
4+
This file is part of python-github2, and is licensed under the 3-clause BSD
5+
License. See the LICENSE file in the top distribution directory for the full
6+
license text.
7+
#}
18
{% extends "!layout.html" %}
29

310
{% block extrahead %}

doc/api/client.rst

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
.. Copyright (C) 2011-2012 James Rowe <jnrowe@gmail.com>
2+
Michael Basnight <mbasnight@gmail.com>
3+
modocache <modocache@gmail.com>
4+
5+
This file is part of python-github2, is licensed under the 3-clause BSD
6+
License. See the LICENSE file in the top distribution directory for the full
7+
license text.
8+
19
.. module:: github2.client
210

311
Creating a client
@@ -42,12 +50,25 @@ API calls are limited by github.com to 1 per second by default. To have the
4250
>>> github = Github(username="ask", api_token=".......",
4351
... requests_per_second=1)
4452

45-
If you wish to use a HTTP proxy you can pass in the ``proxy_host`` and
46-
``proxy_port`` settings to enable it. The default for ``proxy_port``, if not
47-
given, is 8080::
53+
By default, :pypi:`httplib2 (0.7.4)` will use the proxies set in the
54+
:envvar:`http_proxy` andr :envvar:`https_proxy` environment variables. This
55+
means that well configured systems shouldn't need any manual configuration for
56+
proxy support.
57+
58+
If you wish to manually configure a HTTP proxy you can pass in the
59+
``proxy_host`` and ``proxy_port`` settings to enable it. The default for
60+
``proxy_port``, if not given, is 8080::
4861

4962
>>> from github2.client import Github
5063
>>> github = Github(username="ask", api_token=".......",
5164
... proxy_host="my.proxy.com", proxy_port=9000)
5265

66+
You may specify a GitHub Enterprise URL by passing in the ``github_url``
67+
setting. If you do not specify ``github_url``, requests will be made to
68+
https://github.com/.
69+
70+
>>> from github2.client import Github
71+
>>> github = Github(username="modocache", api_token=".......",
72+
... github_url="http://your-github-enterprise-url.com/")
73+
5374
.. _OAuth service: http://develop.github.com/p/oauth.html

doc/api/commit.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
.. Copyright (C) 2011-2012 James Rowe <jnrowe@gmail.com>
2+
3+
This file is part of python-github2, is licensed under the 3-clause BSD
4+
License. See the LICENSE file in the top distribution directory for the full
5+
license text.
6+
17
.. module:: github2.commits
28

39
Commit

doc/api/core.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
.. Copyright (C) 2011-2012 James Rowe <jnrowe@gmail.com>
2+
3+
This file is part of python-github2, is licensed under the 3-clause BSD
4+
License. See the LICENSE file in the top distribution directory for the full
5+
license text.
6+
17
.. module:: github2.core
28

39
Core
@@ -30,10 +36,10 @@ Core
3036

3137
.. autofunction:: repr_string
3238

33-
.. autoclass:: GithubCommand(type)
39+
.. autoclass:: GithubCommand
3440

35-
.. autoclass:: Attribute(type)
41+
.. autoclass:: Attribute
3642

37-
.. autoclass:: DateAttribute(type)
43+
.. autoclass:: DateAttribute(help, format)
3844

39-
.. autoclass:: BaseDataType(type)
45+
.. autoclass:: BaseData()

0 commit comments

Comments
 (0)