mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
setup.py: open with encoding 'utf-8'
This commit is contained in:
parent
ed12df2eb5
commit
0cf72772d6
6
setup.py
6
setup.py
@ -7,9 +7,9 @@ PROJ_METADATA = '%s.json' % PROJ_NAME
|
|||||||
|
|
||||||
import os, json, imp
|
import os, json, imp
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
proj_info = json.loads(open(os.path.join(here, PROJ_METADATA)).read())
|
proj_info = json.loads(open(os.path.join(here, PROJ_METADATA), encoding='utf-8').read())
|
||||||
README = open(os.path.join(here, 'README.txt')).read()
|
README = open(os.path.join(here, 'README.txt'), encoding='utf-8').read()
|
||||||
CHANGELOG = open(os.path.join(here, 'CHANGELOG.txt')).read()
|
CHANGELOG = open(os.path.join(here, 'CHANGELOG.txt'), encoding='utf-8').read()
|
||||||
VERSION = imp.load_source('version', os.path.join(here, 'src/%s/version.py' % PACKAGE_NAME)).__version__
|
VERSION = imp.load_source('version', os.path.join(here, 'src/%s/version.py' % PACKAGE_NAME)).__version__
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
Loading…
Reference in New Issue
Block a user