Skip to content

Commit

Permalink
Fix setup.py unicode version errors
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Sep 9, 2015
1 parent b0bd1fa commit 3520255
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import os
import re
from setuptools import setup, find_packages
from homeassistant.const import __version__

PACKAGE_NAME = 'homeassistant'
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, PACKAGE_NAME, 'const.py'),
encoding='utf-8') as fp:
VERSION = re.search(
"__version__ = ['\"]([^']+)['\"]\n", fp.read()).group(1)
DOWNLOAD_URL = \
'https://github.com/balloob/home-assistant/archive/{}.zip'.format(VERSION)
DOWNLOAD_URL = ('https://github.com/balloob/home-assistant/archive/'
'{}.zip'.format(__version__))

PACKAGES = find_packages(exclude=['tests', 'tests.*']) + \
['homeassistant.external', 'homeassistant.external.noop',
Expand All @@ -29,7 +25,7 @@

setup(
name=PACKAGE_NAME,
version=VERSION,
version=__version__,
license='MIT License',
url='https://home-assistant.io/',
download_url=DOWNLOAD_URL,
Expand Down

0 comments on commit 3520255

Please sign in to comment.