#7568 Deprecate Python 2
Closed: fixed 2 years ago Opened 2 years ago by cheimes.

Python 2.7 will reach EOL in 18 months. Let's start to warn users that Python 2 will no longer be supported in the future.

FreeIPA 4.7

  • Remove Python 3.5 from PyPI classifiers. We no longer test with Python 3.5 and all relevant platforms have Python 3.6.
  • On Fedora, issue deprecation warnings for Python versions < 3.6.0. Fedora 28 uses Python 3 by default
  • Debian/Ubuntu still requires Python 2 for Samba binding, don't issue deprecation warning there.

FreeIPA 4.8

  • Require Python 3.6 or newer


  • f1c7d3c Start to deprecate Python 2 and 3.5

Metadata Update from @tdudlak:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

What is the ticket to remove the Python 2 support completely (given this one is closed already)?

Is the plan to really release a new major version of FreeIPA, i.e. FreeIPA 5.0, with the Python 3.6+ support? CC @abbra - this would impact also RHEL downstream packaging of course

@mkosek The ticket was mainly about deprecation, not removal. Commit https://pagure.io/freeipa/c/f1c7d3c27839709808f67791274215fd2555ad40 added a deprecation warning, so users are aware that their Python 2 code will break with the next release.

For removal, I can either open a new ticket or re-open this ticket.

By the way, I created a Fedora change request for removal of Python 2 packages, https://fedoraproject.org/wiki/Changes/FreeIPA_Python_2_Removal .


  • 21f14e9 Remove Python 2 support and packages

Login to comment on this ticket.