mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
Update setup.py
fixed "TypeError: 'encoding' is an invalid keyword argument for this function"
This commit is contained in:
parent
3681744297
commit
698c1efe89
15
setup.py
15
setup.py
@ -6,10 +6,19 @@ PACKAGE_NAME = 'you_get'
|
|||||||
PROJ_METADATA = '%s.json' % PROJ_NAME
|
PROJ_METADATA = '%s.json' % PROJ_NAME
|
||||||
|
|
||||||
import os, json, imp
|
import os, json, imp
|
||||||
|
import codecs
|
||||||
|
|
||||||
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), encoding='utf-8').read())
|
|
||||||
README = open(os.path.join(here, 'README.txt'), encoding='utf-8').read()
|
with codecs.open(os.path.join(here, PROJ_METADATA), encoding='utf-8') as f:
|
||||||
CHANGELOG = open(os.path.join(here, 'CHANGELOG.txt'), encoding='utf-8').read()
|
proj_info = json.loads(f.read())
|
||||||
|
|
||||||
|
with codecs.open(os.path.join(here, 'README.txt'), encoding='utf-8') as f:
|
||||||
|
README = f.read()
|
||||||
|
|
||||||
|
with codecs.open(os.path.join(here, 'CHANGELOG.txt'), encoding='utf-8') as f:
|
||||||
|
CHANGELOG = f.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