Some shameless self promotion again. I have written a package to compile qresource files and .ui files at build time (PySide). instead of manually compiling and adding it to git the package will compile it for you at build time.
setup.py
from setuptools import find_packages, setup
from pyside_setup_macro import QtBuildPackage
setup(
...,
cmdclass={
"build_py": QtBuildPackage, # This is all you need to add.
},
)