Bodhi 6.0 is not out yet but it will base its authentication on OpenID Connect (OIDC), and the client's classes have changed quite a bit.
This PR adapts to the future Bodhi 6.0.
Also, since Bodhi is only shipped on Python 3, I've also added a commit to drop support for Python 2. Python 3 is available for RHEL7 anyway so it could be built there too. If it's a bad idea I can totally drop this commit from the PR.
Bodhi 6.0 is not out yet but it will base its authentication on OpenID Connect (OIDC), and the client's classes have changed quite a bit.
This PR adapts to the future Bodhi 6.0.
Also, since Bodhi is only shipped on Python 3, I've also added a commit to drop support for Python 2. Python 3 is available for RHEL7 anyway so it could be built there too. If it's a bad idea I can totally drop this commit from the PR.