Skip to content

Commit

Permalink
Update Python dependency PyGithub to v1.43.7 (#6519)
Browse files Browse the repository at this point in the history
* Update Python dependency PyGithub to v1.43.7

* Update `ext/readme.md`

* Update vendored code X 2
  • Loading branch information
renovate[bot] authored and medariox committed May 3, 2019
1 parent ecbfe45 commit b2e838c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ext/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
:: | `feedparser` | [2b11c80](https://github.com/kurtmckee/feedparser/tree/2b11c8028321ed43cbaf313f83b0c94820143d66) | **`medusa`** | ext | Requires `sgmllib3k` on Python 3
:: | **`future`**<br>`_dummy_thread`<br>`_markupbase`<br>`_thread`<br>`builtins`<br>`copyreg`<br>`html`<br>`http`<br>`libfuturize`<br>`libpasteurize`<br>`past`<br>`queue`<br>`reprlib`<br>`socketserver`<br>`tkinter`<br>`winreg`<br>`xmlrpc` | [0.17.1](https://pypi.org/project/future/0.17.1/) | **`medusa`**, `python-twitter`, ????? | **ext2** | -
:: | `futures` | [3.2.0](https://pypi.org/project/futures/3.2.0/) | **`medusa`**, `subliminal`, `tornado` | **ext2** | Module: `concurrent.futures`<br>Markers: `python_version >= '2.6' and python_version < '3'`
:: | `PyGithub` | [1.43.6](https://pypi.org/project/PyGithub/1.43.6/) | **`medusa`** | **ext2 ext3** | Module: `github`<br>**Removed tests**
:: | `PyGithub` | [1.43.7](https://pypi.org/project/PyGithub/1.43.7/) | **`medusa`** | **ext2 ext3** | Module: `github`
:: | `gntp` | [1.0.3](https://pypi.org/project/gntp/1.0.3/) | **`medusa`** | ext | -
:: | `guessit` | [74dbb0c](https://github.com/guessit-io/guessit/tree/74dbb0c7420cee18969926aba9cc06b8959daa0e) | **`medusa`**, `subliminal` | ext | -
:: | `html5lib` | [1.0.1](https://pypi.org/project/html5lib/1.0.1/) | **`medusa`** (via `beautifulsoup4`) | ext | -
Expand Down
4 changes: 2 additions & 2 deletions ext2/github/MainClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def create_jwt(self, expiration=60):
def get_access_token(self, installation_id, user_id=None):
"""
Get an access token for the given installation id.
POSTs https://api.github.com/installations/<installation_id>/access_tokens
POSTs https://api.github.com/app/installations/<installation_id>/access_tokens
:param user_id: int
:param installation_id: int
:return: :class:`github.InstallationAuthorization.InstallationAuthorization`
Expand All @@ -741,7 +741,7 @@ def get_access_token(self, installation_id, user_id=None):
if user_id:
body = {"user_id": user_id}
response = requests.post(
"https://api.github.com/installations/{}/access_tokens".format(installation_id),
"https://api.github.com/app/installations/{}/access_tokens".format(installation_id),
headers={
"Authorization": "Bearer {}".format(self.create_jwt()),
"Accept": Consts.mediaTypeIntegrationPreview,
Expand Down
4 changes: 2 additions & 2 deletions ext3/github/MainClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def create_jwt(self, expiration=60):
def get_access_token(self, installation_id, user_id=None):
"""
Get an access token for the given installation id.
POSTs https://api.github.com/installations/<installation_id>/access_tokens
POSTs https://api.github.com/app/installations/<installation_id>/access_tokens
:param user_id: int
:param installation_id: int
:return: :class:`github.InstallationAuthorization.InstallationAuthorization`
Expand All @@ -741,7 +741,7 @@ def get_access_token(self, installation_id, user_id=None):
if user_id:
body = {"user_id": user_id}
response = requests.post(
"https://api.github.com/installations/{}/access_tokens".format(installation_id),
"https://api.github.com/app/installations/{}/access_tokens".format(installation_id),
headers={
"Authorization": "Bearer {}".format(self.create_jwt()),
"Accept": Consts.mediaTypeIntegrationPreview,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Mako==1.0.8
markdown2==2.3.7
git+https://github.com/joestump/python-oauth2.git@6689960ca23f79eccf9a25a39e93f6540f44ca23#egg=oauth2
profilehooks==1.10.0
PyGithub==1.43.6
PyGithub==1.43.7
PyJWT==1.7.1
python-dateutil==2.8.0
python-twitter==3.5
Expand Down

0 comments on commit b2e838c

Please sign in to comment.