write_to is deprecated in favour of version_file in setuptools-scm

Check https://setuptools-scm.readthedocs.io/en/latest/config/

write_to in pyproject.toml should be replaced by version_file