Skip to content

PyGithub get_emails now returns a named tuple #409

Description

@DamianZaremba

Since PyGithub/PyGithub#1890 get_emails is now a named tuple rather than a dict which is causing

Traceback (most recent call last):
  File "/tmp/bin/pyup", line 8, in <module>
    sys.exit(main())
  File "/tmp/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/tmp/lib/python3.9/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/tmp/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmp/lib/python3.9/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/tmp/lib/python3.9/site-packages/pyup/cli.py", line 50, in main
    bot.update(branch=branch, initial=initial)
  File "/tmp/lib/python3.9/site-packages/pyup/bot.py", line 123, in update
    self.apply_updates(
  File "/tmp/lib/python3.9/site-packages/pyup/bot.py", line 197, in apply_updates
    pull_request = self.commit_and_pull(
  File "/tmp/lib/python3.9/site-packages/pyup/bot.py", line 420, in commit_and_pull
    new_sha = self.provider.create_commit(
  File "/tmp/lib/python3.9/site-packages/pyup/providers/github.py", line 167, in create_commit
    extra_kwargs["committer"] = self.get_committer_data(committer)
  File "/tmp/lib/python3.9/site-packages/pyup/providers/github.py", line 195, in get_committer_data
    if item["primary"]:
TypeError: tuple indices must be integers or slices, not str

Pinning PyGithub to 1.54.0.1 enables pyup to function as expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions