mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
setup.py: open with encoding 'utf-8'
This commit is contained in:
parent
ed12df2eb5
commit
0cf72772d6
22
setup.py
22
setup.py
@ -7,36 +7,36 @@ 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
|
||||||
setup(
|
setup(
|
||||||
name = proj_info['name'],
|
name = proj_info['name'],
|
||||||
version = VERSION,
|
version = VERSION,
|
||||||
|
|
||||||
author = proj_info['author'],
|
author = proj_info['author'],
|
||||||
author_email = proj_info['author_email'],
|
author_email = proj_info['author_email'],
|
||||||
url = proj_info['url'],
|
url = proj_info['url'],
|
||||||
license = proj_info['license'],
|
license = proj_info['license'],
|
||||||
|
|
||||||
description = proj_info['description'],
|
description = proj_info['description'],
|
||||||
keywords = proj_info['keywords'],
|
keywords = proj_info['keywords'],
|
||||||
|
|
||||||
long_description = README + '\n\n' + CHANGELOG,
|
long_description = README + '\n\n' + CHANGELOG,
|
||||||
|
|
||||||
packages = find_packages('src'),
|
packages = find_packages('src'),
|
||||||
package_dir = {'' : 'src'},
|
package_dir = {'' : 'src'},
|
||||||
|
|
||||||
test_suite = 'tests',
|
test_suite = 'tests',
|
||||||
|
|
||||||
platforms = 'any',
|
platforms = 'any',
|
||||||
zip_safe = False,
|
zip_safe = False,
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
|
|
||||||
classifiers = proj_info['classifiers'],
|
classifiers = proj_info['classifiers'],
|
||||||
|
|
||||||
entry_points = {'console_scripts': proj_info['console_scripts']}
|
entry_points = {'console_scripts': proj_info['console_scripts']}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user