#469 Adapt to Bodhi 6.0
Closed by abompard. Opened by abompard.
abompard/fedpkg bodhi-client-6  into  master

Download 469.patch

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.

I see that this PR just drops Python 2 and does not touch others.
But, the diffs reveal that the list of supported Python 3 versions varies between different locations.
Here there is only 3.6 and 3.9,
readme adds 3.10 to that list,
but asks to install 3.6 and 3.7 as test dependencies.
tox.ini and setup.py have their own list again.
Would it be possible to have the same list everywhere?

Now that I think of it, it may be better to try to be compatible with Bodhi 5 and Bodhi 6. I'll send a PR that does this, and you can pick the one you prefer.

Actually now that I've thought more about it, I think it's much better to retain compatibility with the current Bodhi. This PR is obsoleted by #470.

Feel free to re-use the Py27 drop commit if you want to.

Pull-Request has been closed by abompard

Metadata