mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Move constants to setup.py (#10312)
* Remove unused import * Move setup relevant consts to 'setup.py' * remove blank line * Set source
This commit is contained in:
committed by
Paulus Schoutsen
parent
a43f99a71c
commit
81324806d5
45
setup.py
45
setup.py
@@ -2,15 +2,46 @@
|
||||
"""Home Assistant setup script."""
|
||||
import os
|
||||
from setuptools import setup, find_packages
|
||||
from homeassistant.const import (__version__, PROJECT_PACKAGE_NAME,
|
||||
PROJECT_LICENSE, PROJECT_URL,
|
||||
PROJECT_EMAIL, PROJECT_DESCRIPTION,
|
||||
PROJECT_CLASSIFIERS, GITHUB_URL,
|
||||
PROJECT_AUTHOR)
|
||||
|
||||
from homeassistant.const import __version__
|
||||
|
||||
PROJECT_NAME = 'Home Assistant'
|
||||
PROJECT_PACKAGE_NAME = 'homeassistant'
|
||||
PROJECT_LICENSE = 'Apache License 2.0'
|
||||
PROJECT_AUTHOR = 'The Home Assistant Authors'
|
||||
PROJECT_COPYRIGHT = ' 2013-2017, {}'.format(PROJECT_AUTHOR)
|
||||
PROJECT_URL = 'https://home-assistant.io/'
|
||||
PROJECT_EMAIL = 'hello@home-assistant.io'
|
||||
PROJECT_DESCRIPTION = ('Open-source home automation platform '
|
||||
'running on Python 3.')
|
||||
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_CLASSIFIERS = [
|
||||
'Development Status :: 4 - Beta',
|
||||
'Intended Audience :: End Users/Desktop',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: Apache Software License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Topic :: Home Automation'
|
||||
]
|
||||
|
||||
PROJECT_GITHUB_USERNAME = 'home-assistant'
|
||||
PROJECT_GITHUB_REPOSITORY = 'home-assistant'
|
||||
|
||||
PYPI_URL = 'https://pypi.python.org/pypi/{}'.format(PROJECT_PACKAGE_NAME)
|
||||
GITHUB_PATH = '{}/{}'.format(
|
||||
PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY)
|
||||
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)
|
||||
|
||||
|
||||
HERE = os.path.abspath(os.path.dirname(__file__))
|
||||
DOWNLOAD_URL = ('{}/archive/'
|
||||
'{}.zip'.format(GITHUB_URL, __version__))
|
||||
DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, __version__)
|
||||
|
||||
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user