Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update get_committer_data for latest PyGithub #410

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DamianZaremba
Copy link

v1.55 of PyGithub changed get_emails to return a named tuple (#1890)
rather than a dict directly from the decoded API response.

Update the code to access the fields as a property rather than by index
& bump the pin so 1.55 is the minimum version.

Fixes #409

v1.55 of PyGithub changed `get_emails` to return a named tuple (#1890)
rather than a dict directly from the decoded API response.

Update the code to access the fields as a property rather than by index
& bump the pin so 1.55 is the minimum version.

Also update the existing tests for the now required `headers` parameter
on exception classes.
@codecov
Copy link

codecov bot commented Jun 24, 2021

Codecov Report

Merging #410 (3bebe38) into master (17c2384) will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #410      +/-   ##
==========================================
+ Coverage   94.24%   94.32%   +0.08%     
==========================================
  Files          11       11              
  Lines        1164     1164              
==========================================
+ Hits         1097     1098       +1     
+ Misses         67       66       -1     
Impacted Files Coverage Δ
pyup/providers/github.py 99.39% <100.00%> (ø)
pyup/providers/gitlab.py 86.06% <0.00%> (+0.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17c2384...3bebe38. Read the comment docs.

Python 3.5 has been EOL since Sept 2020, 10 months ago at this point.

The latest release of PyGithub does not support 3.5 (#1770), thus remove
the support here also.

Also add test cases for Python 3.9, which is the current stable release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PyGithub get_emails now returns a named tuple
1 participant