FS#66861 - [calibre] switch Python v2 -> v3

Attached to Project: Community Packages
Opened by Andreas Radke (AndyRTR) - Tuesday, 02 June 2020, 08:39 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 02 June 2020, 18:35 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

According to Fedora spec Calibre should be able to build and run with Python v3 only:

https://src.fedoraproject.org/rpms/calibre/blob/master/f/calibre.spec

Please try, test and switch to python 3.x only build.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 02 June 2020, 18:35 GMT
Reason for closing:  Deferred
Additional comments about closing:  We currently package both python2 and python3, and I'm watching the situation to decide when to deprecate python2.
Comment by Eli Schwartz (eschwartz) - Tuesday, 02 June 2020, 12:29 GMT
I know quite well that calibre can build with python3, as I've authored rather a lot of upstream python3 support code.

In fact, I've been publishing a calibre-python3 split package in [community] since November. The point is that users should be able to install *either* calibre *or* calibre-python3, if they want to try python3 and/or don't care about plugins. You don't need to install python2 as an end user if you don't want to.

Are you asking for the python2 version to be dropped, or what? Note that we are still finding occasional python3 bugs, and, more importantly, many plugins are still not ported yet. Kovid (the upstream author) and I have a thread on the development forums urging people to port their plugins and providing guidance, and thanks to that, a number of plugins have been ported, but this is still a work in progress!

Fedora switched to python3 specifically because they dropped their python2 package, and it was this or nothing. I was intending to be more conservative about it, and force python3-only once upstream is closer to finalizing the switch.
Comment by Andreas Radke (AndyRTR) - Tuesday, 02 June 2020, 18:24 GMT
Seems I had missed the -python3 version of this package is already available. If you are fully aware of the status feel free to close this issue.
I guess Arch will also try to drop python v2 not too far away.
Comment by Eli Schwartz (eschwartz) - Tuesday, 02 June 2020, 18:33 GMT
Ok, thanks for clarifying. For the moment I'm going to continue with my previous plans, which, for the record, are:

- package both, co-installable, but default to python2 since python3 support is still considered beta status
- when upstream and the plugin community are in a better state to recommend migrating to python3, make 'calibre' install a python3 build, and provide calibre-python2 for people whose plugins are still not ported
- eventually drop python2 once upstream binary builds are python3

- skip right to the end if my hand is forced because archlinux purges the 'python2' package

Loading...