When using python 3.11 this deprecation warning is raised due to pkg_resources being used in the properties.py, i'm not sure what the fix is but looks like it's used here
def _part_template(self):
return pkg_resources.resource_string(
'docxcompose', 'templates/custom.xml')