|
1 | 1 | # SPDX-FileCopyrightText: 2025 Helio Chissini de Castro <heliocastro@gmail.com> |
2 | 2 | # SPDX-License-Identifier: MIT |
3 | 3 |
|
4 | | -from enum import Enum, auto |
| 4 | +from enum import IntEnum |
5 | 5 |
|
6 | 6 |
|
7 | | -class PathExcludeReason(Enum): |
| 7 | +class PathExcludeReason(IntEnum): |
8 | 8 | """ |
9 | 9 | Possible reasons for excluding a path. |
10 | | - Attributes |
| 10 | +
|
| 11 | + Attributes: |
11 | 12 | BUILD_TOOL_OF |
12 | 13 | The path only contains tools used for building source code which are not included in |
13 | 14 | distributed build artifacts. |
14 | | -
|
15 | 15 | DATA_FILE_OF |
16 | 16 | The path only contains data files such as fonts or images which are not included in |
17 | 17 | distributed build artifacts. |
18 | | -
|
19 | 18 | DOCUMENTATION_OF |
20 | 19 | The path only contains documentation which is not included in distributed build artifacts. |
21 | | -
|
22 | 20 | EXAMPLE_OF |
23 | 21 | The path only contains source code examples which are not included in distributed build |
24 | 22 | artifacts. |
25 | | -
|
26 | 23 | OPTIONAL_COMPONENT_OF |
27 | 24 | The path only contains optional components for the code that is built which are not included |
28 | 25 | in distributed build artifacts. |
29 | | -
|
30 | 26 | OTHER |
31 | 27 | Any other reason which cannot be represented by any other element of PathExcludeReason. |
32 | | -
|
33 | 28 | PROVIDED_BY |
34 | 29 | The path only contains packages or sources for packages that have to be provided by the user |
35 | 30 | of distributed build artifacts. |
36 | | -
|
37 | 31 | TEST_OF |
38 | 32 | The path only contains files used for testing source code which are not included in |
39 | 33 | distributed build artifacts. |
40 | | -
|
41 | 34 | TEST_TOOL_OF |
42 | 35 | The path only contains tools used for testing source code which are not included in |
43 | 36 | distributed build artifacts. |
44 | 37 | """ |
45 | 38 |
|
46 | | - # The path only contains tools used for building source code which are not included in distributed build artifacts. |
47 | | - BUILD_TOOL_OF = auto() |
48 | | - |
49 | | - # The path only contains data files such as fonts or images which are not included in distributed build artifacts. |
50 | | - DATA_FILE_OF = auto() |
51 | | - |
52 | | - # The path only contains documentation which is not included in distributed build artifacts. |
53 | | - DOCUMENTATION_OF = auto() |
54 | | - |
55 | | - # The path only contains source code examples which are not included in distributed build artifacts. |
56 | | - EXAMPLE_OF = auto() |
57 | | - |
58 | | - # The path only contains optional components for the code that is built which are not included |
59 | | - # in distributed build artifacts. |
60 | | - OPTIONAL_COMPONENT_OF = auto() |
61 | | - |
62 | | - # Any other reason which cannot be represented by any other element of PathExcludeReason. |
63 | | - OTHER = auto() |
64 | | - |
65 | | - # The path only contains packages or sources for packages that have to be provided by the user |
66 | | - # of distributed build artifacts. |
67 | | - PROVIDED_BY = auto() |
68 | | - |
69 | | - # The path only contains files used for testing source code which are not included in distributed build artifacts. |
70 | | - TEST_OF = auto() |
71 | | - |
72 | | - # The path only contains tools used for testing source code which are not included in distributed build artifacts. |
73 | | - TEST_TOOL_OF = auto() |
| 39 | + BUILD_TOOL_OF = 1 |
| 40 | + DATA_FILE_OF = 2 |
| 41 | + DOCUMENTATION_OF = 3 |
| 42 | + EXAMPLE_OF = 4 |
| 43 | + OPTIONAL_COMPONENT_OF = 5 |
| 44 | + OTHER = 6 |
| 45 | + PROVIDED_BY = 7 |
| 46 | + TEST_OF = 8 |
| 47 | + TEST_TOOL_OF = 9 |
0 commit comments