mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[bugfix] README encoding-related UnicodeDecodeError on setup.py (#5309)
Seeing UnicodeDecodeError on our build system running py3.6, though I couldn't reproduce on my local 3.6. This fix addresses the issue.
This commit is contained in:
committed by
GitHub
parent
bfa9ffff3c
commit
885d7791a0
4
setup.py
4
setup.py
@@ -16,8 +16,8 @@ PACKAGE_FILE = os.path.join(PACKAGE_DIR, 'package.json')
|
||||
with open(PACKAGE_FILE) as package_file:
|
||||
version_string = json.load(package_file)['version']
|
||||
|
||||
with open('README.md') as readme:
|
||||
long_description = readme.read()
|
||||
with open('README.md', encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
|
||||
def get_git_sha():
|
||||
|
||||
Reference in New Issue
Block a user