mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-23 23:49:47 +08:00
31 lines
896 B
Python
31 lines
896 B
Python
# Released under the MIT License. See LICENSE for details.
|
|
#
|
|
# pylint: disable=useless-suppression, missing-docstring, invalid-name
|
|
from __future__ import annotations
|
|
|
|
# This file is exec'ed by the spinoff system, allowing us to define
|
|
# values and behavior for this feature-set here in a programmatic way
|
|
# that can also be type-checked alongside other project Python code.
|
|
|
|
from batools.featureset import FeatureSet
|
|
from batools.dummymodule import DummyModuleDef
|
|
|
|
# Grab the FeatureSet we should apply to.
|
|
fset = FeatureSet.get_active()
|
|
|
|
fset.requirements = {'core', 'base'}
|
|
|
|
# We provide 'babase.app.ui_v1'.
|
|
fset.has_python_app_subsystem = True
|
|
|
|
# We'd prefer our name's title form to be 'UI V1', not the default 'Ui V1'.
|
|
fset.name_title = 'UI V1'
|
|
|
|
|
|
# Customize how our dummy module is generated.
|
|
class OurDummyModuleDef(DummyModuleDef):
|
|
pass
|
|
|
|
|
|
fset.dummy_module_def = OurDummyModuleDef()
|