Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1252

Add Python support in lupdate

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • None
    • None
    • PySide, Tooling
    • None
    • All
    • 011cad7cd2cd617427e939d737676394425bdc6b (pyside/pyside-setup/dev)

    Description

      The current state of pyside2-lupdate is not optimal considering all the new features that lupdate has been getting during the last releases.

      Since already there is official Python support in other tools like uic and rcc, we should aim to provide Python support for lupdate too.

      This process will allow us to remove the dependency with the pyside2-tools sub-repository, and will enable anyone to use their local tools to interact with Python code too.

      At first glance, it seems the structure from pylupdate and lupdate are quite similar, so the additional support will be translated into:

      • create a python.cpp file in the lupdate repository that includes the basic functionallities, like load(), the AST parsing, among others.
      • disable all the options that make no sense for Python files, like the interaction with .pro files.

      Luckily we could reuse the current code from pylupdate and adapt it for the current lupdate structure.

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-1252
          # Subject Branch Project Status CR V

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              crmaurei Cristian Maureira-Fredes
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: