* read "README.md" with "utf-8" encoding
else:
has_setuptools = True
from distutils.core import Distribution
+import io
import os
import sys
setup_kwargs['test_suite'] = 'dulwich.tests.test_suite'
setup_kwargs['tests_require'] = tests_require
-with open('README.md', 'r') as f:
+with io.open(os.path.join(os.path.dirname(__file__), "README.md"),
+ encoding="utf-8") as f:
description = f.read()
setup(name='dulwich',