Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfaa4cc8

Browse files
committed
Merge tag '0.9.3' into debian
Release v0.9.3
2 parents5749db6 +52a3f30 commitfaa4cc8

File tree

61 files changed

+639
-213
lines changed

Some content is hidden

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

61 files changed

+639
-213
lines changed

‎.travis.yml‎

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
language:python
2-
python:
3-
-2.6
4-
-2.7
5-
-3.2
6-
-3.3
7-
-3.4
8-
-pypy
9-
# command to run tests, e.g. python setup.py test
102
before_script:
11-
-pip install-r dev-requirements.txt
3+
-pip installtox
124
-pip install -U requests"$REQUESTS_VERSION"
135

146
# test script
15-
script:make travis
7+
script:tox -e ${TOX_ENV}
168
notifications:
17-
on_success:change
18-
on_failure:always
9+
on_success:change
10+
on_failure:always
1911

2012
env:
2113
global:
2214
-TRAVIS_GH3="True"
2315
matrix:
24-
-REQUESTS_VERSION="==2.0.1"
25-
-REQUESTS_VERSION=""# Latest
16+
-TOX_ENV=py26 REQUESTS_VERSION="==2.0.1"
17+
-TOX_ENV=py27 REQUESTS_VERSION="==2.0.1"
18+
-TOX_ENV=py32 REQUESTS_VERSION="==2.0.1"
19+
-TOX_ENV=py33 REQUESTS_VERSION="==2.0.1"
20+
-TOX_ENV=py34 REQUESTS_VERSION="==2.0.1"
21+
-TOX_ENV=pypy REQUESTS_VERSION="==2.0.1"
22+
-TOX_ENV=py26 REQUESTS_VERSION=""
23+
-TOX_ENV=py27 REQUESTS_VERSION=""
24+
-TOX_ENV=py32 REQUESTS_VERSION=""
25+
-TOX_ENV=py33 REQUESTS_VERSION=""
26+
-TOX_ENV=py34 REQUESTS_VERSION=""
27+
-TOX_ENV=pypy REQUESTS_VERSION=""
28+
-TOX_ENV=py27-flake8
29+
-TOX_ENV=py34-flake8
30+
31+
matrix:
32+
allow_failures:
33+
-env:TOX_ENV=py27-flake8
34+
-env:TOX_ENV=py34-flake8

‎AUTHORS.rst‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,21 @@ Contributors
6262
- Benjamin Gilbert (@bgilbert)
6363

6464
- Daniel Johnson (@danielj7)
65+
66+
- David Moss (@damoss007)
67+
68+
- John Barbuto (@jbarbuto)
69+
70+
- Nikolay Bryskin (@nikicat)
71+
72+
- Tomi Äijö (@tomiaijo)
73+
74+
- jnothman (@jnothman)
75+
76+
- Cameron Davidson-Pilon (@CamDavidsonPilon)
77+
78+
- Alex Couper (@alexcouper)
79+
80+
- Marc Abramowitz (@msabramo)
81+
82+
- Adrian Moisey (@adrianmoisey)

‎HISTORY.rst‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,39 @@
11
History/Changelog
22
-----------------
33

4+
0.9.3: 2014-11-04
5+
~~~~~~~~~~~~~~~~~
6+
7+
- Backport of ``PullRequest#create_review_comment`` by Adrian Moisey
8+
9+
- Backport of ``PullRequest#review_comments`` by Adrian Moisey
10+
11+
- Backport of a fix that allows authenticated users to download Release
12+
Assets. Original bug reported by Eugene Fidelin in issue #288.
13+
14+
- Documentation typo fix by Marc Abramowitz
15+
16+
0.9.2: 2014-10-05
17+
~~~~~~~~~~~~~~~~~
18+
19+
- Updates for `new team management`_ API changes
20+
21+
- Add ``Team#invite``, ``Team#membership_for``, and
22+
``Team#revoke_membership``
23+
24+
- Deprecate ``Team#add_member``, ``Team#remove_member``, and
25+
``Organization#add_member``.
26+
27+
- Update payload handler for ``TeamAddEvent``.
28+
29+
.. _new team management:
30+
https://developer.github.com/changes/2014-09-23-one-more-week-before-the-add-team-member-api-breaking-change/
31+
32+
0.9.1: 2014-08-10
33+
~~~~~~~~~~~~~~~~~
34+
35+
- Correct Repository attribute ``fork_count`` should be ``forks_count``
36+
437
0.9.0: 2014-05-04
538
~~~~~~~~~~~~~~~~~
639

‎docs/examples/gist.rst‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Creating an anonymous gist
4646
'content': 'What... is the air-speed velocity of an unladen swallow?'
4747
}
4848
}
49-
gist = create_gist('Answer this to cross the bridge', files, public=False)
49+
gist = create_gist('Answer this to cross the bridge', files)
5050
comments = [c for c in gist.iter_comments()]
5151
# []
5252
comment = gist.create_comment('Bogus. This will not work.')
@@ -59,3 +59,5 @@ file type based on extension provided. ``'What... is the air-speed velocity of
5959
an unladen swallow?'`` is the file's content or body. ``'Answer this to cross
6060
the bridge'`` is the gists's description. While required by github3.py, it is
6161
allowed to be empty, e.g., ``''`` is accepted by GitHub.
62+
63+
Note that anonymous gists are always public.

‎github3/__init__.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
__author__='Ian Cordasco'
1515
__license__='Modified BSD'
1616
__copyright__='Copyright 2012-2014 Ian Cordasco'
17-
__version__='0.9.0'
17+
__version__='0.9.3'
1818
__version_info__=tuple(int(i)foriin__version__.split('.'))
1919

20-
fromgithub3.apiimport*
21-
fromgithub3.githubimportGitHub,GitHubEnterprise,GitHubStatus
22-
fromgithub3.modelsimportGitHubError
20+
from .apiimport*
21+
from .githubimportGitHub,GitHubEnterprise,GitHubStatus
22+
from .modelsimportGitHubError
2323

2424
# flake8: noqa

‎github3/auths.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"""
99
from __future__importunicode_literals
1010

11-
fromgithub3.decoratorsimportrequires_basic_auth
12-
fromgithub3.modelsimportGitHubCore
11+
from .decoratorsimportrequires_basic_auth
12+
from .modelsimportGitHubCore
1313

1414

1515
classAuthorization(GitHubCore):

‎github3/decorators.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def auth_wrapper(self, *args, **kwargs):
3737
ifauth:
3838
returnfunc(self,*args,**kwargs)
3939
else:
40-
fromgithub3.modelsimportGitHubError
40+
from .modelsimportGitHubError
4141
# Mock a 401 response
4242
r=generate_fake_error_response(
4343
'{"message": "Requires authentication"}'
@@ -58,7 +58,7 @@ def auth_wrapper(self, *args, **kwargs):
5858
ifhasattr(self,'_session')andself._session.auth:
5959
returnfunc(self,*args,**kwargs)
6060
else:
61-
fromgithub3.modelsimportGitHubError
61+
from .modelsimportGitHubError
6262
# Mock a 401 response
6363
r=generate_fake_error_response(
6464
'{"message": "Requires username/password authentication"}'
@@ -80,7 +80,7 @@ def auth_wrapper(self, *args, **kwargs):
8080
ifclient_idandclient_secret:
8181
returnfunc(self,*args,**kwargs)
8282
else:
83-
fromgithub3.modelsimportGitHubError
83+
from .modelsimportGitHubError
8484
# Mock a 401 response
8585
r=generate_fake_error_response(
8686
'{"message": "Requires username/password authentication"}'

‎github3/events.py‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99
from __future__importunicode_literals
1010

11-
fromgithub3.modelsimportGitHubObject
11+
from .modelsimportGitHubObject
1212

1313

1414
classEvent(GitHubObject):
@@ -31,8 +31,8 @@ class Event(GitHubObject):
3131

3232
def__init__(self,event):
3333
super(Event,self).__init__(event)
34-
fromgithub3.usersimportUser
35-
fromgithub3.orgsimportOrganization
34+
from .usersimportUser
35+
from .orgsimportOrganization
3636
#: :class:`User <github3.users.User>` object representing the actor.
3737
self.actor=User(event.get('actor'))ifevent.get('actor')elseNone
3838
#: datetime object representing when the event was created.
@@ -75,36 +75,36 @@ def is_public(self):
7575

7676

7777
def_commitcomment(payload):
78-
fromgithub3.repos.commentimportRepoComment
78+
from .repos.commentimportRepoComment
7979
ifpayload.get('comment'):
8080
payload['comment']=RepoComment(payload['comment'],None)
8181
returnpayload
8282

8383

8484
def_follow(payload):
85-
fromgithub3.usersimportUser
85+
from .usersimportUser
8686
ifpayload.get('target'):
8787
payload['target']=User(payload['target'],None)
8888
returnpayload
8989

9090

9191
def_forkev(payload):
92-
fromgithub3.reposimportRepository
92+
from .reposimportRepository
9393
ifpayload.get('forkee'):
9494
payload['forkee']=Repository(payload['forkee'],None)
9595
returnpayload
9696

9797

9898
def_gist(payload):
99-
fromgithub3.gistsimportGist
99+
from .gistsimportGist
100100
ifpayload.get('gist'):
101101
payload['gist']=Gist(payload['gist'],None)
102102
returnpayload
103103

104104

105105
def_issuecomm(payload):
106-
fromgithub3.issuesimportIssue
107-
fromgithub3.issues.commentimportIssueComment
106+
from .issuesimportIssue
107+
from .issues.commentimportIssueComment
108108
ifpayload.get('issue'):
109109
payload['issue']=Issue(payload['issue'],None)
110110
ifpayload.get('comment'):
@@ -113,51 +113,51 @@ def _issuecomm(payload):
113113

114114

115115
def_issueevent(payload):
116-
fromgithub3.issuesimportIssue
116+
from .issuesimportIssue
117117
ifpayload.get('issue'):
118118
payload['issue']=Issue(payload['issue'],None)
119119
returnpayload
120120

121121

122122
def_member(payload):
123-
fromgithub3.usersimportUser
123+
from .usersimportUser
124124
ifpayload.get('member'):
125125
payload['member']=User(payload['member'],None)
126126
returnpayload
127127

128128

129129
def_pullreqev(payload):
130-
fromgithub3.pullsimportPullRequest
130+
from .pullsimportPullRequest
131131
ifpayload.get('pull_request'):
132132
payload['pull_request']=PullRequest(payload['pull_request'],None)
133133
returnpayload
134134

135135

136136
def_pullreqcomm(payload):
137-
fromgithub3.pullsimportReviewComment
137+
from .pullsimportReviewComment
138138
ifpayload.get('comment'):
139139
payload['comment']=ReviewComment(payload['comment'],None)
140140
returnpayload
141141

142142

143143
def_release(payload):
144-
fromgithub3.repos.releaseimportRelease
144+
from .repos.releaseimportRelease
145145
release=payload.get('release')
146146
ifrelease:
147147
payload['release']=Release(release)
148148
returnpayload
149149

150150

151151
def_team(payload):
152-
fromgithub3.orgsimportTeam
153-
fromgithub3.reposimportRepository
154-
fromgithub3.usersimportUser
152+
from .orgsimportTeam
153+
from .reposimportRepository
154+
from .usersimportUser
155155
ifpayload.get('team'):
156156
payload['team']=Team(payload['team'],None)
157157
ifpayload.get('repo'):
158158
payload['repo']=Repository(payload['repo'],None)
159-
ifpayload.get('user'):
160-
payload['user']=User(payload['user'],None)
159+
ifpayload.get('sender'):
160+
payload['sender']=User(payload['sender'],None)
161161
returnpayload
162162

163163

‎github3/gists/comment.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"""
99
from __future__importunicode_literals
1010

11-
fromgithub3.modelsimportBaseComment
12-
fromgithub3.usersimportUser
11+
from..modelsimportBaseComment
12+
from..usersimportUser
1313

1414

1515
classGistComment(BaseComment):

‎github3/gists/file.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
from __future__importunicode_literals
99

10-
fromgithub3.modelsimportGitHubObject
10+
from..modelsimportGitHubObject
1111

1212

1313
classGistFile(GitHubObject):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp