diff --git a/msys2_autobuild/gh.py b/msys2_autobuild/gh.py index 501baa5..0e823c7 100644 --- a/msys2_autobuild/gh.py +++ b/msys2_autobuild/gh.py @@ -72,6 +72,7 @@ def get_github(write: bool = False) -> Github: kwargs['per_page'] = 100 kwargs['timeout'] = sum(REQUESTS_TIMEOUT) kwargs['seconds_between_requests'] = None + kwargs['lazy'] = True gh = Github(**kwargs) if auth is None and not write: print(f"[Warning] Rate limit status: {gh.get_rate_limit().core}", file=sys.stderr) diff --git a/poetry.lock b/poetry.lock index 7241963..89cacd2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -927,4 +927,4 @@ files = [ [metadata] lock-version = "2.1" python-versions = "^3.10" -content-hash = "8137910be83a0332aa71d0b3db583e40b251c17e9238f537a47d7fd892a16850" +content-hash = "a3bec96df66794a5e5342117a9c6d70dce2cc233611f0479275c8eed6dc54211" diff --git a/pyproject.toml b/pyproject.toml index 96a4b31..3b7060c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Christoph Reiter "] [tool.poetry.dependencies] python = "^3.10" -PyGithub = "^2.1.1" +PyGithub = "^2.6.0" tabulate = "^0.9.0" requests = "^2.28.1" requests-cache = "^1.0.0"