-
Notifications
You must be signed in to change notification settings - Fork 197
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
Drop support for Python 2 in bodhi.server. #2871
Conversation
@@ -12,21 +12,18 @@ pull_request_rules: | |||
- status-success=f28-flake8 | |||
- status-success=f28-pydocstyle | |||
- status-success=f28-python2-unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop the unit tests too, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't yet, because the client still supports Python 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python 2 support is planned to be dropped from the client in #2856. I am waiting just a bit to see if my dependencies will stop using it before making that change.
9c0c9c4
to
df7d153
Compare
What is the pourpose of installing bodhi for py2 and py3? |
On Thu, 2018-12-20 at 12:23 -0800, Sebastian Wojciechowski wrote:
What is the pourpose of installing bodhi for py2 and py3?
I assume that one of the reasons is bodhi-client for py2.
Are there any others?
Yes, it's because the client still supports Python 2 for now. See
#2856.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Python 2 support goes away upstream in two months, so it is time to embrace the glorious future. This change also drops support for pkgdb integration, since the pkgdb client library does not support Python 3. Mock imports were moved to be grouped with the stdlib imports as per PEP-8, since mock is part of the stdlib in Python 3. fixes fedora-infra#1970 fixes fedora-infra#2759 Signed-off-by: Randy Barlow <[email protected]>
This patch is planned for inclusion in the upcoming 4.0.0 release: #3221 |
Bodhi 4.0.0 beta is built and deployed to staging: https://copr.fedorainfracloud.org/coprs/bowlofeggs/bodhi-pre-release |
Python 2 support goes away upstream in two months, so it is time
to embrace the glorious future.
This change also drops support for pkgdb integration, since the
pkgdb client library does not support Python 3.
Mock imports were moved to be grouped with the stdlib imports as
per PEP-8, since mock is part of the stdlib in Python 3.
fixes #1970
fixes #2759
Signed-off-by: Randy Barlow [email protected]