-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathActivate_custom.py
71 lines (61 loc) · 4.36 KB
/
Activate_custom.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# ----------------------------------------------------------------------
# |
# | Activate_custom.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2022-12-08 12:17:44
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2022-23
# | Distributed under the Boost Software License, Version 1.0. See
# | accompanying file LICENSE_1_0.txt or copy at
# | http://www.boost.org/LICENSE_1_0.txt.
# |
# ----------------------------------------------------------------------
# pylint: disable=missing-module-docstring
from pathlib import Path
from typing import List, Optional
from Common_Foundation.Shell import Commands # type: ignore # pylint: disable=import-error,unused-import
from Common_Foundation.Shell.All import CurrentShell # type: ignore # pylint: disable=import-error,unused-import
from Common_Foundation.Streams.DoneManager import DoneManager # type: ignore # pylint: disable=import-error,unused-import
from RepositoryBootstrap import Configuration # type: ignore # pylint: disable=import-error,unused-import
from RepositoryBootstrap import DataTypes # type: ignore # pylint: disable=import-error,unused-import
# ----------------------------------------------------------------------
# Note that it is safe to remove this function if it will never be used.
def GetCustomActions( # pylint: disable=too-many-arguments
# Note that it is safe to remove any parameters that are not used
dm: DoneManager, # pylint: disable=unused-argument
repositories: List[DataTypes.ConfiguredRepoDataWithPath], # pylint: disable=unused-argument
generated_dir: Path, # pylint: disable=unused-argument
configuration: Optional[str], # pylint: disable=unused-argument
version_specs: Configuration.VersionSpecs, # pylint: disable=unused-argument
force: bool, # pylint: disable=unused-argument
is_mixin_repo: bool, # pylint: disable=unused-argument
) -> List[Commands.Command]:
"""Returns a list of actions that should be invoked as part of the activation process."""
# pylint: disable=unreachable
return []
# ----------------------------------------------------------------------
# Note that it is safe to remove this function if it will never be used.
def GetCustomActionsEpilogue( # pylint: disable=too-many-arguments
# Note that it is safe to remove any parameters that are not used
dm: DoneManager, # pylint: disable=unused-argument
repositories: List[DataTypes.ConfiguredRepoDataWithPath], # pylint: disable=unused-argument
generated_dir: Path, # pylint: disable=unused-argument
configuration: Optional[str], # pylint: disable=unused-argument
version_specs: Configuration.VersionSpecs, # pylint: disable=unused-argument
force: bool, # pylint: disable=unused-argument
is_mixin_repo: bool, # pylint: disable=unused-argument
) -> List[Commands.Command]:
"""\
Returns a list of actions that should be invoked as part of the activation process. Note
that this is called after `GetCustomActions` has been called for each repository in the dependency
list.
********************************************************************************************
Note that it is very rare to have the need to implement this method. In most cases, it is
safe to delete the entire method. However, keeping the default implementation (that
essentially does nothing) is not a problem.
********************************************************************************************
"""
return []