elapouya / python-docx-template

Use a docx as a jinja2 template
GNU Lesser General Public License v2.1
1.98k stars 385 forks source link

Employ 'python-docx-oss' instead of 'python-docx' to support also cus… #497

Closed alberto743 closed 1 year ago

alberto743 commented 1 year ago

This modification allows employing 'python-docx-oss' instead of 'python-docx'. The two packages are almost equal: the former is the fork of the latter with added capability to insert custom properties. Since they export the same name, it is not possible to keep both side by side. Consequently, 'python-docx-template' should use 'python-docx-oss' to let the user modify custom document properties.

elapouya commented 1 year ago

What about people who are already explicitly using python-docx in their packages requirements ?

alberto743 commented 1 year ago

You are right. Indeed the dependency chain behind "python-docx-templace" pulls "python-docx" anyway, although python-dox-oss is installed. The merge should be done the other way around, i.e. incorporating the custom document properties support in "python-docx".