Fixed long description encoding.

pull/107/head
Fabio Caccamo 2020-10-21 12:26:31 +02:00
parent a302c87724
commit 02cde83181
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
from setuptools import find_packages, setup
import os
import os, sys
exec(open('admin_interface/version.py').read())
@ -15,7 +15,8 @@ long_description_file_path = os.path.join(package_path, 'README.md')
long_description_content_type = 'text/markdown'
long_description = ''
try:
with open(long_description_file_path) as f:
long_description_file_options = {} if sys.version_info[0] < 3 else { 'encoding':'utf-8' }
with open(long_description_file_path, 'r', **long_description_file_options) as f:
long_description = f.read()
except IOError:
pass