Skip to content

Commit

Permalink
Bump pygithub from 1.59.1 to 2.1.1 (#82)
Browse files Browse the repository at this point in the history
* Bump pygithub from 1.59.1 to 2.1.1

Bumps [pygithub](https://github.com/pygithub/pygithub) from 1.59.1 to 2.1.1.
- [Release notes](https://github.com/pygithub/pygithub/releases)
- [Changelog](https://github.com/PyGithub/PyGithub/blob/main/doc/changes.rst)
- [Commits](PyGithub/PyGithub@v1.59.1...v2.1.1)

---
updated-dependencies:
- dependency-name: pygithub
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Use new auth

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: wooferzfg <[email protected]>
  • Loading branch information
dependabot[bot] and wooferzfg authored Nov 1, 2023
1 parent 163c6b8 commit cb4300f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions randobot/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from datetime import datetime

import shortuuid
from github import Github, InputFileContent
from github import Auth, Github, InputFileContent


class Generator:
Expand Down Expand Up @@ -45,7 +45,8 @@ def generate_seed(self, randomizer_path, permalink, username, generate_spoiler_l
os.remove(spoiler_log_file_name)

timestamp = datetime.now().strftime("%Y-%m-%d-%H:%M:%S")
gh = Github(self.github_token)
auth = Auth.Token(self.github_token)
gh = Github(auth=auth)
gh_auth_user = gh.get_user()
gist = gh_auth_user.create_gist(
public=False,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
version='1.0.0',
install_requires=[
'racetime_bot@git+https://github.com/wooferzfg/racetime-bot@tww-rando-bot',
'PyGithub==1.59.1',
'PyGithub==2.1.1',
'shortuuid==1.0.11',
'isodate>=0.6.1,<0.7',
],
Expand Down

0 comments on commit cb4300f

Please sign in to comment.