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.