Fixed long description encoding.
parent
a302c87724
commit
02cde83181
5
setup.py
5
setup.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue