wasi-master / rich-rst

A reStructuredText renderer for rich
https://rich-rst.readthedocs.io/en/latest/
MIT License
13 stars 3 forks source link

Add UTF-8 header #4

Closed davidbrochart closed 2 years ago

davidbrochart commented 2 years ago

📑 Description

Add UTF-8 header to file as it contains weird characters. Otherwise it creates errors on Windows.

wasi-master commented 2 years ago

Thanks!

davidbrochart commented 2 years ago

Actually, I tried to patch the conda recipe with this change and it still fails. It seems you have some weird characters that are not accepted by setuptools on Windows. Any idea?

wasi-master commented 2 years ago

@davidbrochart I do not have a definite solution, but it seems like the issue is occuring when trying to get the current version. Could hard-coding the version in setup.cfg work? If it does then we can narrow down the cause of the issue

https://github.com/wasi-master/rich-rst/blob/main/setup.cfg

davidbrochart commented 2 years ago

Actually setting the environment variable PYTHONUTF8=1 solved the issue. Do you want me to revert this change, as it's not needed?

wasi-master commented 2 years ago

@davidbrochart no need. It's okay