mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Fix encoding issue in setup.py
This commit is contained in:
parent
4cd01f5516
commit
b0bd1fadac
6
setup.py
6
setup.py
@ -4,8 +4,10 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
PACKAGE_NAME = 'homeassistant'
|
PACKAGE_NAME = 'homeassistant'
|
||||||
HERE = os.path.abspath(os.path.dirname(__file__))
|
HERE = os.path.abspath(os.path.dirname(__file__))
|
||||||
with open(os.path.join(HERE, PACKAGE_NAME, 'const.py')) as fp:
|
with open(os.path.join(HERE, PACKAGE_NAME, 'const.py'),
|
||||||
VERSION = re.search("__version__ = ['\"]([^']+)['\"]\n", fp.read()).group(1)
|
encoding='utf-8') as fp:
|
||||||
|
VERSION = re.search(
|
||||||
|
"__version__ = ['\"]([^']+)['\"]\n", fp.read()).group(1)
|
||||||
DOWNLOAD_URL = \
|
DOWNLOAD_URL = \
|
||||||
'https://github.com/balloob/home-assistant/archive/{}.zip'.format(VERSION)
|
'https://github.com/balloob/home-assistant/archive/{}.zip'.format(VERSION)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user