gecko-dev/python/moz.build
Andrew Halberstadt 0e697ce235 Bug 1422302 - Create python/mozterm for sharing terminal blessings across modules r=gps
This is a new module that will provide a place to store some common
abstractions around the 'blessings' module. The main entrypoint is:

    from mozterm import Terminal
    term = Terminal()

If blessings is available, this will return a blessings.Terminal()
object. If it isn't available, or something went wrong on import,
this will return a NullTerminal() object, which is a drop-in
replacement that does no formatting.

MozReview-Commit-ID: 6c63svm4tM5

--HG--
extra : rebase_source : 9ab221774d92a418d9b098d79bb2c88f75d937f8
2017-12-04 09:38:24 -05:00

55 lines
1.4 KiB
Python

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Default extra components to build config
with Files('**'):
BUG_COMPONENT = ('Core', 'Build Config')
with Files('devtools/**'):
BUG_COMPONENT = ('Firefox', 'Developer Tools')
with Files('mach/**'):
BUG_COMPONENT = ('Core', 'mach')
with Files('mozboot/**'):
BUG_COMPONENT = ('Core', 'Build Config')
with Files('mozbuild/**'):
BUG_COMPONENT = ('Core', 'Build Config')
with Files('mozlint/**'):
BUG_COMPONENT = ('Testing', 'Lint')
with Files('mozversioncontrol/**'):
BUG_COMPONENT = ('Core', 'Build Config')
with Files('l10n/**'):
BUG_COMPONENT = ('Core', 'Localization')
SPHINX_PYTHON_PACKAGE_DIRS += [
'mach',
'mozbuild/mozbuild',
'mozbuild/mozpack',
'mozlint/mozlint',
'mozversioncontrol/mozversioncontrol',
]
SPHINX_TREES['mach'] = 'mach/docs'
PYTHON_UNITTEST_MANIFESTS += [
'mach/mach/test/python.ini',
'mozbuild/dumbmake/test/python.ini',
'mozlint/test/python.ini',
'mozterm/test/python.ini',
'mozversioncontrol/test/python.ini',
]
if CONFIG['MOZ_BUILD_APP']:
PYTHON_UNITTEST_MANIFESTS += [
'mozbuild/mozbuild/test/python.ini',
'mozbuild/mozpack/test/python.ini',
]