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

Drop support for Python 2 in bodhi.server. #2871

Merged
merged 1 commit into from
Jan 7, 2019

Conversation

bowlofeggs
Copy link
Contributor

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]

@bowlofeggs bowlofeggs added High priority These issues are higher priority than normal Refactor Issues that are a refactor to improve maintainability for Bodhi python3 Issues related to porting Bodhi to Python 3 Backwards incompatible The proposed change is backwards incompatible and should wait for the next major release labels Dec 19, 2018
@bowlofeggs bowlofeggs requested a review from a team as a code owner December 19, 2018 03:37
@@ -12,21 +12,18 @@ pull_request_rules:
- status-success=f28-flake8
- status-success=f28-pydocstyle
- status-success=f28-python2-unit
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@bowlofeggs bowlofeggs force-pushed the 2759 branch 7 times, most recently from 9c0c9c4 to df7d153 Compare December 19, 2018 18:27
@sebwoj
Copy link
Collaborator

sebwoj commented Dec 20, 2018

- name: Install bodhi in developer mode

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?

@bowlofeggs
Copy link
Contributor Author

bowlofeggs commented Dec 20, 2018 via email

Copy link
Contributor

@Zlopez Zlopez left a 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]>
@bowlofeggs bowlofeggs merged commit 365d51e into fedora-infra:develop Jan 7, 2019
@bowlofeggs bowlofeggs deleted the 2759 branch January 7, 2019 18:07
@bowlofeggs
Copy link
Contributor Author

This patch is planned for inclusion in the upcoming 4.0.0 release: #3221

@bowlofeggs
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backwards incompatible The proposed change is backwards incompatible and should wait for the next major release High priority These issues are higher priority than normal python3 Issues related to porting Bodhi to Python 3 Refactor Issues that are a refactor to improve maintainability for Bodhi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop Python 2 support for the server Drop support for pkgdb
4 participants