Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def kas(argv):
"""
The actual main entry point of kas.
"""
create_logger()
parser = kas_get_argparser()
args = parser.parse_args(argv)
if args.debug:
logging.getLogger().setLevel(logging.DEBUG)
logging.info('%s %s started', os.path.basename(sys.argv[0]), __version__)
loop = asyncio.get_event_loop()
for sig in (signal.SIGINT, signal.SIGTERM):
loop.add_signal_handler(sig, interruption)
atexit.register(_atexit_handler)
for plugin in getattr(kasplugin, 'plugins', []):
if plugin().run(args):
return 0
parser.print_help()
LONG_DESCRIPTION = f.read()
setup(
name='kas',
version=__version__,
description='Setup tool for bitbake based projects',
long_description=LONG_DESCRIPTION,
maintainer='Jan Kiszka',
maintainer_email='jan.kiszka@siemens.com',
url='https://github.com/siemens/kas',
download_url=('https://github.com/siemens/'
'kas/archive/{version}.tar.gz'.format(version=__version__)),
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Pick your license as you wish (should match "license" above)
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = 'kas'
copyright = 'Siemens AG, 2017-2018'
author = 'Daniel Wagner, Jan Kiszka, Claudius Heine'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = kas.__version__
# The full version, including alpha/beta/rc tags.
release = kas.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#
# today = ''
#
# Else, today_fmt is used as the format for a strftime call.
#
# today_fmt = '%B %d, %Y'
# source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = 'kas'
copyright = 'Siemens AG, 2017-2018'
author = 'Daniel Wagner, Jan Kiszka, Claudius Heine'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = kas.__version__
# The full version, including alpha/beta/rc tags.
release = kas.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#
# today = ''
#
# Else, today_fmt is used as the format for a strftime call.
from os import path
from setuptools import setup, find_packages
from kas import __version__
__license__ = 'MIT'
__copyright__ = 'Copyright (c) Siemens AG, 2017-2019'
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.rst')) as f:
LONG_DESCRIPTION = f.read()
setup(
name='kas',
version=__version__,
description='Setup tool for bitbake based projects',
long_description=LONG_DESCRIPTION,
maintainer='Jan Kiszka',
maintainer_email='jan.kiszka@siemens.com',
url='https://github.com/siemens/kas',
download_url=('https://github.com/siemens/'
'kas/archive/{version}.tar.gz'.format(version=__version__)),
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are