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

Add Python support in lupdate

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: PySide, Tooling
    • Labels:
      None
    • Platform/s:
      All
    • Technical Risk:
      Normal

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              crmaurei Cristian Maureira-Fredes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes