b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/setup.py |
| 2 | +++ b/setup.py |
| 3 | @@ -4,6 +4,7 @@ |
| 4 | Setup script for the Parsley distribution. |
| 5 | """ |
| 6 | |
| 7 | +import io |
| 8 | from distutils.core import setup |
| 9 | setup( |
| 10 | name="Parsley", |
| 11 | @@ -13,7 +14,7 @@ setup( |
| 12 | author="Allen Short", |
| 13 | author_email="washort42@gmail.com", |
| 14 | license="MIT License", |
| 15 | - long_description=open("README").read(), |
| 16 | + long_description=io.open("README", encoding="utf-8").read(), |
| 17 | packages=["ometa", "terml", "ometa._generated", "terml._generated", |
| 18 | "ometa.test", "terml.test"], |
| 19 | py_modules=["parsley"] |