Fix Sphinx build (#12535)
This commit is contained in:
parent
bb29f16054
commit
336b00765d
2 changed files with 19 additions and 8 deletions
|
@ -22,10 +22,23 @@ import os
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
from homeassistant.const import __version__, __short_version__
|
from homeassistant.const import __version__, __short_version__
|
||||||
from setup import (
|
|
||||||
PROJECT_NAME, PROJECT_LONG_DESCRIPTION, PROJECT_COPYRIGHT, PROJECT_AUTHOR,
|
PROJECT_NAME = 'Home Assistant'
|
||||||
PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY, GITHUB_PATH,
|
PROJECT_PACKAGE_NAME = 'homeassistant'
|
||||||
GITHUB_URL)
|
PROJECT_AUTHOR = 'The Home Assistant Authors'
|
||||||
|
PROJECT_COPYRIGHT = ' 2013-2018, {}'.format(PROJECT_AUTHOR)
|
||||||
|
PROJECT_LONG_DESCRIPTION = ('Home Assistant is an open-source '
|
||||||
|
'home automation platform running on Python 3. '
|
||||||
|
'Track and control all devices at home and '
|
||||||
|
'automate control. '
|
||||||
|
'Installation in less than a minute.')
|
||||||
|
PROJECT_GITHUB_USERNAME = 'home-assistant'
|
||||||
|
PROJECT_GITHUB_REPOSITORY = 'home-assistant'
|
||||||
|
|
||||||
|
GITHUB_PATH = '{}/{}'.format(
|
||||||
|
PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY)
|
||||||
|
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)
|
||||||
|
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('_ext'))
|
sys.path.insert(0, os.path.abspath('_ext'))
|
||||||
sys.path.insert(0, os.path.abspath('../homeassistant'))
|
sys.path.insert(0, os.path.abspath('../homeassistant'))
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""Home Assistant setup script."""
|
"""Home Assistant setup script."""
|
||||||
import os
|
|
||||||
from setuptools import setup, find_packages
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
import homeassistant.const as hass_const
|
import homeassistant.const as hass_const
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,8 +41,6 @@ GITHUB_PATH = '{}/{}'.format(
|
||||||
PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY)
|
PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY)
|
||||||
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)
|
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)
|
||||||
|
|
||||||
|
|
||||||
HERE = os.path.abspath(os.path.dirname(__file__))
|
|
||||||
DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, hass_const.__version__)
|
DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, hass_const.__version__)
|
||||||
|
|
||||||
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
|
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue