Menu

#10 Python 3 support

None
closed
nobody
None
2023-02-23
2019-09-03
No

With Python 2's end of life approaching rapidly, what is the state of Python 3 support in the various python-based add-ons to bluefish, e.g. the minifiers, beautifiers and zencoding plugin? The configure script only appears to be looking for Python 2 versions. jsmin looks like it supports both 2 and 3 but I don't know about the others.

I'm thinking about this with regards to the impending removal of Python 2 from Fedora Linux (see https://bugzilla.redhat.com/show_bug.cgi?id=1737907).

Discussion

  • Olivier Sessink

    Olivier Sessink - 2019-09-03

    I'll have a look how to port to python3

     
  • Olivier Sessink

    Olivier Sessink - 2019-09-10
     
  • Olivier Sessink

    Olivier Sessink - 2019-09-10

    bluefish now compiles with python3, next step is to work on the scripts

     
  • Paul Howarth

    Paul Howarth - 2019-11-04

    A related issue: I tried building with --disable-python and it removed the zencoding plugin but left the other python-requiring add-ons, e.g. cssmin, the lorem-ipsum generator etc. I created a patch (against 2.2.10) to remove those too (see attached).

     
    • Olivier Sessink

      Olivier Sessink - 2019-12-16

      cssmin and the css decompressor work with python3, lorem ipsum does not (yet). Looking if I can make it work with python3

       
    • Olivier Sessink

      Olivier Sessink - 2019-12-16

      looking at the code, it seems that the upstream lorem ipsum code is not python3 compatible either, so we might as well switch to a new codebase that has both python2 and python3 support.

       
  • Filipe Laíns

    Filipe Laíns - 2020-01-05

    Hi Oliver, any ETA? If this does not happen soon I might have to drop Bluefish from the Archlinux repos or disable python 2 support if possible.

     

    Last edit: Filipe Laíns 2020-01-05
    • Olivier Sessink

      Olivier Sessink - 2020-01-08

      the call to all translators is out to finish the translations. The new 2.2.11 release will be in 7 days.

       
  • Filipe Laíns

    Filipe Laíns - 2020-01-08

    Okay, thanks!

     
  • Olivier Sessink

    Olivier Sessink - 2020-01-24
    • status: open --> closed
     
  • Olivier Sessink

    Olivier Sessink - 2020-01-24

    2.2.11 has been released and compiles with python 3. This is the first version that runs with python 3, there might be some small features that are negatively affected.

     
  • Paul Howarth

    Paul Howarth - 2020-01-25

    The permissions of the 2.2.11 tarballs seem to be wrong, I get 403 Forbidden when trying to download.

     
    • Olivier Sessink

      Olivier Sessink - 2020-01-25

      whoops, fixed now!

       
  • Paul Howarth

    Paul Howarth - 2020-01-25

    The zencoding plugin has a few "raise 'message'" constructs that aren't valid in python 3; I believe they need an exception type as the first argument to "raise".

     
  • Olivier Sessink

    Olivier Sessink - 2020-02-26

    lorem ipsum has been replaced with python 3 compatible version in svn, so that should be working as well in the next release

     

Log in to post a comment.